socket->signal_end_of_file.connect(sigc::mem_fun(this, &Client::end_of_stream));
xinema.signal_stream_created.connect(sigc::mem_fun(this, &Client::stream_created));
+ XineStream *stream = xinema.get_stream();
+ if(stream)
+ stream_created(*stream);
}
void Client::data_available()
string title = stream.get_title();
if(!title.empty())
send_reply("title "+title);
+ if(const Time::TimeDelta &dur = stream.get_duration())
+ stream_duration_changed(dur);
}
void Client::stream_title_changed(const string &title)