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.
This commit is contained in:
Wim Taymans 2008-06-20 09:14:26 +00:00
parent d2f328f55b
commit 24770f8f62
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-06-20 Wim Taymans <wim.taymans@collabora.co.uk>
* 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 <wim.taymans@collabora.co.uk>
* gst-libs/gst/audio/gstbaseaudiosink.c:

View file

@ -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);