mimdec: Stop decoding if can't push
authorOlivier Crête <olivier.crete@collabora.co.uk>
Wed, 2 Jun 2010 23:45:29 +0000 (19:45 -0400)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Thu, 3 Jun 2010 01:03:54 +0000 (21:03 -0400)
ext/mimic/gstmimdec.c

index fa8ab9c23ec4091f9af737bc1b55088a985ab137..f60fcd4860c86653dd4eef5324f6c209a19bdfc1 100644 (file)
@@ -301,6 +301,9 @@ gst_mim_dec_chain (GstPad * pad, GstBuffer * buf)
     gst_buffer_set_caps (out_buf, caps);
     gst_caps_unref (caps);
     res = gst_pad_push (mimdec->srcpad, out_buf);
+
+    if (res != GST_FLOW_OK)
+      break;
   }
 
 out: