From 4fdb52871c87d419429ce697ed80387855daf64b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 23 Aug 2011 10:47:53 +0100 Subject: [PATCH] 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 --- ext/ogg/gstoggdemux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 5280270..f04b5cc 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2674,11 +2674,13 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain) break; } 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 * ignore it */ - if (!chain) + if (!chain) { + GST_WARNING_OBJECT (ogg, "No chain found, no Ogg data in stream ?"); ret = GST_FLOW_UNEXPECTED; + } break; } -- 2.7.4