avoid segfault

This commit is contained in:
Jacek Jendrzej
2019-07-14 19:05:11 +02:00
parent d975c90d34
commit a22d54a164

View File

@@ -420,7 +420,9 @@ static int32_t PlaybackStop(Context_t *context)
context->playback->SlowMotion = 0; context->playback->SlowMotion = 0;
context->playback->Speed = 0; context->playback->Speed = 0;
if (context->output && context->output->Command)
context->output->Command(context, OUTPUT_STOP, NULL); context->output->Command(context, OUTPUT_STOP, NULL);
if (context->container && context->container->selectedContainer)
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL); context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
} }
else else