diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegdemux/gstmpegtsdemux.c | 15 |
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); } |