]> git.tdb.fi Git - xinema.git/commitdiff
Also send the current position when a client connects
authorMikko Rasa <tdb@tdb.fi>
Sat, 17 Oct 2015 11:20:28 +0000 (14:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 17 Oct 2015 11:20:28 +0000 (14:20 +0300)
In case the stream happens to be paused at the moment.

source/client.cpp

index 9bce9c7fd720c3aea0361d208ec16b69583c3ddd..0130846f92c888a6838756a499f33df4357425d8 100644 (file)
@@ -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());