Commit a6e3aa2a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: fix unitialized value with S/PDIF

(regression from c9c770e7)
parent 5fc0ccda
...@@ -507,6 +507,7 @@ static int Open (vlc_object_t *obj) ...@@ -507,6 +507,7 @@ static int Open (vlc_object_t *obj)
/* Setup audio_output_t */ /* Setup audio_output_t */
aout->format.i_format = fourcc; aout->format.i_format = fourcc;
aout->format.i_rate = rate; aout->format.i_rate = rate;
sys->reorder = NULL;
if (spdif) if (spdif)
{ {
aout->format.i_bytes_per_frame = AOUT_SPDIF_SIZE; aout->format.i_bytes_per_frame = AOUT_SPDIF_SIZE;
...@@ -523,8 +524,6 @@ static int Open (vlc_object_t *obj) ...@@ -523,8 +524,6 @@ static int Open (vlc_object_t *obj)
case 8: case 8:
sys->reorder = Reorder71; sys->reorder = Reorder71;
break; break;
default:
sys->reorder = NULL;
} }
aout_SoftVolumeInit (aout); aout_SoftVolumeInit (aout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment