mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
vpxenc: Unref frame on ERROR
All code paths for handle_frame() must somehow take ownership of the frame, be it by actually unreffing, forwarding the frame elsewhere or storing it for later. http://bugzilla.gnome.org/show_bug.cgi?id=760666
This commit is contained in:
parent
d34910bf30
commit
01f995b8dd
1 changed files with 1 additions and 0 deletions
|
@ -1903,6 +1903,7 @@ gst_vpx_enc_handle_frame (GstVideoEncoder * video_encoder,
|
|||
GST_ELEMENT_ERROR (encoder, LIBRARY, ENCODE,
|
||||
("Failed to encode frame"), ("%s", gst_vpx_error_name (status)));
|
||||
gst_video_codec_frame_set_user_data (frame, NULL, NULL);
|
||||
gst_video_codec_frame_unref (frame);
|
||||
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue