rpms/gstreamer-plugins-good/devel h264pay-compiler-warning.diff, NONE, 1.1 gstreamer-plugins-good.spec, 1.85, 1.86

Bastien Nocera hadess at fedoraproject.org
Tue Feb 10 11:34:12 UTC 2009


Author: hadess

Update of /cvs/pkgs/rpms/gstreamer-plugins-good/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6462

Modified Files:
	gstreamer-plugins-good.spec 
Added Files:
	h264pay-compiler-warning.diff 
Log Message:
* Tue Feb 10 2009 - Bastien Nocera <bnocera at redhat.com> - 0.10.13.2-2
- Add patch to fix compilation


h264pay-compiler-warning.diff:

--- NEW FILE h264pay-compiler-warning.diff ---
diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index f0cd9ee..03dd45f 100644
--- a/gst/rtp/gstrtph264pay.c
+++ b/gst/rtp/gstrtph264pay.c
@@ -449,15 +449,17 @@ is_nal_equal (const guint8 * nal1, const guint8 * nal2, guint len)
   if (!remainder) {
     return TRUE;
   } else if (1 == remainder) {
-    return (nal1[--len] == nal2[len]);
+    --len;
+    return (nal1[len] == nal2[len]);
   } else {                      /* 2 or 3 */
     if (remainder & 1) {        /* -1 if 3 bytes left */
-      if (nal1[--len] != nal2[len])
+      --len;
+      if (nal1[len] != nal2[len])
         return FALSE;
     }
     /* last 2 bytes */
-    return ((nal1[--len] == nal2[len])  /* -1 */
-        &&(nal1[--len] == nal2[len]));  /* -2 */
+    return ((nal1[len-1] == nal2[len-1])  /* -1 */
+        &&(nal1[len-2] == nal2[len-2]));  /* -2 */
   }
 }
 


Index: gstreamer-plugins-good.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gstreamer-plugins-good/devel/gstreamer-plugins-good.spec,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- gstreamer-plugins-good.spec	8 Feb 2009 20:46:46 -0000	1.85
+++ gstreamer-plugins-good.spec	10 Feb 2009 11:33:41 -0000	1.86
@@ -6,7 +6,7 @@
 
 Name: 		%{gstreamer}-plugins-good
 Version: 	0.10.13.2
-Release:  	1%{?dist}
+Release:  	2%{?dist}
 Summary: 	GStreamer plug-ins with good code and licensing
 
 Group: 		Applications/Multimedia
@@ -14,6 +14,8 @@
 URL:		http://gstreamer.freedesktop.org/
 Source:         http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# http://bugzilla.gnome.org/show_bug.cgi?id=570995
+Patch0:		h264pay-compiler-warning.diff
 
 Requires: 	%{gstreamer} >= %{_gst}
 Requires(pre): GConf2 
@@ -97,6 +99,7 @@
 
 %prep
 %setup -q -n gst-plugins-good-%{version}
+%patch0 -p1 -b .h264-compile
 
 %build
 
@@ -247,6 +250,9 @@
 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gstreamer-%{majorminor}.schemas > /dev/null || :
 
 %changelog
+* Tue Feb 10 2009 - Bastien Nocera <bnocera at redhat.com> - 0.10.13.2-2
+- Add patch to fix compilation
+
 * Sun Feb 08 2009 - Bastien Nocera <bnocera at redhat.com> - 0.10.13.2-1
 - Update to 0.10.13.2 pre-release
 




More information about the fedora-extras-commits mailing list