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.h | |
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.h')
-rw-r--r-- | demux/demux.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/demux/demux.h b/demux/demux.h index ed013a043c..3674f7ea34 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -30,10 +30,6 @@ #include "packet.h" #include "stheader.h" -enum demux_ctrl { - DEMUXER_CTRL_SWITCHED_TRACKS = 1, -}; - #define MAX_SEEK_RANGES 10 struct demux_seek_range { @@ -107,7 +103,7 @@ typedef struct demuxer_desc { bool (*read_packet)(struct demuxer *demuxer, struct demux_packet **pkt); void (*close)(struct demuxer *demuxer); void (*seek)(struct demuxer *demuxer, double rel_seek_secs, int flags); - int (*control)(struct demuxer *demuxer, int cmd, void *arg); + void (*switched_tracks)(struct demuxer *demuxer); // See timeline.c void (*load_timeline)(struct timeline *tl); } demuxer_desc_t; |