mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 07:50:58 +02:00
fix possible segfault (thx satbaby)
Origin commit data
------------------
Branch: master
Commit: c66ec401c2
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2018-08-09 (Thu, 09 Aug 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -300,7 +300,8 @@ static int PlaybackPlay(Context_t *context)
|
||||
context->playback->BackWard = 0;
|
||||
context->playback->SlowMotion = 0;
|
||||
context->playback->Speed = 0;
|
||||
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
||||
if (context->container && context->container->selectedContainer);
|
||||
context->container->selectedContainer->Command(context, CONTAINER_STOP, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -331,7 +332,8 @@ static int PlaybackPlay(Context_t *context)
|
||||
|
||||
context->playback->isCreationPhase = 0; // allow thread to go into next state
|
||||
|
||||
ret = context->container->selectedContainer->Command(context, CONTAINER_PLAY, NULL);
|
||||
if (context->container && context->container->selectedContainer);
|
||||
context->container->selectedContainer->Command(context, CONTAINER_PLAY, NULL);
|
||||
if (ret != 0)
|
||||
{
|
||||
playback_err("CONTAINER_PLAY failed!\n");
|
||||
|
Reference in New Issue
Block a user