summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-08-26 10:12:09 +0200
committerJohns <johns98@gmx.net>2013-08-26 10:12:09 +0200
commit08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a (patch)
treeba0ac0c40b5861c1c1237addfa0c4cc4a307da65
parent26b62816a9d7a3a8db15fe47795c4d9cfdeb4db2 (diff)
downloadvdr-plugin-play-08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a.tar.gz
vdr-plugin-play-08c0fd54259ad9fa6fe320ff5fa0fd8ca4fb553a.tar.bz2
Allow filenames starting with '-'.
-rw-r--r--ChangeLog1
-rw-r--r--player.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 610fb34..877c65f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/player.c b/player.c
index 7df9724..c74841e 100644
--- a/player.c
+++ b/player.c
@@ -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");
}
/**