aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index ea7d3723b..1685837fa 100644
--- a/src/player.c
+++ b/src/player.c
@@ -172,9 +172,10 @@ int playerGetDecodeType(char * utf8file) {
int playerPlay(FILE * fp, char * utf8file) {
PlayerControl * pc = &(getPlayerData()->playerControl);
- if(fp==NULL) fp = stderr;
int decodeType;
+ if(fp==NULL) fp = stderr;
+
if(playerStop(fp)<0) return -1;
{