@@ -175,7 +175,7 @@ void eStreamClient::notifier(int what)
175175 pos = serviceref.find (' ?' );
176176 if (pos == std::string::npos)
177177 {
178- parent->startStream (serviceref);
178+ parent->startStream (serviceref, m_remotehost );
179179
180180 eDebug (" [eDVBServiceStream] stream ref: %s" , serviceref.c_str ());
181181 if (eDVBServiceStream::start (serviceref.c_str (), streamFd) >= 0 )
@@ -200,7 +200,7 @@ void eStreamClient::notifier(int what)
200200 if (posdur != std::string::npos)
201201 {
202202
203- parent->startStream (serviceref);
203+ parent->startStream (serviceref, m_remotehost );
204204
205205 if (eDVBServiceStream::start (serviceref.c_str (), streamFd) >= 0 )
206206 {
@@ -360,15 +360,16 @@ void eStreamServer::connectionLost(eStreamClient *client)
360360 if (it != clients.end ())
361361 {
362362 std::string serviceref = it->getServiceref ();
363+ std::string client = it->getRemoteHost ();
363364 clients.erase (it);
364- streamStatusChanged (2 ,serviceref.c_str ());
365+ streamStatusChanged (2 ,serviceref.c_str (), client. c_str () );
365366 eNavigation::getInstance ()->removeStreamService (serviceref);
366367 }
367368}
368369
369- void eStreamServer::startStream (const std::string serviceref)
370+ void eStreamServer::startStream (const std::string serviceref, const std::string remotehost )
370371{
371- streamStatusChanged (0 ,serviceref.c_str ());
372+ streamStatusChanged (0 ,serviceref.c_str (), remotehost. c_str () );
372373 eNavigation::getInstance ()->addStreamService (serviceref);
373374}
374375
@@ -377,7 +378,7 @@ void eStreamServer::stopStream()
377378 eSmartPtrList<eStreamClient>::iterator it = clients.begin ();
378379 if (it != clients.end ())
379380 {
380- streamStatusChanged (1 ,it->getServiceref ().c_str ());
381+ streamStatusChanged (1 ,it->getServiceref ().c_str (), it-> getRemoteHost (). c_str () );
381382 eNavigation::getInstance ()->removeStreamService (it->getServiceref ());
382383 it->stopStream ();
383384 }
0 commit comments