summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xine_input_vdr.c17
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);