d3d11: Use correct ref/unref methods

Those objects are GstObject subclasses

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3479>
This commit is contained in:
Seungha Yang 2022-11-29 02:06:11 +09:00 committed by GStreamer Marge Bot
parent 2aa34164f6
commit b9b3a9c4e1
5 changed files with 5 additions and 5 deletions

View file

@ -1108,7 +1108,7 @@ gst_d3d11_video_sink_propose_allocation (GstBaseSink * sink, GstQuery * query)
* on window-resize event */
gst_query_add_allocation_pool (query, pool, size, 2, 0);
if (pool)
g_object_unref (pool);
gst_object_unref (pool);
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);
gst_query_add_allocation_meta (query,

View file

@ -549,7 +549,7 @@ gst_d3d11_window_core_window_new (GstD3D11Device * device, guintptr handle)
return NULL;
}
g_object_ref_sink (window);
gst_object_ref_sink (window);
return window;
}

View file

@ -330,7 +330,7 @@ gst_d3d11_window_dummy_new (GstD3D11Device * device)
g_object_new (GST_TYPE_D3D11_WINDOW_DUMMY, "d3d11device", device, NULL);
window->initialized = TRUE;
g_object_ref_sink (window);
gst_object_ref_sink (window);
return window;
}

View file

@ -540,7 +540,7 @@ gst_d3d11_window_swap_chain_panel_new (GstD3D11Device * device, guintptr handle)
return NULL;
}
g_object_ref_sink (window);
gst_object_ref_sink (window);
return window;
}

View file

@ -1128,7 +1128,7 @@ gst_d3d11_window_win32_new (GstD3D11Device * device, guintptr handle)
return NULL;
}
g_object_ref_sink (window);
gst_object_ref_sink (window);
return window;
}