]> git.sesse.net Git - mlt/commitdiff
Fix audio_index=all with linsys SDI consumer.
authorDan Dennedy <dan@dennedy.org>
Fri, 23 Sep 2011 16:26:30 +0000 (09:26 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 23 Sep 2011 16:26:30 +0000 (09:26 -0700)
src/modules/linsys/consumer_SDIstream.c

index 873068d3da81d2cd0ab0c73d344ad9ee897207b8..d32c8257d1a0004fdcbbdb53374b0a5c5d7bffd8 100644 (file)
@@ -410,7 +410,7 @@ static void *consumer_thread(void *arg) {
 
        // Tell the framework how we want our audio and video
        int frequency = this->audio_format.sample_rate;
-       int channels = 0;
+       int channels = mlt_properties_get_int(  MLT_CONSUMER_PROPERTIES(consumer), "channels" );
        int samples;
 
        // set number of audio channels, linsys vidport model 193 is limited to 8 channels (4AES frames)