mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-29 00:11:16 +02:00
fix possible segfault
This commit is contained in:
@@ -300,6 +300,7 @@ static int PlaybackPlay(Context_t *context)
|
|||||||
context->playback->BackWard = 0;
|
context->playback->BackWard = 0;
|
||||||
context->playback->SlowMotion = 0;
|
context->playback->SlowMotion = 0;
|
||||||
context->playback->Speed = 0;
|
context->playback->Speed = 0;
|
||||||
|
if (context->container && context->container->selectedContainer)
|
||||||
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -330,7 +331,7 @@ static int PlaybackPlay(Context_t *context)
|
|||||||
playback_printf(10, "clearing isCreationPhase!\n");
|
playback_printf(10, "clearing isCreationPhase!\n");
|
||||||
|
|
||||||
context->playback->isCreationPhase = 0; // allow thread to go into next state
|
context->playback->isCreationPhase = 0; // allow thread to go into next state
|
||||||
|
if (context->container && context->container->selectedContainer)
|
||||||
ret = context->container->selectedContainer->Command(context, CONTAINER_PLAY, NULL);
|
ret = context->container->selectedContainer->Command(context, CONTAINER_PLAY, NULL);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user