[vlc-commits] ALSA: fix unitialized value with S/PDIF
Rémi Denis-Courmont
git at videolan.org
Mon Jul 23 17:17:16 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 23 17:57:43 2012 +0300| [a6e3aa2a848ab114866a717b27c6bb8d67cf4d80] | committer: Rémi Denis-Courmont
ALSA: fix unitialized value with S/PDIF
(regression from c9c770e7f463e896453ce7b25629b5ef4df8a3f8)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6e3aa2a848ab114866a717b27c6bb8d67cf4d80
---
modules/audio_output/alsa.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 68dabb4..40c81f4 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -507,6 +507,7 @@ static int Open (vlc_object_t *obj)
/* Setup audio_output_t */
aout->format.i_format = fourcc;
aout->format.i_rate = rate;
+ sys->reorder = NULL;
if (spdif)
{
aout->format.i_bytes_per_frame = AOUT_SPDIF_SIZE;
@@ -523,8 +524,6 @@ static int Open (vlc_object_t *obj)
case 8:
sys->reorder = Reorder71;
break;
- default:
- sys->reorder = NULL;
}
aout_SoftVolumeInit (aout);
More information about the vlc-commits
mailing list