From 2ed80ef62f956654cfa9ba971f78f5fde90c31ad Mon Sep 17 00:00:00 2001 From: kapil Date: Fri, 2 Oct 2009 08:06:00 +0000 Subject: [PATCH] Instead of waiting for fixed time, wait for the state change to complete and then seek. Files Changed:GstreamerPlayContext.h --- .../src/modules/playlistExecutor/src/GstreamerPlayContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayContext.h b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayContext.h index e60931449..43df1b844 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayContext.h +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayContext.h @@ -241,7 +241,7 @@ public: GstState state; GstState pending; gst_element_set_state (m_pipeline, GST_STATE_PAUSED); - gst_element_get_state (m_pipeline, &state, &pending, 50000000); + gst_element_get_state (m_pipeline, &state, &pending, GST_CLOCK_TIME_NONE); if (!gst_element_seek (m_pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, start_time*GST_SECOND, GST_SEEK_TYPE_END, 0)) { g_print ("\nstart_time seek failed\n");