From 913d4657c75c3005880a0fdb59a902a390f1fc05 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 13 Oct 2007 12:57:15 +0200 Subject: Fixed description of DeviceSetAvailableTrack() and cReceiver(), and added an example ~cMyReceiver() in PLUGINS.html --- CONTRIBUTORS | 2 ++ HISTORY | 2 ++ PLUGINS.html | 16 ++++++++++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 39cd6dd2..a80fdff3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1426,6 +1426,8 @@ Marco Schl for fixing checking for ttDolbyLast in cDevice::SetCurrentAudioTrack() for fixing selecting the audio track when pressing Ok in the Audio menu for implementing handling DVB subtitles + for fixing the description of DeviceSetAvailableTrack() and cReceiver(), and adding + an example ~cMyReceiver() in PLUGINS.html (thanks to Marco Schlüßler). Jürgen Schmitz for reporting a bug in displaying the current channel when switching via the SVDRP diff --git a/HISTORY b/HISTORY index 9e96c653..f4342c4f 100644 --- a/HISTORY +++ b/HISTORY @@ -5467,3 +5467,5 @@ Video Disk Recorder Revision History - Implemented sending all frames to devices that can handle them in fast forward trick speeds (thansk to Timo Eskola). - Updated the Hungarian language texts (thanks to Thomas Günther). +- Fixed description of DeviceSetAvailableTrack() and cReceiver(), and added an + example ~cMyReceiver() in PLUGINS.html (thanks to Marco Schlüßler). diff --git a/PLUGINS.html b/PLUGINS.html index 1dff44c7..134bd8f2 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -1328,7 +1328,9 @@ A player that has special requirements about audio tracks should announce its available audio tracks by calling

-bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, uint32_t Flags = 0)
+
  +bool DeviceSetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language = NULL, const char *Description = NULL) +

See device.h for details about the parameters for track handling. @@ -1454,10 +1456,20 @@ public: }; cMyReceiver::cMyReceiver(int Pid) -:cReceiver(0, -1, Pid) +
  +:cReceiver(tChannelID(), -1, Pid) +
{ } +
 
+cMyReceiver::~cMyReceiver()
+{
+  cReceiver::Detach();
+  ...
+}
+
+ void cMyReceiver::Activate(bool On) { // start your own thread for processing the received data -- cgit v1.2.3