]> git.tdb.fi Git - xinema.git/blobdiff - source/client.cpp
Also send the current position when a client connects
[xinema.git] / 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());