mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
appsrc: handle duration query only if the property was set
https://bugzilla.gnome.org/show_bug.cgi?id=786200
This commit is contained in:
parent
ce65017d03
commit
d375a28a37
1 changed files with 6 additions and 2 deletions
|
@ -938,8 +938,12 @@ gst_app_src_query (GstBaseSrc * src, GstQuery * query)
|
|||
gst_query_set_duration (query, format, priv->size);
|
||||
res = TRUE;
|
||||
} else if (format == GST_FORMAT_TIME) {
|
||||
gst_query_set_duration (query, format, priv->duration);
|
||||
res = TRUE;
|
||||
if (priv->duration != GST_CLOCK_TIME_NONE) {
|
||||
gst_query_set_duration (query, format, priv->duration);
|
||||
res = TRUE;
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue