From 24770f8f62d24bec4a1e65a97f145abfa0943936 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Jun 2008 09:14:26 +0000 Subject: [PATCH] tests/examples/seek/seek.c: Free and clear the seek element list so that we don't use invalid references when seeking... Original commit message from CVS: * tests/examples/seek/seek.c: (stop_cb): Free and clear the seek element list so that we don't use invalid references when seeking after recreating a gst-launch line. --- ChangeLog | 6 ++++++ tests/examples/seek/seek.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 43b7b6eae2..9d4a8e7216 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-20 Wim Taymans + + * tests/examples/seek/seek.c: (stop_cb): + Free and clear the seek element list so that we don't use invalid + references when seeking after recreating a gst-launch line. + 2008-06-20 Wim Taymans * gst-libs/gst/audio/gstbaseaudiosink.c: diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 61825825c0..8addde2e30 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -1496,6 +1496,9 @@ stop_cb (GtkButton * button, gpointer data) gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (pipeline); + g_list_free (seekable_elements); + seekable_elements = NULL; + pipeline = pipelines[pipeline_type].func (pipeline_spec); g_assert (pipeline); gst_element_set_state (pipeline, GST_STATE_READY);