summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index cf94805384..cac4874e8b 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -1732,8 +1732,8 @@ static void execute_trackswitch(struct demux_internal *in)
pthread_mutex_unlock(&in->lock);
- if (in->d_thread->desc->control)
- in->d_thread->desc->control(in->d_thread, DEMUXER_CTRL_SWITCHED_TRACKS, 0);
+ if (in->d_thread->desc->switched_tracks)
+ in->d_thread->desc->switched_tracks(in->d_thread);
pthread_mutex_lock(&in->lock);
}