basesink: improve last_stop calculation
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 14 Dec 2010 18:00:14 +0000 (19:00 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 14 Dec 2010 18:00:14 +0000 (19:00 +0100)
commit6da39bf50881004a5b5add11ba4f8296ebf8cd1d
treea408bcea505a6e3c36a5afac677877f7e69635aa
parent4fd63f0ce24f6550ad94e44760d46cbcf708dc93
basesink: improve last_stop calculation

Only update the last_stop value when we had a valid stop position for the
clipping or else the clipping code assumes the stop position extends to the end
of the segment, which makes the position reporting return weird values.
libs/gst/base/gstbasesink.c