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

audioencoder: Error-handling for pushing headers

https://bugzilla.gnome.org/show_bug.cgi?id=773105
parent 92392a47
......@@ -921,7 +921,12 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
priv->bytes_out += size;
GST_OBJECT_UNLOCK (enc);
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