libeplayer3-arm: fix playback (thx DboxOldie)

Origin commit data
------------------
Branch: master
Commit: e101b5e253
Author: max_10 <max_10@gmx.de>
Date: 2017-12-20 (Wed, 20 Dec 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2017-12-20 19:32:22 +01:00
parent 1b0345e4d6
commit 1d29ef97b0

View File

@@ -75,10 +75,14 @@ static int32_t PlaybackTerminate(Context_t *context);
int8_t PlaybackDieNow(int8_t val)
{
static int8_t dieNow = 0;
if (val)
if (val == 1)
{
dieNow = 1;
}
else if (val == 2)
{
dieNow = 0;
}
return dieNow;
}
@@ -194,6 +198,7 @@ static int PlaybackClose(Context_t *context)
free(context->playback->uri);
context->playback->uri = NULL;
}
PlaybackDieNow(2);
playback_printf(10, "exiting with value %d\n", ret);
return ret;
}