audiomixer: Remove weird and wrong segment handling
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Feb 2015 15:02:54 +0000 (16:02 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Feb 2015 15:02:54 +0000 (16:02 +0100)
commitce7444411e89de27e3be8a084ef71c56bf4e28fa
tree2f10d693cd695238d1db41b67e45d343f6ffeda2
parent83e5fe2f70e593457d44a3b3a9effbf772b8025b
audiomixer: Remove weird and wrong segment handling

There's no reason why audiomixer should override the segment
base of upstream with whatever value it got from a SEEK event,
or even worse... with 0 if there was no SEEK event yet. This
broke synchronization if upstream provided a segment base other
than 0, e.g. when using pad offsets.
Also that this code did things conditional on the element's state
should've been a big warning already that something is just wrong.
If this breaks anything else now, let's fix it properly :)

Also don't do fancy segment position trickery when receiving a
segment event. It's just not correct.
gst/audiomixer/gstaudiomixer.c