From fff0e878bf94ed1c7819767313701d61b8a53cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 7 Sep 2010 09:20:03 +0100 Subject: [PATCH] cmmldec: fix flow return handling Fix buggy GST_FLOW_IS_FATAL substitution, and 'make check': - if (!GST_FLOW_IS_FATAL (dec->flow_return) && !dec->sent_root) { + if (dec->flow_return != GST_FLOW_OK && !dec->sent_root) { --- ext/annodex/gstcmmldec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/annodex/gstcmmldec.c b/ext/annodex/gstcmmldec.c index 4da167b34b..3d5e34c2cb 100644 --- a/ext/annodex/gstcmmldec.c +++ b/ext/annodex/gstcmmldec.c @@ -511,7 +511,7 @@ gst_cmml_dec_parse_first_header (GstCmmlDec * dec, GstBuffer * buffer) /* if there is a processing instruction, gst_cmml_dec_parse_preamble * will be triggered. Otherwise we need to call it manually. */ - if (dec->flow_return != GST_FLOW_OK && !dec->sent_root) { + if (dec->flow_return == GST_FLOW_OK && !dec->sent_root) { guchar *preamble = (guchar *) g_strndup ((gchar *) GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer));