Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ....
  2. gulong m_clientConnectedConfigureId = g_signal_connect(m_server, "client-connected", (GCallback)ClientConnected, this);
  3. ....
  4.  
  5. static void ClientConnected(GstRTSPServer *gstrtspserver, GstRTSPClient *arg1, gpointer user_data)
  6. {
  7. GstRTSPConnection *connection = gst_rtsp_client_get_connection(arg1);
  8.  
  9. if(!connection)
  10. {
  11. return;
  12. }
  13.  
  14. GstRTSPUrl *uri = gst_rtsp_connection_get_url(connection);
  15.  
  16. if(!uri)
  17. {
  18. return;
  19. }
  20.  
  21. gchar *urlString = gst_rtsp_url_get_request_uri (uri);
  22.  
  23. std::stringstream ssTemp;
  24. ssTemp << "ClientConnected - urlString = " << urlString;
  25. InternalLog::Debug(ssTemp.str());
  26.  
  27. g_free(urlString);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement