Fix segfault with mpv plugin (thx to @lnj at vdr-portal.de)
This fix prevents a segfault when using the mpv plugin because there are no cutmarks.
This commit is contained in:
parent
894b5865cd
commit
50879fa931
|
@ -313,8 +313,9 @@ void cViewReplay::SetProgressbar(int current, int total) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void cViewReplay::SetMarks(const cMarks *marks, int current, int total) {
|
void cViewReplay::SetMarks(const cMarks *marks, int current, int total) {
|
||||||
if (veCutMarks)
|
if (!veCutMarks)
|
||||||
veCutMarks->Set(marks, current, total, timeShiftActive, timeShiftFramesTotal);
|
return;
|
||||||
|
veCutMarks->Set(marks, current, total, timeShiftActive, timeShiftFramesTotal);
|
||||||
Render((int)eVeDisplayReplay::cutmarks);
|
Render((int)eVeDisplayReplay::cutmarks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,8 @@ void cSDDisplayReplay::SetMode(bool Play, bool Forward, int Speed) {
|
||||||
void cSDDisplayReplay::SetProgress(int Current, int Total) {
|
void cSDDisplayReplay::SetProgress(int Current, int Total) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
view->SetProgressbar(Current, Total);
|
view->SetProgressbar(Current, Total);
|
||||||
view->SetMarks(marks, Current, Total);
|
if (marks)
|
||||||
|
view->SetMarks(marks, Current, Total);
|
||||||
view->SetTimeshiftTimes(Current, Total);
|
view->SetTimeshiftTimes(Current, Total);
|
||||||
view->SetEndTime(Current, Total);
|
view->SetEndTime(Current, Total);
|
||||||
view->DelayOnPause();
|
view->DelayOnPause();
|
||||||
|
|
Loading…
Reference in New Issue