summaryrefslogtreecommitdiff
path: root/xine_input_vdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r--xine_input_vdr.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c
index e1c56650..7586c4b3 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.296 2010-02-14 12:53:06 phintuka Exp $
+ * $Id: xine_input_vdr.c,v 1.297 2010-02-19 14:10:55 phintuka Exp $
*
*/
@@ -134,7 +134,7 @@ typedef struct {
# include <linux/unistd.h> /* syscall(__NR_gettid) */
#endif
-static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.296 2010-02-14 12:53:06 phintuka Exp $";
+static const char module_revision[] = "$Id: xine_input_vdr.c,v 1.297 2010-02-19 14:10:55 phintuka Exp $";
static const char log_module_input_vdr[] = "[input_vdr] ";
#define LOG_MODULENAME log_module_input_vdr
#define SysLogLevel iSysLogLevel
@@ -2887,6 +2887,7 @@ static int vdr_plugin_parse_control(vdr_input_plugin_if_t *this_if, const char *
} else if(!strncasecmp(cmd, "NOVIDEO ", 8)) {
if(1 == sscanf(cmd+8, "%d", &tmp32)) {
pthread_mutex_lock(&this->lock);
+
this->no_video = tmp32;
if(this->no_video) {
this->max_buffers = RADIO_MAX_BUFFERS;
@@ -2896,7 +2897,14 @@ static int vdr_plugin_parse_control(vdr_input_plugin_if_t *this_if, const char *
this->max_buffers >>= 1;
this->max_buffers -= 10;
}
+
+ if (tmp32)
+ this->metronom->unwire(this->metronom);
+ else
+ this->metronom->wire(this->metronom);
+
pthread_mutex_unlock(&this->lock);
+
} else
err = CONTROL_PARAM_ERROR;