audioaggregator: improve readability in offset calculation
authorStefan Sauer <ensonic@users.sf.net>
Sun, 15 Oct 2017 08:29:20 +0000 (10:29 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Sun, 15 Oct 2017 08:29:20 +0000 (10:29 +0200)
commit7e4efce31089bab337f86b14747aa0303d450c83
tree6aea0ba770db50a867e3c7317347b858d83c72d4
parent17dfaf83dc6f99466b064fa141acce2df81a2221
audioaggregator: improve readability in offset calculation

Don't reuse the offset variables will contain a sample offset for an
intermediate time value. Instead add a segment_pos variable of type
GstClockTime for this. Use The clock-time macros to check if we got
a valid time.
gst-libs/gst/audio/gstaudioaggregator.c