Fix sending fps during unit status command.
authorDan Dennedy <dan@dennedy.org>
Sun, 12 Jun 2011 02:37:17 +0000 (19:37 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 12 Jun 2011 02:37:17 +0000 (19:37 -0700)
Provided-by: Maksym Veremeyenko

src/melted/melted_unit.c

index 8c7ad5d..fd52183 100644 (file)
@@ -553,7 +553,7 @@ int melted_unit_get_status( melted_unit unit, mvcp_status status )
                                title = strip_root( unit, info.resource );
                        strncpy( status->clip, title, sizeof( status->clip ) );
                        status->speed = (int)( mlt_producer_get_speed( producer ) * 1000.0 );
-                       status->fps = mlt_producer_get_fps( producer );
+                       status->fps = info.fps;
                        status->in = info.frame_in;
                        status->out = info.frame_out;
                        status->position = mlt_producer_frame( clip );