projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce65017
)
appsrc: handle duration query only if the property was set
author
Philippe Normand
<philn@igalia.com>
Sat, 12 Aug 2017 14:46:28 +0000
(15:46 +0100)
committer
Philippe Normand
<philn@igalia.com>
Sat, 12 Aug 2017 15:23:27 +0000
(16:23 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=786200
gst-libs/gst/app/gstappsrc.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/app/gstappsrc.c
b/gst-libs/gst/app/gstappsrc.c
index 2fde8a28f4ec490ae93365cb3da862fee21ee431..1d5379778ce718fcf11d575ea84652a7e13889de 100644
(file)
--- a/
gst-libs/gst/app/gstappsrc.c
+++ b/
gst-libs/gst/app/gstappsrc.c
@@
-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;
}