mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
2aa34164f6
commit
b9b3a9c4e1
5 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue