cmmldec: fix flow return handling
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 08:20:03 +0000 (09:20 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 08:21:51 +0000 (09:21 +0100)
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

index 4da167b..3d5e34c 100644 (file)
@@ -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));