rendered paste bodydiff --git a/libswfdec-gtk/swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c
index ee4da3e..dc8e515 100644
--- a/libswfdec-gtk/swfdec_playback_alsa.c
+++ b/libswfdec-gtk/swfdec_playback_alsa.c
@@ -198,6 +198,7 @@ swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio)
Stream *stream;
snd_pcm_t *ret;
snd_pcm_hw_params_t *hw_params;
+ snd_pcm_hw_params_t **hw_params_workaround = &hw_params;
guint rate;
snd_pcm_uframes_t uframes;
@@ -205,7 +206,7 @@ swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio)
ALSA_ERROR (snd_pcm_open (&ret, "default", SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK),
"Failed to open sound device", );
- snd_pcm_hw_params_alloca (&hw_params);
+ snd_pcm_hw_params_alloca (hw_params_workaround);
if (snd_pcm_hw_params_any (ret, hw_params) < 0) {
g_printerr ("No sound format available\n");
return;