fix possible segfault

Origin commit data
------------------
Branch: master
Commit: eaca615348
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2018-07-28 (Sat, 28 Jul 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2018-07-28 14:24:12 +02:00
parent 921c5e248f
commit b8a5dc1414

View File

@@ -300,6 +300,7 @@ static int PlaybackPlay(Context_t *context)
context->playback->BackWard = 0;
context->playback->SlowMotion = 0;
context->playback->Speed = 0;
if (context->container && context->container->selectedContainer)
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
}
else
@@ -330,7 +331,7 @@ static int PlaybackPlay(Context_t *context)
playback_printf(10, "clearing isCreationPhase!\n");
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);
if (ret != 0)
{