mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
v4l2object: clear format lists if source change event is received
If decoder notify a source change event when the capture format is changed, not the resolution changed. then gst_v4l2_object_acquire_format will retuen false due to unsupported format. we need to clear the format lists in the source change flow, and reenumerate format list Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5218>
This commit is contained in:
parent
c4b30174a3
commit
fd720fbf64
1 changed files with 3 additions and 0 deletions
|
@ -5709,6 +5709,9 @@ again:
|
|||
goto again;
|
||||
}
|
||||
|
||||
if (v4l2object->formats)
|
||||
gst_v4l2_object_clear_format_list (v4l2object);
|
||||
|
||||
return GST_V4L2_FLOW_RESOLUTION_CHANGE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue