mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
avoid segfault
This commit is contained in:
@@ -420,8 +420,10 @@ static int32_t PlaybackStop(Context_t *context)
|
|||||||
context->playback->SlowMotion = 0;
|
context->playback->SlowMotion = 0;
|
||||||
context->playback->Speed = 0;
|
context->playback->Speed = 0;
|
||||||
|
|
||||||
context->output->Command(context, OUTPUT_STOP, NULL);
|
if (context->output && context->output->Command)
|
||||||
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
context->output->Command(context, OUTPUT_STOP, NULL);
|
||||||
|
if (context->container && context->container->selectedContainer)
|
||||||
|
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user