validate:ssim: Fix calls to the converters
authorThibault Saunier <tsaunier@gnome.org>
Thu, 16 Jul 2015 11:44:07 +0000 (13:44 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 16 Jul 2015 14:30:52 +0000 (16:30 +0200)
We were mixing them

validate/gst-libs/gst/video/gstvalidatessim.c

index 8bbdc95..1ce706a 100644 (file)
@@ -285,7 +285,7 @@ gst_validate_ssim_compare_frames (GstValidateSsim * self,
   else
     converted_frame1 = *ref_frame;
 
-  convinfo2 = (SSimConverterInfo *) g_list_nth_data (self->priv->converters, 0);
+  convinfo2 = (SSimConverterInfo *) g_list_nth_data (self->priv->converters, 1);
   if (convinfo2->converter)
     gst_validate_ssim_convert (self, convinfo2, frame, &converted_frame2);
   else