[vlc-commits] [Git][videolan/vlc][master] demux-run: don't use the stream as the parent of local es_out
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Apr 3 11:01:12 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
35e4f6f0 by Steve Lhomme at 2026-04-03T10:46:58+00:00
demux-run: don't use the stream as the parent of local es_out
When demux_Delete() is called, it may call demux_DestroyDemux() which also destroys the stream.
Then the es_out_Delete() call may use the parent (for example with var_Inherit when the decoder is drained), but the (stream) parent is gone.
Ref. #29637
Co-authored-by: Alexandre Janniaux <ajanni at videolabs.io>
- - - - -
1 changed file:
- test/src/input/demux-run.c
Changes:
=====================================
test/src/input/demux-run.c
=====================================
@@ -293,7 +293,7 @@ static int demux_process_stream(const struct vlc_run_args *args, stream_t *s)
if (s == NULL)
return -1;
- es_out_t *out = test_es_out_create(VLC_OBJECT(s));
+ es_out_t *out = test_es_out_create(vlc_object_parent(s));
if (out == NULL)
return -1;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/35e4f6f0bb58009ad5410a977acd7e7fe8e5409c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/35e4f6f0bb58009ad5410a977acd7e7fe8e5409c
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list