diff options
Diffstat (limited to 'audio.cpp')
-rw-r--r-- | audio.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -71,9 +71,8 @@ MarkAdMark *cMarkAdAudio::Process(int LastIFrame) if (ChannelChange(macontext->Audio.Info.Channels,channels)) { char *buf=NULL; - asprintf(&buf,"audio channel change from %i to %i (%i)", channels, - macontext->Audio.Info.Channels,LastIFrame); - if (buf) + if (asprintf(&buf,"audio channel change from %i to %i (%i)", channels, + macontext->Audio.Info.Channels,LastIFrame)!=-1) { isyslog("markad [%i]: %s",recvnumber, buf); AddMark(LastIFrame,buf); |