videoencoder: release frame in finish_frame when no output state is configured

Otherwise, frame is leaked.

https://bugzilla.gnome.org/show_bug.cgi?id=737706
This commit is contained in:
Aurélien Zanelli 2014-10-01 11:16:30 +02:00 committed by Sebastian Dröge
parent b5f3e5261a
commit 9297fe9ba0

View file

@ -2093,6 +2093,7 @@ done:
/* ERRORS */
no_output_state:
{
gst_video_encoder_release_frame (encoder, frame);
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
GST_ERROR_OBJECT (encoder, "Output state was not configured");
return GST_FLOW_ERROR;