oggdemux: do not warn when finding a non BOS page

After all, we do hope to find actual data for these streams.
However, warn if we could not set up a chain when we find a
non BOS page, as that means we don't have a valid Ogg stream.

https://bugzilla.gnome.org/show_bug.cgi?id=657151
This commit is contained in:
Vincent Penquerc'h 2011-08-23 10:47:53 +01:00 committed by Sebastian Dröge
parent 564eedd214
commit 4fdb52871c

View file

@ -2674,11 +2674,13 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
break; break;
} }
if (!ogg_page_bos (&og)) { if (!ogg_page_bos (&og)) {
GST_WARNING_OBJECT (ogg, "page is not BOS page"); GST_INFO_OBJECT (ogg, "page is not BOS page, all streams identified");
/* if we did not find a chain yet, assume this is a bogus stream and /* if we did not find a chain yet, assume this is a bogus stream and
* ignore it */ * ignore it */
if (!chain) if (!chain) {
GST_WARNING_OBJECT (ogg, "No chain found, no Ogg data in stream ?");
ret = GST_FLOW_UNEXPECTED; ret = GST_FLOW_UNEXPECTED;
}
break; break;
} }