summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-01-09 22:09:06 +0000
committerDavid Schleef <ds@schleef.org>2009-01-09 22:09:06 +0000
commitfe42ac102000d4f8f58780b372c1d58ba365afb9 (patch)
tree18db1b97fe5fdcbbab7d67d1355f95de3938bebf /gst/mpegdemux
parent413016e459ae4e3c4c1411b51d23c9ebf98e52d9 (diff)
downloadgst-plugins-bad-fe42ac102000d4f8f58780b372c1d58ba365afb9.tar.gz
gst-plugins-bad-fe42ac102000d4f8f58780b372c1d58ba365afb9.tar.bz2
gst-plugins-bad-fe42ac102000d4f8f58780b372c1d58ba365afb9.zip
gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES, since the returned value doesn't mean anyth...
Original commit message from CVS: * gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES, since the returned value doesn't mean anything. Fixes #566959
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index ba32ebd5..1bb1de39 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -2445,6 +2445,21 @@ gst_fluts_demux_src_pad_query (GstPad * pad, GstQuery * query)
}
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);
}