projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
input-selector: Use segment-presence for running_time check
[platform/upstream/gstreamer.git]
/
plugins
/
elements
/
gstinputselector.c
diff --git
a/plugins/elements/gstinputselector.c
b/plugins/elements/gstinputselector.c
index
cd2922d
..
d1faeba
100644
(file)
--- a/
plugins/elements/gstinputselector.c
+++ b/
plugins/elements/gstinputselector.c
@@
-323,7
+323,7
@@
gst_selector_pad_get_running_time (GstSelectorPad * pad)
gint64 ret = 0;
GST_OBJECT_LOCK (pad);
- if (pad->
active
) {
+ if (pad->
segment.format == GST_FORMAT_TIME
) {
ret =
gst_segment_to_running_time (&pad->segment, pad->segment.format,
pad->segment.position);