avmux: Reset input context to NULL after closing in the muxer

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6505>
This commit is contained in:
Sebastian Dröge 2024-05-01 14:12:25 +03:00 committed by GStreamer Marge Bot
parent 2a3f791c90
commit 03465d0904

View file

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