Instead of waiting for fixed time, wait for the state change to complete and then seek. Files Changed:GstreamerPlayContext.h
This commit is contained in:
parent
e1a2db28e8
commit
2ed80ef62f
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue