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)
commit6d6c6932547460abf9f8c40351b2551abc4071b9
treea7027387ca1321874791c9ae7b898dfb19f00016
parentb1eef4f4362ec8f125948a1760a496c089e1f488
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