mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
playsink: clear ts-offset pointer
We need to clear the pointer to our ts-offset element when we destroy the video chain elements to make sure nobody derefs it to invalid memory afterwards.
This commit is contained in:
parent
97e14fda28
commit
7379202cca
1 changed files with 1 additions and 0 deletions
|
@ -2174,6 +2174,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
||||||
}
|
}
|
||||||
add_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
|
add_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
|
||||||
activate_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
|
activate_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
|
||||||
|
playsink->videochain->ts_offset = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playsink->videodeinterlacechain) {
|
if (playsink->videodeinterlacechain) {
|
||||||
|
|
Loading…
Reference in a new issue