Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: reader - fix the possible wrong ctrl variable usage
  • Loading branch information
perexg committed Feb 5, 2015
1 parent 7ab46e3 commit 31cd397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timeshift/timeshift_reader.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 31cd397

Please sign in to comment.