mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
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:
parent
b5f3e5261a
commit
9297fe9ba0
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue