]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/consumer_sdl.c
consumer avformat added, various cleanups and consumer realtime switching
[mlt] / src / modules / sdl / consumer_sdl.c
index 7d867df9369afb31b27e28240c8fd7201b6bf93a..238bf2a7fa1cd38e853fd4e74bd6194a9e481e0c 100644 (file)
@@ -246,11 +246,9 @@ static int consumer_play_audio( consumer_sdl this, mlt_frame frame, int init_aud
        mlt_audio_format afmt = mlt_audio_pcm;
 
        // Set the preferred params of the test card signal
-       int channels = 2;
-       int frequency = 48000;
+       int channels = mlt_properties_get_int( properties, "channels" );
+       int frequency = mlt_properties_get_int( properties, "frequency" );
        static int counter = 0;
-       if ( mlt_properties_get_int( properties, "frequency" ) != 0 )
-               frequency =  mlt_properties_get_int( properties, "frequency" );
 
        int samples = mlt_sample_calculator( mlt_properties_get_double( this->properties, "fps" ), frequency, counter++ );