summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-17 23:47:54 +0100
committerwm4 <wm4@nowhere>2015-02-17 23:47:54 +0100
commitf9872ab26fad62766f62be112436482ef3e7e07b (patch)
treeab28c57b7e264f90187606d2b1e3bfd85cdcb200
parentedc0007e74ab4ad043f35eed8cdebd9ed73c8062 (diff)
downloadmpv-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.
-rw-r--r--demux/demux.c1
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.