Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2017 14:13:29 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r452524 - head/x11-toolkits/nucleo/files
Message-ID:  <201710201413.v9KEDT91082902@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Oct 20 14:13:29 2017
New Revision: 452524
URL: https://svnweb.freebsd.org/changeset/ports/452524

Log:
  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)

Modified:
  head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx   (contents, props changed)

Modified: head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx
==============================================================================
--- head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx	Fri Oct 20 14:13:15 2017	(r452523)
+++ head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx	Fri Oct 20 14:13:29 2017	(r452524)
@@ -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 ;
  	 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710201413.v9KEDT91082902>