summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-09 22:11:08 +0100
committerwm4 <wm4@nowhere>2014-03-09 22:11:08 +0100
commit4c19c71b85d7c52648feaa6dee599d84f9810da4 (patch)
treef820c9151bed3826ce5215bb051e7e5a8898bbad /audio
parentd350181aafa2fb5fdb800b1cf05539b71697de44 (diff)
downloadmpv-4c19c71b85d7c52648feaa6dee599d84f9810da4.tar.bz2
mpv-4c19c71b85d7c52648feaa6dee599d84f9810da4.tar.xz
ao_alsa: remove unneeded initializations
priv is 0-initialized, can_pause is always overwritten later.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index c91b6eda6d..e1e3a164d3 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -354,9 +354,6 @@ static int init(struct ao *ao)
struct priv *p = ao->priv;
- p->prepause_frames = 0;
- p->delay_before_pause = 0;
-
/* switch for spdif
* sets opening sequence for SPDIF
* sets also the playback and other switches 'on the fly'
@@ -379,9 +376,6 @@ static int init(struct ao *ao)
device = p->cfg_device;
MP_VERBOSE(ao, "using device: %s\n", device);
-
- p->can_pause = 1;
-
MP_VERBOSE(ao, "using ALSA version: %s\n", snd_asoundlib_version());
int open_mode = p->cfg_block ? 0 : SND_PCM_NONBLOCK;