mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
vaapisink: fix memory leak of GstVaapiUploader instance.
Make sure gst_vaapisink_ensure_uploader() checks for the existence of a former GstVaapiUploader instance prior to forcibly creating a new one. https://bugzilla.gnome.org/show_bug.cgi?id=703980
This commit is contained in:
parent
92a124f306
commit
e5a50af2ae
1 changed files with 1 additions and 7 deletions
|
@ -673,13 +673,7 @@ gst_vaapisink_start(GstBaseSink *base_sink)
|
|||
{
|
||||
GstVaapiSink * const sink = GST_VAAPISINK(base_sink);
|
||||
|
||||
if (!gst_vaapisink_ensure_display(sink))
|
||||
return FALSE;
|
||||
|
||||
sink->uploader = gst_vaapi_uploader_new(sink->display);
|
||||
if (!sink->uploader)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
return gst_vaapisink_ensure_uploader(sink);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue