From 5996fad734689cb6f1c04d4b237a5eb948d0d803 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 29 Nov 2022 02:06:11 +0900 Subject: [PATCH] d3d11: Use correct ref/unref methods Those objects are GstObject subclasses Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp | 2 +- .../gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp | 2 +- .../gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp | 2 +- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp index c18adb4def..7682872814 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp @@ -919,7 +919,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, diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp index a2b4e5b3d3..da57f9d1c3 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp @@ -550,7 +550,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; } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp index f45ffbd611..1c53313563 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp @@ -531,7 +531,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; } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp index 2e6773a260..9f3654becf 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp @@ -541,7 +541,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; } diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp index f4195f59ff..a74a1bb519 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp @@ -1145,7 +1145,7 @@ gst_d3d11_window_win32_new (GstD3D11Device * device, guintptr handle) return NULL; } - g_object_ref_sink (window); + gst_object_ref_sink (window); return window; }