diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index a376fd317f..afd6c135e4 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -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; }