]> git.sesse.net Git - mlt/commitdiff
Only report video encode error when truly error result.
authorDan Dennedy <dan@dennedy.org>
Sun, 17 Jan 2010 02:09:33 +0000 (18:09 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 19 Jan 2010 05:21:06 +0000 (21:21 -0800)
src/modules/avformat/consumer_avformat.c

index cd4d274effc45dd460626c6f77ff83a81f93429e..2227da9e2900f3d993243decdeaa9a54bc141a34 100644 (file)
@@ -1236,9 +1236,9 @@ static void *consumer_thread( void *arg )
                                                        if ( mlt_properties_get_data( properties, "_logfile", NULL ) && c->stats_out )
                                                                fprintf( mlt_properties_get_data( properties, "_logfile", NULL ), "%s", c->stats_out );
                                                } 
-                                               else
+                                               else if ( out_size < 0 )
                                                {
-                                                       mlt_log_warning( MLT_CONSUMER_SERVICE( this ), "error with video encode\n" );
+                                                       mlt_log_warning( MLT_CONSUMER_SERVICE( this ), "error with video encode %d\n", frame_count );
                                                }
                                        }
                                        frame_count++;