mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Changed the symantics of the Name parameter in cStatus::Recording() and cStatus::Replaying()
This commit is contained in:
parent
5b040b1d92
commit
8be5a7b7b2
5
HISTORY
5
HISTORY
@ -1369,3 +1369,8 @@ Video Disk Recorder Revision History
|
|||||||
cPlayer and cControl have been given the functions GetIndex() and GetReplayMode() to
|
cPlayer and cControl have been given the functions GetIndex() and GetReplayMode() to
|
||||||
allow access to the player's status.
|
allow access to the player's status.
|
||||||
- Added cOsd::OpenRaw() to create a raw OSD (needed for displaying SPUs).
|
- Added cOsd::OpenRaw() to create a raw OSD (needed for displaying SPUs).
|
||||||
|
- Changed the symantics of the Name parameter in cStatus::Recording() and
|
||||||
|
cStatus::Replaying(). It is no longer the full directory name of the recording,
|
||||||
|
but rather just the basic name. This has been changed to allow players that can't
|
||||||
|
provide a name to simply use a string that describes the player type (like, e.g.,
|
||||||
|
"DVD").
|
||||||
|
7
menu.c
7
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 1.201 2002/06/23 11:07:19 kls Exp $
|
* $Id: menu.c 1.202 2002/07/14 10:55:37 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2442,7 +2442,7 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer)
|
|||||||
recorder = new cRecorder(fileName, ch->ca, timer->priority, ch->vpid, ch->apid1, ch->apid2, ch->dpid1, ch->dpid2);
|
recorder = new cRecorder(fileName, ch->ca, timer->priority, ch->vpid, ch->apid1, ch->apid2, ch->dpid1, ch->dpid2);
|
||||||
if (device->AttachReceiver(recorder)) {
|
if (device->AttachReceiver(recorder)) {
|
||||||
Recording.WriteSummary();
|
Recording.WriteSummary();
|
||||||
cStatus::MsgRecording(device, fileName);
|
cStatus::MsgRecording(device, Recording.Name());
|
||||||
Interface->DisplayRecording(device->CardIndex(), true);
|
Interface->DisplayRecording(device->CardIndex(), true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2688,7 +2688,8 @@ cReplayControl::cReplayControl(void)
|
|||||||
timeoutShow = 0;
|
timeoutShow = 0;
|
||||||
timeSearchActive = false;
|
timeSearchActive = false;
|
||||||
marks.Load(fileName);
|
marks.Load(fileName);
|
||||||
cStatus::MsgReplaying(this, fileName);
|
cRecording Recording(fileName);
|
||||||
|
cStatus::MsgReplaying(this, Recording.Name());
|
||||||
}
|
}
|
||||||
|
|
||||||
cReplayControl::~cReplayControl()
|
cReplayControl::~cReplayControl()
|
||||||
|
13
status.h
13
status.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: status.h 1.4 2002/07/13 10:48:50 kls Exp $
|
* $Id: status.h 1.5 2002/07/14 10:54:39 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __STATUS_H
|
#ifndef __STATUS_H
|
||||||
@ -25,11 +25,14 @@ protected:
|
|||||||
// If ChannelNumber is 0, this is before the channel is being switched,
|
// If ChannelNumber is 0, this is before the channel is being switched,
|
||||||
// otherwise ChannelNumber is the number of the channel that has been switched to.
|
// otherwise ChannelNumber is the number of the channel that has been switched to.
|
||||||
virtual void Recording(const cDevice *Device, const char *Name) {}
|
virtual void Recording(const cDevice *Device, const char *Name) {}
|
||||||
// The given DVB device has started recording Name. Name is the full directory
|
// The given DVB device has started recording Name. Name is the name of the
|
||||||
// name of the recording. If Name is NULL, the recording has ended.
|
// recording, without any directory path.
|
||||||
|
// If Name is NULL, the recording has ended.
|
||||||
virtual void Replaying(const cControl *Control, const char *Name) {}
|
virtual void Replaying(const cControl *Control, const char *Name) {}
|
||||||
// The given player control has started replaying Name. Name is the full directory
|
// The given player control has started replaying Name. Name is the name of the
|
||||||
// name of the recording. If Name is NULL, the replay has ended.
|
// recording, without any directory path. In case of a player that can't provide
|
||||||
|
// a name, Name can be a string that identifies the player type (like, e.g., "DVD").
|
||||||
|
// If Name is NULL, the replay has ended.
|
||||||
virtual void SetVolume(int Volume, bool Absolute) {}
|
virtual void SetVolume(int Volume, bool Absolute) {}
|
||||||
// The volume has been set to the given value, either
|
// The volume has been set to the given value, either
|
||||||
// absolutely or relative to the current volume.
|
// absolutely or relative to the current volume.
|
||||||
|
Loading…
Reference in New Issue
Block a user