demux: remove a minor difference between threaded/unthreaded modes

This difference was unnecessary.
This commit is contained in:
wm4 2016-01-19 14:21:02 +01:00
parent ae4b0f3f7c
commit 6fafdd5142
1 changed files with 2 additions and 2 deletions

View File

@ -1300,9 +1300,9 @@ void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream,
stream->ds->active = false;
ds_flush(stream->ds);
in->tracks_switched = true;
if (selected && in->refresh_seeks_enabled)
in->start_refresh_seek = true;
if (in->threading) {
if (selected && in->refresh_seeks_enabled)
in->start_refresh_seek = true;
pthread_cond_signal(&in->wakeup);
} else {
execute_trackswitch(in);