[vlc-commits] oss: fix dangling descriptor value (refs #10772)
Rémi Denis-Courmont
git at videolan.org
Mon Feb 24 17:44:36 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 24 18:44:06 2014 +0200| [52a59eb4b29d985faf9987dba5360627d6ca2743] | committer: Rémi Denis-Courmont
oss: fix dangling descriptor value (refs #10772)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52a59eb4b29d985faf9987dba5360627d6ca2743
---
modules/audio_output/oss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c
index 97d7c73..e76f31a 100644
--- a/modules/audio_output/oss.c
+++ b/modules/audio_output/oss.c
@@ -103,7 +103,6 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
vlc_strerror_c(errno));
return VLC_EGENERIC;
}
- sys->fd = fd;
msg_Dbg (aout, "using OSS device: %s", device);
/* Select audio format */
@@ -215,6 +214,7 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
}
aout_FormatPrepare (fmt);
+ sys->fd = fd;
VolumeSync (aout);
sys->starting = true;
sys->format = *fmt;
More information about the vlc-commits
mailing list