v4l2videodec: get incorrect Pixel Aspect Ratio
Describe your issue
During the playback of the HLS content, content may be having multiple resolution mixed streams of different resolution, aspect ratios(WxR) and also different pixel aspect ratios. but it doesn't seem to update.
Expected Behavior
update correct Pixel Aspect Ratio after when resolution changed.
Log
The pixel-aspect-ratio is always 1.
0:00:29.568966617 871 0xb4d20f28 DEBUG v4l2videodec gstv4l2videodec.c:750:gst_v4l2_update_caps: update caps: video/x-raw, format=(string)M21S, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1363/1360, colorimetry=(string)bt709, framerate=(fraction)24/1, display_width=(int)640, display_height=(int)272
0:00:31.571832540 871 0xb4d20f28 DEBUG v4l2videodec gstv4l2videodec.c:750:gst_v4l2_update_caps: update caps: video/x-raw, format=(string)M21S, width=(int)512, height=(int)256, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1363/1360, colorimetry=(string)bt709, framerate=(fraction)24/1, display_width=(int)512, display_height=(int)216