mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
v4l2: Reset transfer in gst_v4l2_object_acquire_format()
get_colorspace() checks input caps transfer when mapping V4L2_XFER_FUNC_709 back to V4L2_COLORSPACE_BT2020 and GST_VIDEO_TRANSFER_BT2020_12. After receiving source change event, decoder will G_FMT and S_FMT again. So need to reset transfer when acquiring format to avoid using the old transfer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2505>
This commit is contained in:
parent
759321f7bc
commit
b364b3cdc9
1 changed files with 1 additions and 0 deletions
|
@ -4177,6 +4177,7 @@ gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, GstVideoInfo * info)
|
||||||
|
|
||||||
gst_video_info_init (info);
|
gst_video_info_init (info);
|
||||||
gst_video_alignment_reset (&align);
|
gst_video_alignment_reset (&align);
|
||||||
|
v4l2object->transfer = GST_VIDEO_TRANSFER_UNKNOWN;
|
||||||
|
|
||||||
memset (&fmt, 0x00, sizeof (struct v4l2_format));
|
memset (&fmt, 0x00, sizeof (struct v4l2_format));
|
||||||
fmt.type = v4l2object->type;
|
fmt.type = v4l2object->type;
|
||||||
|
|
Loading…
Reference in a new issue