qtdemux: Skip seeking query if upstream format is time

Don't need to querying byte-format seeking for time-format
upstream case

https://bugzilla.gnome.org/show_bug.cgi?id=776715
This commit is contained in:
Seungha Yang 2017-01-02 22:16:39 +09:00 committed by Edward Hervey
parent d3f5aa2689
commit 7a6752a7e0

View file

@ -6052,6 +6052,9 @@ gst_qtdemux_check_seekability (GstQTDemux * demux)
if (demux->upstream_size)
return;
if (demux->upstream_format_is_time)
return;
query = gst_query_new_seeking (GST_FORMAT_BYTES);
if (!gst_pad_peer_query (demux->sinkpad, query)) {
GST_DEBUG_OBJECT (demux, "seeking query failed");