diff options
| author | phintuka <phintuka> | 2011-06-19 07:51:17 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2011-06-19 07:51:17 +0000 |
| commit | 6807c5a2e660ff2de2c7bd3b8da57c2c13474a9d (patch) | |
| tree | 35ae781de5f6dcd71cbaa1fdf07b7ab410486c63 | |
| parent | e7ec6f0d47e5617d36a535139cbd16489522217e (diff) | |
| download | xineliboutput-6807c5a2e660ff2de2c7bd3b8da57c2c13474a9d.tar.gz xineliboutput-6807c5a2e660ff2de2c7bd3b8da57c2c13474a9d.tar.bz2 | |
Removed copying string to redundant buffer.
Changed background image detection to use "image:" instead of "image".
| -rw-r--r-- | xine_input_vdr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index c1626fec..6c98f614 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.340 2011-06-17 14:26:17 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.341 2011-06-19 07:51:17 phintuka Exp $ * */ @@ -136,7 +136,7 @@ typedef struct { # include <linux/unistd.h> /* syscall(__NR_gettid) */ #endif -static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.340 2011-06-17 14:26:17 phintuka Exp $"; +static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.341 2011-06-19 07:51:17 phintuka Exp $"; static const char log_module_input_vdr[] = "[input_vdr] "; #define LOG_MODULENAME log_module_input_vdr #define SysLogLevel iSysLogLevel @@ -2502,10 +2502,9 @@ static int handle_control_playfile(vdr_input_plugin_t *this, const char *cmd) has_video = _x_stream_info_get(this->slave.stream, XINE_STREAM_INFO_HAS_VIDEO); /* Play background image */ - if(!has_video && !mix_streams && *av && !strncmp(av, "image", 5)) { + if(!has_video && !mix_streams && *av && !strncmp(av, "image:", 6)) { - char bgimage[4096]; - sprintf(bgimage,"%s",av+6); + const char *bgimage = av + 6; /* background image stream init */ if (!this->bg_stream.stream) { |
