demux: copy priv pointer too

Weird, but helps with the case a demuxer gets handed its own instance
from outside.
This commit is contained in:
wm4
2015-02-17 23:47:54 +01:00
parent edc0007e74
commit f9872ab26f

View File

@@ -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.