Commit 4804e73f authored by Jean Felder's avatar Jean Felder

player: Do not send the position with seek-finished signal

It's not necessary to send the position because it can be retrieved
from the get_position method.
parent b495763d
......@@ -515,7 +515,8 @@ class MediaPlayer2Service(Server):
MediaPlayer2Service.MEDIA_PLAYER2_PLAYER_IFACE, properties, [])
def _on_seek_finished(self, player, position_second):
def _on_seek_finished(self, player):
position_second = self.player.get_position()
self.Seeked(int(position_second * 1e6))
......@@ -543,7 +543,7 @@ class Player(GObject.GObject):
__gsignals__ = {
'playlist-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
'seek-finished': (GObject.SignalFlags.RUN_FIRST, None, (float,)),
'seek-finished': (GObject.SignalFlags.RUN_FIRST, None, ()),
'song-changed': (GObject.SignalFlags.RUN_FIRST, None, ()),
'song-validated': (GObject.SignalFlags.RUN_FIRST, None, (int, int)),
......@@ -878,7 +878,7 @@ class Player(GObject.GObject):
duration_second = self._gst_player.props.duration
if position_second <= duration_second:
self.emit('seek-finished', position_second)
def get_mpris_playlist(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment