mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
Reset duration after changing the URI
This commit is contained in:
parent
87daf274ca
commit
f3a259d959
1 changed files with 1 additions and 0 deletions
|
@ -354,6 +354,7 @@ void gst_native_set_uri (JNIEnv* env, jobject thiz, jstring uri) {
|
|||
gst_element_set_state (data->pipeline, GST_STATE_READY);
|
||||
g_object_set(data->pipeline, "uri", char_uri, NULL);
|
||||
(*env)->ReleaseStringUTFChars (env, uri, char_uri);
|
||||
data->duration = GST_CLOCK_TIME_NONE;
|
||||
data->is_live = (gst_element_set_state (data->pipeline, data->target_state) == GST_STATE_CHANGE_NO_PREROLL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue