libeplayer3-arm: fix playback (thx DboxOldie)

Origin commit data
------------------
Branch: master
Commit: 3ca9c451a4
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
committed by Thilo Graf
parent d3054afe7c
commit 59148b22e5

View File

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