mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
d2f328f55b
commit
24770f8f62
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2008-06-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
||||||
|
|
|
@ -1496,6 +1496,9 @@ stop_cb (GtkButton * button, gpointer data)
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
|
||||||
|
g_list_free (seekable_elements);
|
||||||
|
seekable_elements = NULL;
|
||||||
|
|
||||||
pipeline = pipelines[pipeline_type].func (pipeline_spec);
|
pipeline = pipelines[pipeline_type].func (pipeline_spec);
|
||||||
g_assert (pipeline);
|
g_assert (pipeline);
|
||||||
gst_element_set_state (pipeline, GST_STATE_READY);
|
gst_element_set_state (pipeline, GST_STATE_READY);
|
||||||
|
|
Loading…
Reference in a new issue