From: Vincent Penquerc'h Date: Tue, 23 Aug 2011 10:12:10 +0000 (+0100) Subject: oggdemux: do not warn when reaching EOS while scanning for the end chain X-Git-Tag: 1.19.3~511^2~6555^2~612 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b8b0fa1bbc22bb08e291c001e4413b47d0b120e;p=platform%2Fupstream%2Fgstreamer.git oggdemux: do not warn when reaching EOS while scanning for the end chain After all, we were asking for it. This gets rid of the last warning-about-expected-condition. w00t. https://bugzilla.gnome.org/show_bug.cgi?id=657151 --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 165bb23..56d23c4 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2670,7 +2670,11 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain) ret = gst_ogg_demux_get_next_page (ogg, &og, -1, NULL); if (ret != GST_FLOW_OK) { - GST_WARNING_OBJECT (ogg, "problem reading BOS page: ret=%d", ret); + if (ret == GST_FLOW_UNEXPECTED) { + GST_DEBUG_OBJECT (ogg, "Reached EOS, done reading end chain"); + } else { + GST_WARNING_OBJECT (ogg, "problem reading BOS page: ret=%d", ret); + } break; } if (!ogg_page_bos (&og)) {