mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
plugins: fix creation of video buffer from surface proxy.
Fix a regression introduced with commit 8ef490a
.
This commit is contained in:
parent
efe623c253
commit
5a1293a27e
1 changed files with 6 additions and 1 deletions
|
@ -120,10 +120,15 @@ GstBuffer *
|
||||||
gst_vaapi_video_buffer_new_with_surface_proxy(GstVaapiSurfaceProxy *proxy)
|
gst_vaapi_video_buffer_new_with_surface_proxy(GstVaapiSurfaceProxy *proxy)
|
||||||
{
|
{
|
||||||
GstVaapiDisplay *display;
|
GstVaapiDisplay *display;
|
||||||
|
GstVaapiSurface *surface;
|
||||||
|
|
||||||
g_return_val_if_fail(GST_VAAPI_IS_SURFACE_PROXY(proxy), NULL);
|
g_return_val_if_fail(GST_VAAPI_IS_SURFACE_PROXY(proxy), NULL);
|
||||||
|
|
||||||
display = gst_vaapi_object_get_display(GST_VAAPI_OBJECT(proxy));
|
surface = gst_vaapi_surface_proxy_get_surface(proxy);
|
||||||
|
if (!surface)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
display = gst_vaapi_object_get_display(GST_VAAPI_OBJECT(surface));
|
||||||
if (!display)
|
if (!display)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue