[MPlayer-cvslog] r35296 - trunk/libao2/ao_pulse.c
reimar
subversion at mplayerhq.hu
Tue Oct 30 18:44:02 CET 2012
Author: reimar
Date: Tue Oct 30 18:44:02 2012
New Revision: 35296
Log:
Fix crash when only specifying a host for -ao pulse.
Modified:
trunk/libao2/ao_pulse.c
Modified: trunk/libao2/ao_pulse.c
==============================================================================
--- trunk/libao2/ao_pulse.c Tue Oct 30 18:36:41 2012 (r35295)
+++ trunk/libao2/ao_pulse.c Tue Oct 30 18:44:02 2012 (r35296)
@@ -156,7 +156,7 @@ static int init(int rate_hz, int channel
sink = strchr(devarg, ':');
if (sink) *sink++ = 0;
if (devarg[0]) host = devarg;
- opts = strchr(sink, ':');
+ opts = sink ? strchr(sink, ':') : NULL;
if (opts) {
*opts++ = 0;
if (!sink[0]) sink = NULL;
More information about the MPlayer-cvslog
mailing list