playsink: clear ts-offset pointer
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 23 Jun 2010 10:10:32 +0000 (12:10 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 23 Jun 2010 10:10:32 +0000 (12:10 +0200)
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.

gst/playback/gstplaysink.c

index ef11ec4ee71b8f4b908bb0a47224db22ed9a2d96..a8c9b3311d96f092fa02a0ffd7bd2058737d8baa 100644 (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) {