ext/libpng/gstpngenc.c: In snapshot mode, we always return GST_FLOW_UNEXPECTED whatev...
authorEdward Hervey <bilboed@bilboed.com>
Tue, 16 May 2006 17:20:04 +0000 (17:20 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 16 May 2006 17:20:04 +0000 (17:20 +0000)
Original commit message from CVS:
* ext/libpng/gstpngenc.c: (gst_pngenc_chain):
In snapshot mode, we always return GST_FLOW_UNEXPECTED whatever the
return value of gst_pad_push_event().

ChangeLog
ext/libpng/gstpngenc.c

index 27f3925..363343a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-16  Edward Hervey  <edward@fluendo.com>
+
+       * ext/libpng/gstpngenc.c: (gst_pngenc_chain): 
+       In snapshot mode, we always return GST_FLOW_UNEXPECTED whatever the
+       return value of gst_pad_push_event().
+
 2006-05-16  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst/autodetect/gstautoaudiosink.c:
index c20b30f..8736b33 100644 (file)
@@ -331,10 +331,8 @@ gst_pngenc_chain (GstPad * pad, GstBuffer * buf)
     /* send EOS event, since a frame has been pushed out */
     event = gst_event_new_eos ();
 
-    ret = gst_pad_push_event (pngenc->srcpad, event);
-
-    if (!(GST_FLOW_IS_FATAL (ret)))
-      ret = GST_FLOW_UNEXPECTED;
+    gst_pad_push_event (pngenc->srcpad, event);
+    ret = GST_FLOW_UNEXPECTED;
   }
 /*  else if (pngenc->newmedia) { */
 /*     /\* send new media discont *\/ */