gst-player: fix bug with changing playback direction
authorAskar Safin <safinaskar@mail.ru>
Wed, 4 Sep 2019 09:54:17 +0000 (12:54 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 6 Sep 2019 00:05:14 +0000 (01:05 +0100)
commit21ad51f48c651350b543d74e6373773bad54fd93
treed4f93214dd8c3c1ccdcc39c2ede7eaa4205cfde0
parentdf1140c3de904174d60cac10be856fa654014f53
gst-player: fix bug with changing playback direction

Fix gst_event_new_seek call in gst-libs/gst/player/gstplayer.c

If rate >= 0.0, then previous code doesn't set end of segment. So, the end of segment
will be in place where previous seek put it. This is not neccesary end of media file
(in case of reverse playback). So if we play video backward for some time and then
switched to forward playing, we will get EOS somewhere in the middle of media file.
This commit always sets end of segment, thus fixing this bug
gst-libs/gst/player/gstplayer.c