Commit fe42ac10 authored by David Schleef's avatar David Schleef

gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES,...

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
parent 413016e4
2009-01-09 David Schleef <ds@schleef.org>
* 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 <ds@schleef.org>
* gst/qtmux/gstqtmuxmap.c: Add video/x-qt-part and video/x-m4-part
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment