ext/libpng/gstpngenc.c: In snapshot mode, we always return GST_FLOW_UNEXPECTED whatever the return value of gst_pad_p...

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().
This commit is contained in:
Edward Hervey 2006-05-16 17:20:04 +00:00
parent 6ac3f840db
commit e57d09e835
2 changed files with 8 additions and 4 deletions

View file

@ -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:

View 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 *\/ */