aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/nucleo
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-10-20 14:13:29 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-10-20 14:13:29 +0000
commitf4eddf0dd9b9cb033a7db6ba62b0b23f331e86b1 (patch)
tree167a9dc96c3d43f3240a78a07f16d6ece076a4ff /x11-toolkits/nucleo
parenta5b7e6450d546ff1127cef552f273329478b3c0d (diff)
downloadports-f4eddf0dd9b9cb033a7db6ba62b0b23f331e86b1.tar.gz
ports-f4eddf0dd9b9cb033a7db6ba62b0b23f331e86b1.zip
x11-toolkits/nucleo: unbreak FFMPEG=on with Clang 4.0
ffmpegImageSink.cxx:246:29: error: ordered comparison between pointer and zero ('AVIOContext *' and 'int') 0, udp_callback, 0) < 0) { ~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: antoine (via bug 223057 exp-run)
Notes
Notes: svn path=/head/; revision=452524
Diffstat (limited to 'x11-toolkits/nucleo')
-rw-r--r--x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx b/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx
index d88edcaf7f7c..cb331a53083f 100644
--- a/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx
+++ b/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx
@@ -87,7 +87,8 @@
- if (init_put_byte(format_context->pb, buffer, buffer_size,
+ if (avio_alloc_context(buffer, buffer_size,
1, (void *)this,
- 0, udp_callback, 0) < 0) {
+- 0, udp_callback, 0) < 0) {
++ 0, udp_callback, 0) == NULL) {
std::cerr << "ffmpegImageSink: init_put_byte failed" << std::endl ;
return false ;
}