Skip to content

Commit

Permalink
remove the extension of stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
duiniuluantanqin committed Oct 30, 2024
1 parent 101382a commit d098efa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_http_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ srs_error_t SrsLiveStream::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage
// Correct the app and stream by path, which is created from template.
// @remark Be careful that the stream has extension now, might cause identify fail.
req->stream = srs_path_basename(r->path());
// remove the extension of stream if have. for instance, test.flv -> test
req->stream = srs_path_filename(req->stream);

// update client ip
req->ip = hc->remote_ip();
Expand Down

0 comments on commit d098efa

Please sign in to comment.