]> git.sesse.net Git - mlt/blobdiff - src/modules/rtaudio/consumer_rtaudio.cpp
Merge branch 'master' of github.com:mltframework/mlt
[mlt] / src / modules / rtaudio / consumer_rtaudio.cpp
index f425fed0fce9638678850a9abc50976611d75c54..01f5955407bd4573fabedf26b8d797e1b4e02d1a 100644 (file)
@@ -640,7 +640,7 @@ mlt_consumer consumer_rtaudio_init( mlt_profile profile, mlt_service_type type,
        if ( rtaudio && !mlt_consumer_init( rtaudio->getConsumer(), rtaudio, profile ) )
        {
                // If initialises without error
-               if ( rtaudio->open( arg ) )
+               if ( rtaudio->open( arg? arg : getenv( "AUDIODEV" ) ) )
                {
                        // Setup callbacks
                        consumer = rtaudio->getConsumer();