mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added missing GetById() calls
This commit is contained in:
parent
7e6667f58f
commit
7170c20c7e
6
svdrp.c
6
svdrp.c
@ -10,7 +10,7 @@
|
|||||||
* and interact with the Video Disk Recorder - or write a full featured
|
* and interact with the Video Disk Recorder - or write a full featured
|
||||||
* graphical interface that sits on top of an SVDRP connection.
|
* graphical interface that sits on top of an SVDRP connection.
|
||||||
*
|
*
|
||||||
* $Id: svdrp.c 4.13 2017/04/03 14:31:13 kls Exp $
|
* $Id: svdrp.c 4.14 2017/04/04 09:39:36 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svdrp.h"
|
#include "svdrp.h"
|
||||||
@ -1336,7 +1336,7 @@ void cSVDRPServer::CmdEDIT(const char *Option)
|
|||||||
if (*Option) {
|
if (*Option) {
|
||||||
if (isnumber(Option)) {
|
if (isnumber(Option)) {
|
||||||
LOCK_RECORDINGS_READ;
|
LOCK_RECORDINGS_READ;
|
||||||
if (const cRecording *Recording = Recordings->Get(strtol(Option, NULL, 10) - 1)) {
|
if (const cRecording *Recording = Recordings->GetById(strtol(Option, NULL, 10))) {
|
||||||
cMarks Marks;
|
cMarks Marks;
|
||||||
if (Marks.Load(Recording->FileName(), Recording->FramesPerSecond(), Recording->IsPesRecording()) && Marks.Count()) {
|
if (Marks.Load(Recording->FileName(), Recording->FramesPerSecond(), Recording->IsPesRecording()) && Marks.Count()) {
|
||||||
if (RecordingsHandler.Add(ruCut, Recording->FileName()))
|
if (RecordingsHandler.Add(ruCut, Recording->FileName()))
|
||||||
@ -2058,7 +2058,7 @@ void cSVDRPServer::CmdPLAY(const char *Option)
|
|||||||
*option = 0;
|
*option = 0;
|
||||||
if (isnumber(num)) {
|
if (isnumber(num)) {
|
||||||
LOCK_RECORDINGS_READ;
|
LOCK_RECORDINGS_READ;
|
||||||
if (const cRecording *Recording = Recordings->Get(strtol(num, NULL, 10) - 1)) {
|
if (const cRecording *Recording = Recordings->GetById(strtol(num, NULL, 10))) {
|
||||||
if (c)
|
if (c)
|
||||||
option = skipspace(++option);
|
option = skipspace(++option);
|
||||||
cReplayControl::SetRecording(NULL);
|
cReplayControl::SetRecording(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user