diff options
author | wm4 <wm4@nowhere> | 2018-09-07 23:10:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | 18180ae89b7d162e04d84d36fa04ac14a58db1f7 (patch) | |
tree | 83c1f9aa319d12a5f1b34f8322f08bbe7cd18d2d /demux/demux.c | |
parent | 5114c69c7f85e7cd38d6928e874c5b44c951be60 (diff) | |
download | mpv-18180ae89b7d162e04d84d36fa04ac14a58db1f7.tar.bz2 mpv-18180ae89b7d162e04d84d36fa04ac14a58db1f7.tar.xz |
demux: get rid of ->control callback
The only thing left is the notification for track switching. Just get
rid of that.
There's probably no real reason to get rid of control(), but why not. I
think I was actually trying to do some real work but fuck that.
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 4 |
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); } |