ds gst-plugins-bad: gst-plugins-bad/ gst-plugins-bad/gst/mpegdemux/
[email protected] Fri, 9 Jan 2009 14:09:20 -0800 (PST)
| Newsgroups | gmane.comp.video.gstreamer.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVS Root: /cvs/gstreamer
Module: gst-plugins-bad
Changes by: ds
Date: Fri Jan 09 2009 22:09:20 UTC
Log message:
* gst/mpegdemux/gstmpegtsdemux.c:
Don't forward duration requests in BYTES, since the returned
value doesn't mean anything. Fixes #566959
Modified files:
. : ChangeLog
gst/mpegdemux : gstmpegtsdemux.c
Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3869&r2=1.3870
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/mpegdemux/gstmpegtsdemux.c.diff?r1=1.13&r2=1.14
====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v
retrieving revision 1.3869
retrieving revision 1.3870
diff -u -d -r1.3869 -r1.3870
--- ChangeLog 9 Jan 2009 21:59:47 -0000 1.3869
+++ ChangeLog 9 Jan 2009 22:09:05 -0000 1.3870
@@ -1,5 +1,11 @@
2009-01-09 David Schleef <[email protected]>
+ * gst/mpegdemux/gstmpegtsdemux.c:
+ Don't forward duration requests in BYTES, since the returned
+ value doesn't mean anything. Fixes #566959
+
+2009-01-09 David Schleef <[email protected]>
* gst/qtmux/gstqtmuxmap.c: Add video/x-qt-part and video/x-m4-part
to caps so schroenc/schroparse can use it. Fixes #566958
Index: gstmpegtsdemux.c
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mpegdemux/gstmpegtsdemux.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- gstmpegtsdemux.c 26 Nov 2008 04:57:22 -0000 1.13
+++ gstmpegtsdemux.c 9 Jan 2009 22:09:06 -0000 1.14
@@ -2445,6 +2445,21 @@
}
break;
}
+ case GST_QUERY_DURATION:
+ {
+ GstFormat format;
+ gint64 duration;
+ gst_query_parse_duration (query, &format, &duration);
+ if (format == GST_FORMAT_BYTES) {
+ res = FALSE;
+ } else {
+ res = gst_pad_query_default (pad, query);
+ }
+ break;
+ }
default:
res = gst_pad_query_default (pad, query);
}
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB