ffenc: Send error upstream when gst_pad_push return is different from GST_FLOW_OK

This commit is contained in:
Thiago Santos 2009-04-23 14:35:10 -03:00
parent 1e2a773c9b
commit 9133bb9ba2

View file

@ -783,6 +783,11 @@ gst_ffmpegenc_chain_audio (GstPad * pad, GstBuffer * inbuf)
gst_buffer_unref (subbuf);
ret = gst_pad_push (ffmpegenc->srcpad, outbuf);
if (ret != GST_FLOW_OK) {
/* cleanup and return */
gst_buffer_unref (inbuf);
return ret;
}
in_size -= frame_size;
}