summaryrefslogtreecommitdiff
path: root/audio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio.cpp')
-rw-r--r--audio.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio.cpp b/audio.cpp
index d34ceae..923812d 100644
--- a/audio.cpp
+++ b/audio.cpp
@@ -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);