ext/ogg/gstoggdemux.c: Refix oggdemux, we only have a problem if we failed to find a chain and we are not EOF.

Original commit message from CVS:
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_activate_chain),
(gst_ogg_demux_read_chain):
Refix oggdemux, we only have a problem if we failed to find a chain and
we are not EOF.
This commit is contained in:
Wim Taymans 2008-04-02 15:41:50 +00:00
parent 38d188e468
commit 996128f268
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-04-02 Wim Taymans <wim.taymans@collabora.co.uk>
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_activate_chain),
(gst_ogg_demux_read_chain):
Refix oggdemux, we only have a problem if we failed to find a chain and
we are not EOF.
2008-04-02 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Victor STINNER <victor dot stinner at haypocalc dot com>

View file

@ -2357,7 +2357,7 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
}
if (ret != GST_FLOW_OK || chain == NULL) {
if (chain == NULL) {
if (ret == GST_FLOW_OK) {
GST_WARNING_OBJECT (ogg, "no chain was found");
ret = GST_FLOW_ERROR;
} else if (ret != GST_FLOW_UNEXPECTED) {