From b351da5e83bfdf1c4d2bc2de40d1818d76bc559b Mon Sep 17 00:00:00 2001 From: Corentin Damman Date: Wed, 16 Mar 2022 10:31:56 +0000 Subject: [PATCH] rawvideoparse: set format from caps in gst_raw_video_parse_set_config_from_caps Part-of: --- subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c b/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c index fd1a993d6d..ab0fa651d5 100644 --- a/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c +++ b/subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c @@ -846,6 +846,7 @@ gst_raw_video_parse_set_config_from_caps (GstRawBaseParse * raw_base_parse, if (config_ptr->ready) { config_ptr->width = GST_VIDEO_INFO_WIDTH (&(config_ptr->info)); config_ptr->height = GST_VIDEO_INFO_HEIGHT (&(config_ptr->info)); + config_ptr->format = GST_VIDEO_INFO_FORMAT (&(config_ptr->info)); config_ptr->pixel_aspect_ratio_n = GST_VIDEO_INFO_PAR_N (&(config_ptr->info)); config_ptr->pixel_aspect_ratio_d = @@ -853,7 +854,6 @@ gst_raw_video_parse_set_config_from_caps (GstRawBaseParse * raw_base_parse, config_ptr->framerate_n = GST_VIDEO_INFO_FPS_N (&(config_ptr->info)); config_ptr->framerate_d = GST_VIDEO_INFO_FPS_D (&(config_ptr->info)); config_ptr->interlaced = GST_VIDEO_INFO_IS_INTERLACED (&(config_ptr->info)); - config_ptr->height = GST_VIDEO_INFO_HEIGHT (&(config_ptr->info)); config_ptr->top_field_first = 0; config_ptr->frame_size = 0;