mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
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:
@@ -313,8 +313,9 @@ void cViewReplay::SetProgressbar(int current, int total) {
|
||||
}
|
||||
|
||||
void cViewReplay::SetMarks(const cMarks *marks, int current, int total) {
|
||||
if (veCutMarks)
|
||||
veCutMarks->Set(marks, current, total, timeShiftActive, timeShiftFramesTotal);
|
||||
if (!veCutMarks)
|
||||
return;
|
||||
veCutMarks->Set(marks, current, total, timeShiftActive, timeShiftFramesTotal);
|
||||
Render((int)eVeDisplayReplay::cutmarks);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user