d3d11videosink: Remove max size condition from pool
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 5 Feb 2020 09:20:57 +0000 (18:20 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 12 Feb 2020 12:34:58 +0000 (12:34 +0000)
Actually our buffer pool size and the number of backbuffer are
independent. In case of reverse playback, upstream might request
a lot of buffers (up to GOP size).

sys/d3d11/gstd3d11videosink.c

index 03b3ffb..3eb9e35 100644 (file)
@@ -658,8 +658,7 @@ gst_d3d11_video_sink_propose_allocation (GstBaseSink * sink, GstQuery * query)
     }
   }
 
-  gst_query_add_allocation_pool (query, pool, size, 2,
-      DXGI_MAX_SWAP_CHAIN_BUFFERS);
+  gst_query_add_allocation_pool (query, pool, size, 2, 0);
   if (pool)
     g_object_unref (pool);