From: Mikko Rasa Date: Sat, 17 Oct 2015 11:20:28 +0000 (+0300) Subject: Also send the current position when a client connects X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a5fc8a4255dabc9d5d514e597a7b19ffd5baf793;p=xinema.git Also send the current position when a client connects In case the stream happens to be paused at the moment. --- 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());