mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
d3d12decoder: Hold reference pictures in fence data
Keep reference pictures alive during executing decoding commands Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6709>
This commit is contained in:
parent
0f5f170a40
commit
27c02a0b80
1 changed files with 5 additions and 0 deletions
|
@ -1312,6 +1312,11 @@ gst_d3d12_decoder_end_picture (GstD3D12Decoder * decoder,
|
|||
gst_d3d12_fence_data_pool_acquire (priv->fence_data_pool, &fence_data);
|
||||
gst_d3d12_fence_data_add_notify_mini_object (fence_data,
|
||||
gst_mini_object_ref (decoder_pic));
|
||||
for (guint i = 0; i < ref_pics->len; i++) {
|
||||
auto ref_pic = (GstCodecPicture *) g_ptr_array_index (ref_pics, i);
|
||||
gst_d3d12_fence_data_add_notify_mini_object (fence_data,
|
||||
gst_codec_picture_ref (ref_pic));
|
||||
}
|
||||
gst_d3d12_fence_data_add_notify_mini_object (fence_data, gst_ca);
|
||||
|
||||
gst_d3d12_command_queue_set_notify (priv->cmd->queue, priv->cmd->fence_val,
|
||||
|
|
Loading…
Reference in a new issue