mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
input-selector: Use segment-presence for running_time check
When determining whether the running_time of a pad can be calculated, check if the segment is in TIME format instead of using the 'active' field. Since the latter is set through *any* activity, it's not a reliable indicator of segment presence. https://bugzilla.gnome.org/show_bug.cgi?id=739620
This commit is contained in:
parent
0a3ded1932
commit
6f24f4917d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue