summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-08-31 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-08-31 18:00:00 +0200
commite4b016980bb7c2f0bb369f64b2ac411500865b32 (patch)
tree082942243f4eb3fd14f4f271eb3a7cc637110aea /plugin.c
parentfc9c149eb96f7a949c2f183693e4df15abe8dc4b (diff)
downloadvdr-patch-lnbsharing-e4b016980bb7c2f0bb369f64b2ac411500865b32.tar.gz
vdr-patch-lnbsharing-e4b016980bb7c2f0bb369f64b2ac411500865b32.tar.bz2
Version 1.2.5pre1vdr-1.2.5pre1
- Now explicitly handling exit value 0 and 2 in 'runvdr'. - Added a missing 'w' to the allowed characters for Finnish and Swedish (thanks to Lauri Tischler and Ragnar Sundblad). - Added channels for DVB-T Hannover (Germany) to channels.cont.terr (thanks to Peter Waechtler). - Fixed a hangup in SVDRP when the client disappears without sending QUIT (thanks to Robert Bartl for reporting this one). The problem was introduced in version 1.2.2 through the fix for an occasional "Broken pipe" error in SVDRP connections. - Updated 'channels.conf.terr' for Berlin. - Fixed displaying still pictures, now using the driver's VIDEO_STILLPICTURE call directly (thanks to Oliver Endriss). This also improves navigating through DVD menus with the DVD plugin. If this causes problems with your particular system (maybe because you are using the 'analogtv' plugin) you can reactivate the previous behaviour by commenting out the line #define VIDEO_STILLPICTURE_WORKS_WITH_VDR_FRAMES in VDR/dvbdevice.c. Note that you need driver version 2003-08-23 or later for this to work! - Fixed handling extra blanks in plugin command lines. - Actually implemented the SVDRP command DELC. - Now clearing the player device if there are too many poll timeouts in 'Transfer Mode', which avoids buffer overflows and black screens in such cases.
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin.c b/plugin.c
index 7439534..a0d2701 100644
--- a/plugin.c
+++ b/plugin.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: plugin.c 1.9 2003/05/09 15:01:26 kls Exp $
+ * $Id: plugin.c 1.10 2003/08/30 14:52:58 kls Exp $
*/
#include "plugin.h"
@@ -170,7 +170,7 @@ bool cDll::Load(bool Log)
if (plugin && args) {
int argc = 0;
char *argv[MAXPLUGINARGS];
- char *p = args;
+ char *p = skipspace(stripspace(args));
char *q = NULL;
bool done = false;
while (!done) {
@@ -205,7 +205,7 @@ bool cDll::Load(bool Log)
}
}
if (!done)
- p++;
+ p = *p ? p + 1 : skipspace(p + 1);
}
}
argv[argc] = NULL;
@@ -278,7 +278,7 @@ void cPluginManager::AddPlugin(const char *Args)
}
return;
}
- char *s = strdup(Args);
+ char *s = strdup(skipspace(Args));
char *p = strchr(s, ' ');
if (p)
*p = 0;