From: Jaroslav Kysela Date: Thu, 5 Feb 2015 11:44:57 +0000 (+0100) Subject: timeshift: reader - fix the possible wrong ctrl variable usage X-Git-Tag: v4.1~376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31cd397f3c944351fb2cbaafc1511f047f6ade5b;p=thirdparty%2Ftvheadend.git timeshift: reader - fix the possible wrong ctrl variable usage --- diff --git a/src/timeshift/timeshift_reader.c b/src/timeshift/timeshift_reader.c index d83ec7fb6..cd46140cd 100644 --- a/src/timeshift/timeshift_reader.c +++ b/src/timeshift/timeshift_reader.c @@ -809,6 +809,7 @@ void *timeshift_reader ( void *p ) cur_speed = 100; ctrl = streaming_msg_create_code(SMT_SPEED, cur_speed); streaming_target_deliver2(ts->output, ctrl); + ctrl = NULL; /* Flush timeshift buffer to live */ if (_timeshift_flush_to_live(ts, &cur_file, &sm, &wait) == -1) @@ -837,8 +838,8 @@ void *timeshift_reader ( void *p ) pause_time = last_time; ctrl = streaming_msg_create_code(SMT_SPEED, cur_speed); streaming_target_deliver2(ts->output, ctrl); + ctrl = NULL; } - ctrl = NULL; /* Flush unwanted */ } else if (ts->ondemand && cur_file) {