diff options
author | wm4 <wm4@nowhere> | 2015-02-20 21:08:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-20 21:08:10 +0100 |
commit | 6c1355be967751b194504ed73b053846fbae5fa9 (patch) | |
tree | 078c7a52448a2e47fb32e8ed56e67ccf8805acec /demux/demux.h | |
parent | 44411674ebb764adeb806040d24700bc4cc493cc (diff) | |
download | mpv-6c1355be967751b194504ed73b053846fbae5fa9.tar.bz2 mpv-6c1355be967751b194504ed73b053846fbae5fa9.tar.xz |
demux: add free_demuxer_and_stream() function
Although their lifetimes are conceptually different, it happens often
that a demuxer is destroyed together with its stream.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index 1d0038a5b0..848c7701f0 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -242,6 +242,7 @@ typedef struct { } demux_program_t; void free_demuxer(struct demuxer *demuxer); +void free_demuxer_and_stream(struct demuxer *demuxer); int demux_add_packet(struct sh_stream *stream, demux_packet_t *dp); |