summaryrefslogtreecommitdiff
path: root/audio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio.cpp')
-rw-r--r--audio.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/audio.cpp b/audio.cpp
index 4a40700..f391b33 100644
--- a/audio.cpp
+++ b/audio.cpp
@@ -168,7 +168,14 @@ MarkAdMark *cMarkAdAudio::Process(int LastIFrame)
macontext->Audio.Info.Channels,lastiframe)!=-1)
{
isyslog(buf);
- AddMark(MT_CHANNELCHANGE,lastiframe,buf);
+ if (macontext->Audio.Info.Channels>2)
+ {
+ AddMark(MT_CHANNELSTART,lastiframe,buf);
+ }
+ else
+ {
+ AddMark(MT_CHANNELSTOP,lastiframe,buf);
+ }
free(buf);
}
}