diff options
author | wm4 <wm4@nowhere> | 2015-02-17 23:47:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-17 23:47:54 +0100 |
commit | f9872ab26fad62766f62be112436482ef3e7e07b (patch) | |
tree | ab28c57b7e264f90187606d2b1e3bfd85cdcb200 /demux/demux.c | |
parent | edc0007e74ab4ad043f35eed8cdebd9ed73c8062 (diff) | |
download | mpv-f9872ab26fad62766f62be112436482ef3e7e07b.tar.bz2 mpv-f9872ab26fad62766f62be112436482ef3e7e07b.tar.xz |
demux: copy priv pointer too
Weird, but helps with the case a demuxer gets handed its own instance
from outside.
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index 842daeef76..4039617be9 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -822,6 +822,7 @@ static void demux_copy(struct demuxer *dst, struct demuxer *src) dst->rel_seeks = src->rel_seeks; dst->allow_refresh_seeks = src->allow_refresh_seeks; dst->start_time = src->start_time; + dst->priv = src->priv; } if (src->events & DEMUX_EVENT_STREAMS) { // The stream structs themselves are immutable. |