tools: gst-play: fix seeking issue
authorVineeth T M <vineeth.tm@samsung.com>
Fri, 19 Jun 2015 10:51:25 +0000 (19:51 +0900)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 19 Jun 2015 14:09:24 +0000 (10:09 -0400)
commiteec791a37fd9d58d3b6f283f7b606047b4a32dba
tree20e948c2d8f3100fd654786bb0d647db6118ce3d
parent757cd8ffce3c9f8e09f074c2cc5ee1368f7c3a42
tools: gst-play: fix seeking issue

For positive seeking segment.stop value will be -1,
when we change rate to -1, then the stop value will be udpated
with the current position. And then again if we change rate to 1,
the segment.stop value does not get updated and remains as position
where we last changed rate to -1. Hence playback stops at that point.
In case of positive rates, call gst_element_new_seek with correct values

https://bugzilla.gnome.org/show_bug.cgi?id=751213
tools/gst-play.c