From 4c19c71b85d7c52648feaa6dee599d84f9810da4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 9 Mar 2014 22:11:08 +0100 Subject: ao_alsa: remove unneeded initializations priv is 0-initialized, can_pause is always overwritten later. --- audio/out/ao_alsa.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'audio') 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; -- cgit v1.2.3