1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00

Added missing declaration of variables 'err'.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1056 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2001-06-08 13:35:24 +00:00
parent 49afe84db7
commit 9c393155c7

View File

@ -237,6 +237,8 @@ static int init(int rate_hz, int channels, int format, int flags)
/* close audio device */ /* close audio device */
static void uninit() static void uninit()
{ {
int err;
if ((err = snd_pcm_playback_drain(alsa_handler)) < 0) if ((err = snd_pcm_playback_drain(alsa_handler)) < 0)
{ {
printf("alsa-uninit: playback drain error: %s\n", snd_strerror(err)); printf("alsa-uninit: playback drain error: %s\n", snd_strerror(err));
@ -301,6 +303,7 @@ static void audio_pause()
/* resume playing, after audio_pause() */ /* resume playing, after audio_pause() */
static void audio_resume() static void audio_resume()
{ {
int err;
if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0) if ((err = snd_pcm_channel_prepare(alsa_handler, SND_PCM_CHANNEL_PLAYBACK)) < 0)
{ {
printf("alsa-resume: channel prepare error: %s\n", snd_strerror(err)); printf("alsa-resume: channel prepare error: %s\n", snd_strerror(err));