From fcbb1fa5f1c83658cd5664ea90d213cd91b4159c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 May 2024 14:12:25 +0300 Subject: [PATCH] avmux: Reset input context to NULL after closing in the muxer Part-of: --- subprojects/gst-libav/ext/libav/gstavmux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-libav/ext/libav/gstavmux.c b/subprojects/gst-libav/ext/libav/gstavmux.c index 60da7f0c29..389a873cf7 100644 --- a/subprojects/gst-libav/ext/libav/gstavmux.c +++ b/subprojects/gst-libav/ext/libav/gstavmux.c @@ -796,6 +796,7 @@ gst_ffmpegmux_change_state (GstElement * element, GstStateChange transition) if (ffmpegmux->opened) { ffmpegmux->opened = FALSE; gst_ffmpegdata_close (ffmpegmux->context->pb); + ffmpegmux->context->pb = NULL; } break; case GST_STATE_CHANGE_READY_TO_NULL: