From a5fc8a4255dabc9d5d514e597a7b19ffd5baf793 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 17 Oct 2015 14:20:28 +0300 Subject: [PATCH] Also send the current position when a client connects In case the stream happens to be paused at the moment. --- source/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/client.cpp b/source/client.cpp index 9bce9c7..0130846 100644 --- a/source/client.cpp +++ b/source/client.cpp @@ -158,7 +158,10 @@ void Client::stream_created(XineStream &stream) send_reply("title "+title); if(const Time::TimeDelta &dur = stream.get_duration()) + { stream_duration_changed(dur); + stream_position_changed(stream.get_position()); + } stream_channels_changed(); stream_audio_channel_changed(stream.get_current_audio_channel()); -- 2.43.0