Remove useless 'channels' assignment.
authorBenoit Fouet <benoit.fouet@free.fr>
Thu, 7 Aug 2008 06:56:37 +0000 (06:56 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Thu, 7 Aug 2008 06:56:37 +0000 (06:56 +0000)
Originally committed as revision 14656 to svn://svn.ffmpeg.org/ffmpeg/trunk

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;
     }
         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);
 
     tmp = s->sample_rate;
     err = ioctl(audio_fd, SNDCTL_DSP_SPEED, &tmp);