GStreamer 1.0: fix frame rate retrieved with QGstUtils::formatFromCaps.

Change-Id: I88e8416e50440bbd14b34a8b2b3b262b5c8401ab
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
Yoann Lopes
2015-01-26 13:29:00 +01:00
parent d9354b2299
commit 82e71d733f

View File

@@ -1058,7 +1058,7 @@ QVideoSurfaceFormat QGstUtils::formatForCaps(
handleType);
if (info->fps_d > 0)
format.setFrameRate(qreal(info->fps_d) / info->fps_n);
format.setFrameRate(qreal(info->fps_n) / info->fps_d);
if (info->par_d > 0)
format.setPixelAspectRatio(info->par_n, info->par_d);