mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
d3d12decoder: Set buffer flag on output buffer
... and remove unnecessary condition check Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5891>
This commit is contained in:
parent
02563605e8
commit
0077c4beb0
1 changed files with 4 additions and 6 deletions
|
@ -1312,12 +1312,7 @@ gst_d3d12_decoder_can_direct_render (GstD3D12Decoder * self,
|
|||
if (priv->session->need_crop && !priv->session->use_crop_meta)
|
||||
return FALSE;
|
||||
|
||||
/* we can do direct render in this case, since there is no DPB pool size
|
||||
* limit, or output picture does not use texture array */
|
||||
if (priv->session->array_of_textures || priv->session->reference_only)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
@ -1518,7 +1513,10 @@ gst_d3d12_decoder_process_output (GstD3D12Decoder * self,
|
|||
}
|
||||
|
||||
priv->session->lock.unlock ();
|
||||
|
||||
GST_BUFFER_FLAG_SET (frame->output_buffer, buffer_flags);
|
||||
gst_codec_picture_unref (picture);
|
||||
|
||||
return gst_video_decoder_finish_frame (videodec, frame);
|
||||
|
||||
error:
|
||||
|
|
Loading…
Reference in a new issue