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)
|
void cPlayback::SuspendSubtitle(bool b)
|
||||||
{
|
{
|
||||||
if (b)
|
if (player && player->playback) {
|
||||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_LOCK, 0);
|
if (b)
|
||||||
else
|
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_LOCK, 0);
|
||||||
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_UNLOCK, 0);
|
else
|
||||||
|
player->playback->Command(player, PLAYBACK_FRAMEBUFFER_UNLOCK, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cPlayback::RequestAbort() {
|
void cPlayback::RequestAbort() {
|
||||||
|
Reference in New Issue
Block a user