[vlc-commits] aout: fix crash when changing device fails
Rémi Denis-Courmont
git at videolan.org
Mon Jan 14 18:32:08 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 14 19:27:02 2013 +0200| [b6916811f018ef9ddb5670cc0aed65ddb66d8957] | committer: Rémi Denis-Courmont
aout: fix crash when changing device fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6916811f018ef9ddb5670cc0aed65ddb66d8957
---
src/audio_output/dec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 746c680..d0f3690 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -149,7 +149,8 @@ static int aout_CheckReady (audio_output_t *aout)
owner->sync.end = VLC_TS_INVALID;
owner->sync.resamp_type = AOUT_RESAMPLING_NONE;
- if (aout_FiltersNew (aout, &owner->input_format, &owner->mixer_format,
+ if (owner->mixer_format.i_format
+ && aout_FiltersNew (aout, &owner->input_format, &owner->mixer_format,
&request_vout))
{
aout_OutputDelete (aout);
More information about the vlc-commits
mailing list