mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
videodecoder: Don't answer BYTES queries
Refuse to answer BYTES queries ourselves. The only time they make sense is on raw elementary streams, in which case upstream would already have answered. https://bugzilla.gnome.org/show_bug.cgi?id=757631
This commit is contained in:
parent
1840b0233a
commit
2b06e54651
1 changed files with 7 additions and 0 deletions
|
@ -1615,6 +1615,13 @@ gst_video_decoder_src_query_default (GstVideoDecoder * dec, GstQuery * query)
|
|||
break;
|
||||
}
|
||||
|
||||
/* Refuse BYTES format queries. If it made sense to
|
||||
* answer them, upstream would have already */
|
||||
if (format == GST_FORMAT_BYTES) {
|
||||
GST_LOG_OBJECT (dec, "Ignoring BYTES position query");
|
||||
break;
|
||||
}
|
||||
|
||||
/* we start from the last seen time */
|
||||
time = dec->priv->last_timestamp_out;
|
||||
/* correct for the segment values */
|
||||
|
|
Loading…
Reference in a new issue