Commit a32b25db authored by Havard Graff's avatar Havard Graff Committed by Sebastian Dröge

audioencoder: Error-handling for pushing headers
parent 92392a47
......@@ -921,7 +921,12 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
priv->bytes_out += size;
gst_pad_push (enc->srcpad, tmpbuf);
ret = gst_pad_push (enc->srcpad, tmpbuf);
if (ret != GST_FLOW_OK) {
GST_WARNING_OBJECT (enc, "pushing header returned %s",
gst_flow_get_name (ret));
goto exit;
priv->ctx.new_headers = FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment