winlin

use stream time for live duration. change to 0.9.64

@@ -486,7 +486,6 @@ int SrsRtmpConn::playing(SrsSource* source) @@ -486,7 +486,6 @@ int SrsRtmpConn::playing(SrsSource* source)
486 486
487 // if duration specified, and exceed it, stop play live. 487 // if duration specified, and exceed it, stop play live.
488 // @see: https://github.com/winlinvip/simple-rtmp-server/issues/45 488 // @see: https://github.com/winlinvip/simple-rtmp-server/issues/45
489 - // TODO: maybe the duration should use the stream duration.  
490 if (req->duration > 0 && duration >= (int64_t)req->duration) { 489 if (req->duration > 0 && duration >= (int64_t)req->duration) {
491 ret = ERROR_RTMP_DURATION_EXCEED; 490 ret = ERROR_RTMP_DURATION_EXCEED;
492 srs_trace("stop live for duration exceed. ret=%d", ret); 491 srs_trace("stop live for duration exceed. ret=%d", ret);