]> git.sesse.net Git - mlt/commitdiff
Fix mlt_consumer_position when encoding audio only.
authorDan Dennedy <dan@dennedy.org>
Mon, 28 Feb 2011 05:47:01 +0000 (21:47 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 28 Feb 2011 05:47:01 +0000 (21:47 -0800)
src/modules/avformat/consumer_avformat.c

index 3d1bc18546b2dfa80e7a7ca8967cdcdebe0cc8db..59a99fd5ab9f2a0476e8bb859d0ed17e55a45ec3 100644 (file)
@@ -1227,6 +1227,9 @@ static void *consumer_thread( void *arg )
                                // Append the samples
                                sample_fifo_append( fifo, pcm, samples * channels );
                                total_time += ( samples * 1000000 ) / frequency;
+
+                               if ( !video_st )
+                                       mlt_events_fire( properties, "consumer-frame-show", frame, NULL );
                        }
 
                        // Encode the image