mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user