d3d11: Fix wrong GstD3D11BufferPool type check

Fix typos

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2190>
This commit is contained in:
Seungha Yang 2021-04-23 16:53:16 +09:00
parent 788dfdbfa6
commit e4fe65a03e
2 changed files with 2 additions and 2 deletions

View file

@ -1844,7 +1844,7 @@ gst_d3d11_compositor_decide_allocation (GstAggregator * aggregator,
gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max);
/* create our own pool */
if (pool && !GST_D3D11_BUFFER_POOL (pool)) {
if (pool && !GST_IS_D3D11_BUFFER_POOL (pool)) {
gst_object_unref (pool);
pool = NULL;
}

View file

@ -1556,7 +1556,7 @@ gst_d3d11_decoder_decide_allocation (GstD3D11Decoder * decoder,
/* create our own pool */
if (pool && use_d3d11_pool) {
if (!GST_D3D11_BUFFER_POOL (pool)) {
if (!GST_IS_D3D11_BUFFER_POOL (pool)) {
GST_DEBUG_OBJECT (videodec,
"Downstream pool is not d3d11, will create new one");
gst_clear_object (&pool);