Index: module-dvbapi.c
===================================================================
--- module-dvbapi.c (revision 11201)
+++ module-dvbapi.c (working copy)
@@ -288,7 +288,7 @@
static int32_t selected_api = -1;
static int32_t maxfilter = MAX_FILTER;
static int32_t dir_fd = -1;
-static uint16_t last_client_proto_version = 0;
+static uint16_t last_client_proto_version = 2;
static char* last_client_name = NULL;
static int32_t ca_fd[MAX_DEMUX]; // holds fd handle of each ca device 0 = not in use
@@ -4934,8 +4934,8 @@
cs_log("Client connected: '%s' (protocol version = %" PRIu16 ")", last_client_name, client_proto);
}
- (*client_proto_version) = client_proto; //setting the global var according to the client
- last_client_proto_version = client_proto;
+ (*client_proto_version) = 2; //setting the global var according to the client
+ last_client_proto_version = 2;
// as a response we are sending our info to the client:
dvbapi_net_send(DVBAPI_SERVER_INFO, connfd, -1, -1, NULL, NULL, NULL, client_proto);
@@ -5075,7 +5075,7 @@
unhandled_buf_len[i] = 0;
unhandled_buf_used[i] = 0;
- client_proto_version[i] = 0;
+ client_proto_version[i] = 2;
}
for(account = cfg.account; account != NULL; account = account->next)