mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
d3d11: Use correct ref/unref methods
Those objects are GstObject subclasses Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3496>
This commit is contained in:
parent
f4bf977719
commit
5996fad734
5 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue