Skip to content

Commit

Permalink
fix #1, replace bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Mar 3, 2016
1 parent e3dc709 commit ee23450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/htl_main_rtmp_publish.cpp
Expand Up @@ -157,7 +157,7 @@ int main(int argc, char** argv){
std::string rtmp_url = url;
size_t pos = std::string::npos;
if ((pos = rtmp_url.find("{i}")) != std::string::npos) {
rtmp_url = rtmp_url.replace(pos, pos + 3, _index);
rtmp_url = rtmp_url.replace(pos, 3, _index);
}

if((ret = task->Initialize(input, rtmp_url, start, delay, error, count)) != ERROR_SUCCESS){
Expand Down

0 comments on commit ee23450

Please sign in to comment.