HString subtype;
UINT32 width = 0;
UINT32 height = 0;
+ UINT32 fps_n = 0;
+ UINT32 fps_d = 1;
hr = formatList->GetAt (i, &fmt);
if (!gst_mf_result (hr))
continue;
}
+ hr = fmt->get_FrameRate (&ratio);
+ if (!gst_mf_result (hr))
+ continue;
+
+ hr = ratio->get_Numerator (&fps_n);
+ if (!gst_mf_result (hr))
+ continue;
+
+ hr = ratio->get_Denominator (&fps_d);
+ if (!gst_mf_result (hr))
+ continue;
+
+ if ((gint) fps_n != GST_VIDEO_INFO_FPS_N (&videoInfo) ||
+ (gint) fps_d != GST_VIDEO_INFO_FPS_D (&videoInfo)) {
+ GST_DEBUG ("IMediaFrameFormat[%d], framerate %d/%d is not equal to "
+ "target framerate %d/%d", i, width, height,
+ GST_VIDEO_INFO_FPS_N (&videoInfo),
+ GST_VIDEO_INFO_FPS_D (&videoInfo));
+ continue;
+ }
+
/* TODO: check major type for audio */
hr = fmt->get_Subtype (subtype.GetAddressOf ());
if (!gst_mf_result (hr))