add patch to fix gst backend
authorMarinus Schraal <foser@gentoo.org>
Mon, 22 Nov 2004 14:57:14 +0000 (14:57 +0000)
committerMarinus Schraal <foser@gentoo.org>
Mon, 22 Nov 2004 14:57:14 +0000 (14:57 +0000)
media-video/totem/ChangeLog
media-video/totem/Manifest
media-video/totem/files/digest-totem-0.99.22-r1 [moved from media-video/totem/files/digest-totem-0.99.22 with 100% similarity]
media-video/totem/files/totem-0.99.22-gst_object_rename.patch [new file with mode: 0644]
media-video/totem/totem-0.99.22-r1.ebuild [moved from media-video/totem/totem-0.99.22.ebuild with 90% similarity]

index 54bfbaa39c763e8295675572ead3f4274e8fde83..3d4c05bad2e5bbbad49f420059a01ab81de27512 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-video/totem
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/totem/ChangeLog,v 1.37 2004/11/22 01:07:30 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/totem/ChangeLog,v 1.38 2004/11/22 14:57:14 foser Exp $
+
+*totem-0.99.22-r1 (22 Nov 2004)
+
+  22 Nov 2004; foser <foser@gentoo.org> totem-0.99.22-r1.ebuild :
+  Add patch to fix gst backend for released gst-plugins versions 
+  http://bugzilla.gnome.org/show_bug.cgi?id=159049
 
 *totem-0.99.22 (22 Nov 2004)
 
index a98762251eebad3ceb937a29d3104e7e2cd0302f..a5148912de9de33db5d9691afd87b2dfc8dd86ef 100644 (file)
@@ -1,13 +1,14 @@
 MD5 6d4402f87be251454bcc8644c3a13056 totem-0.99.19.ebuild 1703
+MD5 03402f524f247d2212cd2dfcd3508322 totem-0.99.22-r1.ebuild 1878
 MD5 d491742489c165c2321c610b8abbdd68 totem-0.99.8-r2.ebuild 2023
 MD5 3a099802658c8b0f280b577253e04088 totem-0.99.15.1.ebuild 1585
-MD5 0461dff3348ee547712976080767693d totem-0.99.22.ebuild 1755
-MD5 1667ab4a004c11f2ee38978500369300 ChangeLog 5241
+MD5 303970c2ae77debda9f13d70ee211592 ChangeLog 5458
 MD5 74b9bd3cc5015b286abc33eb51408252 metadata.xml 521
+MD5 8c12406bb21e95feaeb34355f9fd301b files/totem-0.99.22-gst_object_rename.patch 1290
 MD5 ffee6132520a471d092c6101e2cfcfc4 files/totem-0.99.8-curl.patch 762
 MD5 9e38423894eaf7762dc1790bcf1ad543 files/totem-0.99.22-reorder_includes.patch 392
 MD5 eeba2ab1c3ed87a4a630addd709262ea files/digest-totem-0.99.19 67
-MD5 1c2c4aab10d4dbff69612b377a4aba0a files/digest-totem-0.99.22 67
+MD5 1c2c4aab10d4dbff69612b377a4aba0a files/digest-totem-0.99.22-r1 67
 MD5 f19c916fffc4e302cb84b4d6f50c8c03 files/totem-0.99.8-nvidia.patch 526
 MD5 3d9e7881aa0ec7d110c1487cd95d6c40 files/digest-totem-0.99.15.1 69
 MD5 5555967d2623a7a6476864d9294bf323 files/digest-totem-0.99.8-r2 65
diff --git a/media-video/totem/files/totem-0.99.22-gst_object_rename.patch b/media-video/totem/files/totem-0.99.22-gst_object_rename.patch
new file mode 100644 (file)
index 0000000..1afb631
--- /dev/null
@@ -0,0 +1,34 @@
+Index: bacon-video-widget-gst.c
+===================================================================
+RCS file: /cvs/gnome/totem/src/bacon-video-widget-gst.c,v
+retrieving revision 1.108
+diff -u -r1.108 bacon-video-widget-gst.c
+--- bacon-video-widget-gst.c   19 Nov 2004 12:09:29 -0000      1.108
++++ bacon-video-widget-gst.c   22 Nov 2004 14:16:28 -0000
+@@ -844,6 +844,9 @@
+         GstPad *pad = NULL;
+ 
+         g_object_get (info, "object", &pad, NULL);
++        /* hack for 0.8.5 */
++        if (!pad)
++          g_object_get (info, "pad", &pad, NULL);
+         if (pad != NULL && GST_PAD_REALIZE (pad) != NULL) {
+           g_assert (GST_IS_PAD (pad));
+ 
+@@ -2087,11 +2090,14 @@
+     g_object_get (info, "type", &type, NULL);
+     pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (info), "type");
+     val = g_enum_get_value (G_PARAM_SPEC_ENUM (pspec)->enum_class, type);
+-                                                                                
++
+     if (strstr (val->value_name, "VIDEO")) {
+-      GstPad *pad;
++      GstPad *pad = NULL;
+ 
+       g_object_get (info, "object", &pad, NULL);
++      /* hack for 0.8.5 */
++      if (!pad)
++        g_object_get (info, "pad", &pad, NULL);
+       g_assert (GST_IS_PAD (pad));
+       from = gst_caps_copy (GST_PAD_CAPS (pad));
+     }
similarity index 90%
rename from media-video/totem/totem-0.99.22.ebuild
rename to media-video/totem/totem-0.99.22-r1.ebuild
index 849039c09c6c176622318d2573043bf2abff700d..c5129f571ce60afe150599e7066d8ec0819f2ebd 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/totem/totem-0.99.22.ebuild,v 1.1 2004/11/22 01:07:30 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/totem/totem-0.99.22-r1.ebuild,v 1.1 2004/11/22 14:57:14 foser Exp $
 
 inherit gnome2 eutils
 
@@ -64,6 +64,10 @@ src_unpack() {
        # violations, see bug #48800 <obz@gentoo.org>
        gnome2_omf_fix
 
+       # make the gst backend actually work with 0.8.5 plugins
+       cd ${S}/src
+       epatch ${FILESDIR}/${P}-gst_object_rename.patch
+
 }
 
 USE_DESTDIR="1"