diff options
author | Johns <johns98@gmx.net> | 2013-08-26 10:12:09 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-08-26 10:12:09 +0200 |
commit | 08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a (patch) | |
tree | ba0ac0c40b5861c1c1237addfa0c4cc4a307da65 | |
parent | 26b62816a9d7a3a8db15fe47795c4d9cfdeb4db2 (diff) | |
download | vdr-plugin-play-08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a.tar.gz vdr-plugin-play-08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a.tar.bz2 |
Allow filenames starting with '-'.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | player.c | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,7 @@ User johns Date: + Allow filenames starting with '-'. Add dia show image/picture viewer. Add player thread for events and pipe output. Support DVDNAV buttons. @@ -378,13 +378,14 @@ static void PlayerExec(const char *filename) while ((sval = strsep(&s, " \t"))) { args[argn++] = sval; - if (argn == MPLAYER_MAX_ARGS - 2) { // argument overflow + if (argn == MPLAYER_MAX_ARGS - 3) { // argument overflow Error(_("play: too many arguments for mplayer\n")); // argn = 1; break; } } } + args[argn++] = "--"; args[argn++] = filename; args[argn] = NULL; #ifdef DEBUG @@ -495,7 +496,7 @@ static void *PlayerHandlerThread(void *dummy) static void PlayerThreadInit(void) { pthread_create(&PlayerThread, NULL, PlayerHandlerThread, NULL); - pthread_setname_np(PlayerThread, "play player"); + //pthread_setname_np(PlayerThread, "play player"); } /** |