mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark/playback: SuspendSubtitle: check for player being valid
This commit is contained in:
@@ -703,10 +703,12 @@ cPlayback::~cPlayback()
|
||||
|
||||
void cPlayback::SuspendSubtitle(bool b)
|
||||
{
|
||||
if (b)
|
||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_LOCK, 0);
|
||||
else
|
||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_UNLOCK, 0);
|
||||
if (player && player->playback) {
|
||||
if (b)
|
||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_LOCK, 0);
|
||||
else
|
||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_UNLOCK, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void cPlayback::RequestAbort() {
|
||||
|
Reference in New Issue
Block a user