Remove useless 'channels' assignment.
[ffmpeg.git] / libavdevice / audio.c
index 172c5f1a3831bc1abd657ab18c3522cb97ebb91f..e03ada789a04eafd293ec89648a719b4b496766d 100644 (file)
@@ -129,8 +129,6 @@ static int audio_open(AudioData *s, int is_output, const char *audio_device)
         av_log(NULL, AV_LOG_ERROR, "SNDCTL_DSP_STEREO: %s\n", strerror(errno));
         goto fail;
     }
-    if (tmp)
-        s->channels = 2;
 
     tmp = s->sample_rate;
     err = ioctl(audio_fd, SNDCTL_DSP_SPEED, &tmp);