summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-19 15:50:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-19 15:50:11 +0200
commit9f9d6a8a9354960eb9c42f9c45ed507f05804ff4 (patch)
tree6e7de2a8ce6d3cedc78038e4d70ef2ff56f24528 /dvbapi.c
parent82725f53b5c23d3436f3b71845a1b61447b9780f (diff)
downloadvdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.gz
vdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.bz2
Implemented cStatusMonitor to allow plugins to set up a status monitor
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index c1f416eb..e4295060 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.178 2002/05/18 14:26:08 kls Exp $
+ * $Id: dvbapi.c 1.179 2002/05/19 14:46:38 kls Exp $
*/
#include "dvbapi.h"
@@ -25,6 +25,7 @@ extern "C" {
#include "recording.h"
#include "remux.h"
#include "ringbuffer.h"
+#include "status.h"
#include "tools.h"
#include "videodir.h"
@@ -2124,6 +2125,8 @@ eSetChannelResult cDvbApi::SetChannel(int ChannelNumber, int Frequency, char Pol
StopTransfer();
StopReplay();
+ cStatusMonitor::MsgChannelSwitch(this, 0);
+
// Must set this anyway to avoid getting stuck when switching through
// channels with 'Up' and 'Down' keys:
currentChannel = ChannelNumber;
@@ -2303,6 +2306,8 @@ eSetChannelResult cDvbApi::SetChannel(int ChannelNumber, int Frequency, char Pol
if (Result == scrOk && siProcessor)
siProcessor->SetCurrentTransponder(Frequency);
+ cStatusMonitor::MsgChannelSwitch(this, ChannelNumber);
+
return Result;
}
@@ -2546,6 +2551,7 @@ void cDvbApi::SetVolume(int Volume, bool Absolute)
audioMixer_t am;
am.volume_left = am.volume_right = volume;
CHECK(ioctl(fd_audio, AUDIO_SET_MIXER, &am));
+ cStatusMonitor::MsgSetVolume(volume, Absolute);
if (volume > 0)
mute = false;
}