diff options
author | phintuka <phintuka> | 2006-09-17 02:02:42 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-09-17 02:02:42 +0000 |
commit | 6b5593819c8094cd84423c08428e4b78c190537a (patch) | |
tree | d5136653ee7afb64c7ba0c96e028470b83b6f01b | |
parent | de95f551305b810203353023c3f3f93bbffccb95 (diff) | |
download | xineliboutput-6b5593819c8094cd84423c08428e4b78c190537a.tar.gz xineliboutput-6b5593819c8094cd84423c08428e4b78c190537a.tar.bz2 |
HD mode buffer command fix
Version check for local mode
-rw-r--r-- | xine_input_vdr.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 630c6812..eb3570d0 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.48 2006-09-14 19:59:05 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.49 2006-09-17 02:02:42 phintuka Exp $ * */ @@ -2941,8 +2941,21 @@ static int vdr_plugin_parse_control(input_plugin_t *this_gen, const char *cmd) i++; } + } else if(!strncasecmp(cmd, "VERSION ", 7)) { + if(!strncmp(XINELIBOUTPUT_VERSION " ", cmd+8, + strlen(XINELIBOUTPUT_VERSION)+1)) { + if(this->fd_control < 0) { + /* Check should use protocol version. + * In remote mode check is done in connect */ + LOGMSG("WARNING! xineplug_inp_xvdr.so and libvdr-xineliboutput.so " + "are from different version"); + LOGMSG("Re-install plugin !"); + /*abort();*/ + } + } + } else if(!strncasecmp(cmd, "HDMODE ", 7)) { - if(1 == sscanf(cmd, "NOVIDEO %d", &tmp32)) { + if(1 == sscanf(cmd, "HDMODE %d", &tmp32)) { pthread_mutex_lock(&this->lock); this->hd_stream = tmp32 ? 1 : 0; pthread_mutex_unlock(&this->lock); |