d3d11: Use correct ref/unref methods
authorSeungha Yang <seungha@centricular.com>
Mon, 28 Nov 2022 17:06:11 +0000 (02:06 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 28 Nov 2022 18:50:03 +0000 (18:50 +0000)
Those objects are GstObject subclasses

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3479>

subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_corewindow.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_swapchainpanel.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp

index 001c4f1..06b305c 100644 (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,
index 2ff60ab..b4cee66 100644 (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;
 }
index 0009f70..e85f3d4 100644 (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;
 }
index 4574aab..a034489 100644 (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;
 }
index 6ef2623..8c8a22f 100644 (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;
 }