mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +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;
|
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 */
|
/* we start from the last seen time */
|
||||||
time = dec->priv->last_timestamp_out;
|
time = dec->priv->last_timestamp_out;
|
||||||
/* correct for the segment values */
|
/* correct for the segment values */
|
||||||
|
|
Loading…
Reference in a new issue