diracenc: fix frame leaks
This commit is contained in:
parent
5f8e9cefa2
commit
9f952567ae
@ -928,6 +928,7 @@ gst_dirac_enc_handle_frame (GstVideoEncoder * base_video_encoder,
|
|||||||
}
|
}
|
||||||
if (r != (int) GST_BUFFER_SIZE (frame->input_buffer)) {
|
if (r != (int) GST_BUFFER_SIZE (frame->input_buffer)) {
|
||||||
GST_ERROR ("failed to push picture");
|
GST_ERROR ("failed to push picture");
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -941,6 +942,7 @@ gst_dirac_enc_handle_frame (GstVideoEncoder * base_video_encoder,
|
|||||||
|
|
||||||
ret = gst_dirac_enc_process (dirac_enc, FALSE);
|
ret = gst_dirac_enc_process (dirac_enc, FALSE);
|
||||||
|
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user