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:
Wim Taymans 2010-06-23 12:10:32 +02:00
parent 97e14fda28
commit 7379202cca

View file

@ -2174,6 +2174,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
}
add_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
activate_chain (GST_PLAY_CHAIN (playsink->videochain), FALSE);
playsink->videochain->ts_offset = NULL;
}
if (playsink->videodeinterlacechain) {