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

refine code for consumer to refer the rtmp connection.

This commit is contained in:
winlin 2015-12-26 12:13:17 +08:00
parent d3139c52cc
commit eca46c03d2
5 changed files with 14 additions and 10 deletions

View file

@ -598,7 +598,7 @@ int SrsRtmpConn::playing(SrsSource* source)
// create consumer of souce.
SrsConsumer* consumer = NULL;
if ((ret = source->create_consumer(consumer)) != ERROR_SUCCESS) {
if ((ret = source->create_consumer(this, consumer)) != ERROR_SUCCESS) {
srs_error("create consumer failed. ret=%d", ret);
return ret;
}