adaptivedemux: Fix comparision logic

We can't answer the SEEKING query if we do *not* have the manifest
This commit is contained in:
Edward Hervey 2015-04-29 15:41:07 +02:00
parent 93b19d06b6
commit 38c97f5fa5

View file

@ -1130,8 +1130,10 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent,
gint64 start = 0;
GST_MANIFEST_LOCK (demux);
if (demux->priv->have_manifest) {
if (!demux->priv->have_manifest) {
GST_MANIFEST_UNLOCK (demux);
GST_INFO_OBJECT (demux,
"Don't have manifest yet, can't answer seeking query");
return FALSE; /* can't answer without manifest */
}