smoothstreaming: avoid using an uninitialized manifest

If we did not set the manifest yet, early out in the seeking query.

Coverity 1139737
This commit is contained in:
Vincent Penquerc'h 2014-04-09 17:28:49 +01:00
parent 15d00a32fd
commit 14f8172d2b

View file

@ -656,7 +656,9 @@ gst_mss_demux_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
GstFormat fmt;
gint64 stop = -1;
if (mssdemux->manifest && gst_mss_manifest_is_live (mssdemux->manifest)) {
if (!mssdemux->manifest) {
return FALSE; /* no seeking without manifest */
} else if (gst_mss_manifest_is_live (mssdemux->manifest)) {
return FALSE; /* no live seeking */
}