1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #133, create rtsp framework.

This commit is contained in:
winlin 2015-02-16 14:05:01 +08:00
parent e81e090239
commit c0e50265bd
11 changed files with 348 additions and 26 deletions

View file

@ -240,7 +240,7 @@ SrsRtspListener::SrsRtspListener(SrsServer* server, SrsListenerType type, SrsCon
// we just assert here for unknown stream caster.
srs_assert(_type == SrsListenerRtsp);
if (_type == SrsListenerRtsp) {
caster = new SrsRtspConn(c);
caster = new SrsRtspCaster(c);
}
}
@ -262,7 +262,7 @@ int SrsRtspListener::cycle()
}
srs_verbose("get a client. fd=%d", st_netfd_fileno(client_stfd));
if ((ret = _server->accept_client(_type, client_stfd)) != ERROR_SUCCESS) {
if ((ret = caster->serve_client(client_stfd)) != ERROR_SUCCESS) {
srs_warn("accept client error. ret=%d", ret);
return ret;
}