[packages/DirectFB: 1/2] - added format patch (fixes build with -Werror=format-security) - handle xine_vdpau plugin

qboosh qboosh at pld-linux.org
Sun Jul 21 09:28:06 CEST 2013


commit b8204178c0109afc08ea2f32f8b80f08aa238183
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 21 09:28:00 2013 +0200

    - added format patch (fixes build with -Werror=format-security)
    - handle xine_vdpau plugin

 DirectFB-format.patch | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
 DirectFB.spec         |  8 +++++++
 2 files changed, 73 insertions(+)
---
diff --git a/DirectFB.spec b/DirectFB.spec
index 971c6d1..c2a11f5 100644
--- a/DirectFB.spec
+++ b/DirectFB.spec
@@ -19,6 +19,9 @@
 %ifarch sh4
 %define		with_sh772x	1
 %endif
+%if %{without xine}
+%undefine	xine_vdpau
+%endif
 Summary:	DirectFB - Hardware graphics acceleration
 Summary(pl.UTF-8):	DirectFB - Wspomaganie grafiki
 Name:		DirectFB
@@ -42,6 +45,7 @@ Patch7:		%{name}-sh.patch
 Patch8:		%{name}-missing.patch
 Patch9:		%{name}-ffmpeg.patch
 Patch10:	%{name}-libmpeg3.patch
+Patch11:	%{name}-format.patch
 URL:		http://www.directfb.org/
 BuildRequires:	Mesa-libEGL-devel
 BuildRequires:	Mesa-libGLES-devel
@@ -918,6 +922,7 @@ Statyczna biblioteka sawman.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 # video drivers
 %{__sed} -i -e 's/checkfor_\(cle266\|cyber5k\|radeon\|savage\|unichrome\|vmware\)=no/checkfor_\1=yes/' configure.in
@@ -1321,6 +1326,9 @@ rm -rf $RPM_BUILD_ROOT
 %files video-xine
 %defattr(644,root,root,755)
 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
+%if %{with xine_vdpau}
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine_vdpau.so
+%endif
 
 %files -n xine-output-video-dfb
 %defattr(644,root,root,755)
diff --git a/DirectFB-format.patch b/DirectFB-format.patch
new file mode 100644
index 0000000..52584c3
--- /dev/null
+++ b/DirectFB-format.patch
@@ -0,0 +1,65 @@
+--- DirectFB-1.7.0/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_openquicktime.c.orig	2013-07-09 00:23:17.000000000 +0200
++++ DirectFB-1.7.0/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_openquicktime.c	2013-07-21 08:45:13.711671545 +0200
+@@ -253,7 +253,7 @@
+           desc->caps |= DVSCAPS_VIDEO;
+      
+           snprintf( desc->video.encoding,
+-                    DFB_STREAM_DESC_ENCODING_LENGTH,
++                    DFB_STREAM_DESC_ENCODING_LENGTH, "%s",
+                     quicktime_video_compressor( data->file, 0 ) ? : "" );
+           desc->video.framerate = quicktime_frame_rate( data->file, 0 );
+           desc->video.aspect    = (double) quicktime_video_width( data->file, 0 ) /
+@@ -265,7 +265,7 @@
+           desc->caps |= DVSCAPS_AUDIO;
+ 
+           snprintf( desc->audio.encoding,
+-                    DFB_STREAM_DESC_ENCODING_LENGTH,
++                    DFB_STREAM_DESC_ENCODING_LENGTH, "%s",
+                     quicktime_audio_compressor( data->file, 0 ) ? : "" );
+           desc->audio.samplerate = quicktime_sample_rate( data->file, 0 );
+           desc->audio.channels   = quicktime_track_channels( data->file, 0 );
+--- DirectFB-1.7.0/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_xine.c.orig	2013-01-12 06:06:23.000000000 +0100
++++ DirectFB-1.7.0/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_xine.c	2013-07-21 08:48:00.479143131 +0200
+@@ -428,7 +428,7 @@
+           desc->caps |= DVSCAPS_VIDEO;
+      
+           snprintf( desc->video.encoding,
+-                    DFB_STREAM_DESC_ENCODING_LENGTH,
++                    DFB_STREAM_DESC_ENCODING_LENGTH, "%s",
+                     xine_get_meta_info( data->stream, XINE_META_INFO_VIDEOCODEC ) ?:"" );
+           desc->video.framerate = xine_get_stream_info( data->stream, 
+                                                         XINE_STREAM_INFO_FRAME_DURATION );
+@@ -444,7 +444,7 @@
+           desc->caps |= DVSCAPS_AUDIO;
+ 
+           snprintf( desc->audio.encoding,
+-                    DFB_STREAM_DESC_ENCODING_LENGTH,
++                    DFB_STREAM_DESC_ENCODING_LENGTH, "%s",
+                     xine_get_meta_info( data->stream, XINE_META_INFO_AUDIOCODEC ) ?:"" );
+           desc->audio.samplerate = xine_get_stream_info( data->stream,
+                                                          XINE_STREAM_INFO_AUDIO_SAMPLERATE );
+@@ -455,19 +455,19 @@
+      }
+                
+      snprintf( desc->title,
+-               DFB_STREAM_DESC_TITLE_LENGTH,
++               DFB_STREAM_DESC_TITLE_LENGTH, "%s",
+                xine_get_meta_info( data->stream, XINE_META_INFO_TITLE ) ?:"" );
+      snprintf( desc->author,
+-               DFB_STREAM_DESC_AUTHOR_LENGTH,
++               DFB_STREAM_DESC_AUTHOR_LENGTH, "%s",
+                xine_get_meta_info( data->stream, XINE_META_INFO_ARTIST ) ?:"" );
+      snprintf( desc->album,
+-               DFB_STREAM_DESC_ALBUM_LENGTH,
++               DFB_STREAM_DESC_ALBUM_LENGTH, "%s",
+                xine_get_meta_info( data->stream, XINE_META_INFO_ALBUM ) ?:"" );
+      snprintf( desc->genre,
+-               DFB_STREAM_DESC_GENRE_LENGTH,
++               DFB_STREAM_DESC_GENRE_LENGTH, "%s",
+                xine_get_meta_info( data->stream, XINE_META_INFO_GENRE ) ?:"" );
+      snprintf( desc->comment,
+-               DFB_STREAM_DESC_COMMENT_LENGTH,
++               DFB_STREAM_DESC_COMMENT_LENGTH, "%s",
+                xine_get_meta_info( data->stream, XINE_META_INFO_COMMENT ) ?:"" );
+      desc->year = atoi( xine_get_meta_info( data->stream, XINE_META_INFO_YEAR ) ?:"" );
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/DirectFB.git/commitdiff/f4be06cb0cbcbe861a7ff88391814191f1ffa220



More information about the pld-cvs-commit mailing list