From 392705a913ed602808704046b5434e623b89357d Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Mon, 17 Sep 2012 13:31:24 +0200 Subject: [PATCH] Do not set the pipeline to NULL on EOS, as parse_launch pipelines are not reusable. --- gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c index 70c1662ab4..573212c76f 100755 --- a/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c +++ b/gst-sdk/tutorials/android-tutorial-1/jni/tutorial-1.c @@ -144,7 +144,8 @@ static void error_cb (GstBus *bus, GstMessage *msg, CustomData *data) { static void eos_cb (GstBus *bus, GstMessage *msg, CustomData *data) { set_message (GST_MESSAGE_TYPE_NAME (msg), data); refresh_ui (data); - gst_element_set_state (data->pipeline, GST_STATE_NULL); + gst_element_set_state (data->pipeline, GST_STATE_PAUSED); + execute_seek (0, data); } static void state_changed_cb (GstBus *bus, GstMessage *msg, CustomData *data) {