mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
ffenc: Send error upstream when gst_pad_push return is different from GST_FLOW_OK
This commit is contained in:
parent
1e2a773c9b
commit
9133bb9ba2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue