mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtdemux: don't respond to a position query in BYTE format with a TIME position
https://bugzilla.gnome.org/show_bug.cgi?id=729553
This commit is contained in:
parent
9872c19491
commit
bd51aa7aa8
1 changed files with 7 additions and 2 deletions
|
@ -737,12 +737,17 @@ gst_qtdemux_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
GST_LOG_OBJECT (pad, "%s query", GST_QUERY_TYPE_NAME (query));
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_POSITION:
|
||||
if (GST_CLOCK_TIME_IS_VALID (qtdemux->segment.position)) {
|
||||
case GST_QUERY_POSITION:{
|
||||
GstFormat fmt;
|
||||
|
||||
gst_query_parse_position (query, &fmt, NULL);
|
||||
if (fmt == GST_FORMAT_TIME
|
||||
&& GST_CLOCK_TIME_IS_VALID (qtdemux->segment.position)) {
|
||||
gst_query_set_position (query, GST_FORMAT_TIME,
|
||||
qtdemux->segment.position);
|
||||
res = TRUE;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GST_QUERY_DURATION:{
|
||||
GstFormat fmt;
|
||||
|
|
Loading…
Reference in a new issue