summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-11 20:58:05 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-11 20:58:05 +0300
commit2a30588258a7c0bf15d5d20b614aa6f96a256e19 (patch)
treeb5c2ba5727553c2b6acfc7a60a4d8222dc83ace9 /libao2
parent1cb179855ea4911bc3f4a71bcc8343b26aa367e6 (diff)
downloadmpv-2a30588258a7c0bf15d5d20b614aa6f96a256e19.tar.bz2
mpv-2a30588258a7c0bf15d5d20b614aa6f96a256e19.tar.xz
ao_pcm: fix pointless message due to uninitialize variable
The variable corresponding to the "fast" suboption of ao_pcm was uninitialized. Fix. The only effect was possibly printing a warning about the suboption being deprecated even if it wasn't used.
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c
index f9aef15fd1..4f593618d8 100644
--- a/libao2/ao_pcm.c
+++ b/libao2/ao_pcm.c
@@ -127,7 +127,7 @@ static int init(struct ao *ao, char *params)
struct priv *priv = talloc_zero(ao, struct priv);
ao->priv = priv;
- int fast;
+ int fast = 0;
const opt_t subopts[] = {
{"waveheader", OPT_ARG_BOOL, &priv->waveheader, NULL},
{"file", OPT_ARG_MSTRZ, &priv->outputfilename, NULL},