rawvideoparse: set format from caps in gst_raw_video_parse_set_config_from_caps
authorCorentin Damman <c.damman@intopix.com>
Wed, 16 Mar 2022 10:31:56 +0000 (10:31 +0000)
committerCorentin Damman <c.damman@intopix.com>
Sun, 27 Mar 2022 15:50:07 +0000 (15:50 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1970>

subprojects/gst-plugins-base/gst/rawparse/gstrawvideoparse.c

index fd1a993..ab0fa65 100644 (file)
@@ -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;