Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: send status before each packet in keyframe_mode
- this makes rewind and fast-forward updates in kodi more interactive
  • Loading branch information
perexg committed Jan 4, 2016
1 parent 6fafa3b commit bd69326
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/timeshift/timeshift_reader.c
Expand Up @@ -829,15 +829,19 @@ void *timeshift_reader ( void *p )
tvhlog(LOG_DEBUG, "timeshift", "ts %d skip failed (%d)", ts->id, sm ? sm->sm_type : -1);
}
streaming_target_deliver2(ts->output, ctrl);
ctrl = NULL;
} else {
streaming_msg_free(ctrl);
}
ctrl = NULL;

/* Deliver */
if (sm && (skip ||
(((cur_speed < 0) && (sm->sm_time >= deliver)) ||
((cur_speed > 0) && (sm->sm_time <= deliver))))) {

last_time = sm->sm_time;
if (!skip && keyframe_mode) /* always send status on keyframe mode */
timeshift_status(ts, last_time);
timeshift_packet_log("out", ts, sm);
streaming_target_deliver2(ts->output, sm);
sm = NULL;
Expand Down

0 comments on commit bd69326

Please sign in to comment.