pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/gst-plugins0.10-ugly pull in some patches f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b2a8bc8b6754
branches: trunk
changeset: 536257:b2a8bc8b6754
user: drochner <drochner%pkgsrc.org@localhost>
date: Sun Dec 09 11:03:50 2007 +0000
description:
pull in some patches from upstream CVS:
gstmpegaudioparse.c rev. 1.63 and 1.70
gstmpegaudioparse.h rev. 1.20
This fixes failures playing mp3 files if the mpegaudioparse plugin
(which is not really needed) is installed, due to some interaction
with changes in gstreamer-base.
See gnome bugzilla #471370 for details.
bump PKGREVISION
diffstat:
multimedia/gst-plugins0.10-ugly/Makefile | 4 +-
multimedia/gst-plugins0.10-ugly/distinfo | 4 +-
multimedia/gst-plugins0.10-ugly/patches/patch-ab | 14 ++++++
multimedia/gst-plugins0.10-ugly/patches/patch-ac | 55 ++++++++++++++++++++++++
4 files changed, 75 insertions(+), 2 deletions(-)
diffs (105 lines):
diff -r cb4df5693e7f -r b2a8bc8b6754 multimedia/gst-plugins0.10-ugly/Makefile
--- a/multimedia/gst-plugins0.10-ugly/Makefile Sun Dec 09 10:55:30 2007 +0000
+++ b/multimedia/gst-plugins0.10-ugly/Makefile Sun Dec 09 11:03:50 2007 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/04/08 11:42:37 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2007/12/09 11:03:50 drochner Exp $
#
.include "Makefile.common"
+PKGREVISION= 1
+
COMMENT+= ugly plugins
.include "../../mk/bsd.pkg.mk"
diff -r cb4df5693e7f -r b2a8bc8b6754 multimedia/gst-plugins0.10-ugly/distinfo
--- a/multimedia/gst-plugins0.10-ugly/distinfo Sun Dec 09 10:55:30 2007 +0000
+++ b/multimedia/gst-plugins0.10-ugly/distinfo Sun Dec 09 11:03:50 2007 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.5 2007/07/06 19:21:47 drochner Exp $
+$NetBSD: distinfo,v 1.6 2007/12/09 11:03:50 drochner Exp $
SHA1 (gst-plugins-ugly-0.10.6.tar.bz2) = 1178e3e94578102b270993be123fb6e6ccda331a
RMD160 (gst-plugins-ugly-0.10.6.tar.bz2) = 6f2ce61800e1013f8695b8e09a3f03beee1c9af8
Size (gst-plugins-ugly-0.10.6.tar.bz2) = 773777 bytes
SHA1 (patch-aa) = d0899b8827b0106fd64adcf3b4efe8e4ca20fa11
+SHA1 (patch-ab) = 83a0aaca81ac845dc8b388c6b84f3ffb5ae0906b
+SHA1 (patch-ac) = f78c25c3bbfee3c34cd81402ce583297efe21e76
diff -r cb4df5693e7f -r b2a8bc8b6754 multimedia/gst-plugins0.10-ugly/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gst-plugins0.10-ugly/patches/patch-ab Sun Dec 09 11:03:50 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2007/12/09 11:03:50 drochner Exp $
+
+--- gst/mpegaudioparse/gstmpegaudioparse.h.orig 2007-06-13 11:21:26.000000000 +0200
++++ gst/mpegaudioparse/gstmpegaudioparse.h
+@@ -82,6 +82,9 @@ struct _GstMPEGAudioParse {
+ guchar xing_seek_table[100];
+ guint32 xing_vbr_scale;
+ guint xing_bitrate;
++
++ /* pending segment */
++ GstEvent *pending_segment;
+ };
+
+ struct _GstMPEGAudioParseClass {
diff -r cb4df5693e7f -r b2a8bc8b6754 multimedia/gst-plugins0.10-ugly/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gst-plugins0.10-ugly/patches/patch-ac Sun Dec 09 11:03:50 2007 +0000
@@ -0,0 +1,55 @@
+$NetBSD: patch-ac,v 1.1 2007/12/09 11:03:51 drochner Exp $
+
+--- gst/mpegaudioparse/gstmpegaudioparse.c.orig 2007-06-13 11:21:26.000000000 +0200
++++ gst/mpegaudioparse/gstmpegaudioparse.c
+@@ -218,7 +218,8 @@ mp3_caps_create (guint layer, guint chan
+ new = gst_caps_new_simple ("audio/mpeg",
+ "mpegversion", G_TYPE_INT, 1,
+ "layer", G_TYPE_INT, layer,
+- "rate", G_TYPE_INT, samplerate, "channels", G_TYPE_INT, channels, NULL);
++ "rate", G_TYPE_INT, samplerate,
++ "channels", G_TYPE_INT, channels, "parsed", G_TYPE_BOOLEAN, TRUE, NULL);
+
+ return new;
+ }
+@@ -329,6 +330,7 @@ gst_mp3parse_sink_event (GstPad * pad, G
+ {
+ gboolean res;
+ GstMPEGAudioParse *mp3parse;
++ GstEvent **eventp;
+
+ mp3parse = GST_MP3PARSE (gst_pad_get_parent (pad));
+
+@@ -379,12 +381,18 @@ gst_mp3parse_sink_event (GstPad * pad, G
+ GST_DEBUG_OBJECT (mp3parse, "Pushing newseg rate %g, applied rate %g, "
+ "format %d, start %lld, stop %lld, pos %lld\n",
+ rate, applied_rate, format, start, stop, pos);
+- res = gst_pad_push_event (mp3parse->srcpad, event);
++ /* save the segment for later, right before we push a new buffer so that
++ * the caps are fixed and the next linked element can receive the segment. */
++ eventp = &mp3parse->pending_segment;
++ gst_event_replace (eventp, event);
++ res = TRUE;
+ break;
+ }
+ case GST_EVENT_FLUSH_STOP:
+ /* Clear our adapter and set up for a new position */
+ gst_adapter_clear (mp3parse->adapter);
++ eventp = &mp3parse->pending_segment;
++ gst_event_replace (eventp, NULL);
+ res = gst_pad_push_event (mp3parse->srcpad, event);
+ break;
+ default:
+@@ -483,6 +491,12 @@ gst_mp3parse_emit_frame (GstMPEGAudioPar
+ mp3parse->srcpad, taglist);
+ }
+
++ /* push any pending segment now */
++ if (mp3parse->pending_segment) {
++ gst_pad_push_event (mp3parse->srcpad, mp3parse->pending_segment);
++ mp3parse->pending_segment = NULL;
++ }
++
+ return gst_pad_push (mp3parse->srcpad, outbuf);
+ }
+
Home |
Main Index |
Thread Index |
Old Index