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
@ -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…
x
Reference in New Issue
Block a user