Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
Fixes #1 :-) FINALLY!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
michael cullen committed Sep 15, 2012
1 parent aa92704 commit 19f1f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace app_flvplayback {
Variant connections; //keeps track of connection data, such as time...
void client_close(uint32_t id); //does logging and other fun
bool ProcessInvokePublish(BaseRTMPProtocol *pFrom,Variant &request);
bool ProcessInvokeDeleteStream(BaseRTMPProtocol *pFrom,Variant &request);
bool ProcessInvokeFCUnpublish(BaseRTMPProtocol *pFrom,Variant &request);
bool ProcessInvokePlay(BaseRTMPProtocol *pFrom,Variant &request);
bool ProcessInvokeCloseStream(BaseRTMPProtocol *pFrom,Variant &request);
bool ProcessInvoke(BaseRTMPProtocol *pFrom, Variant &request);
Expand Down
10 changes: 5 additions & 5 deletions sources/applications/flvplayback/src/rtmpappprotocolhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ bool RTMPAppProtocolHandler::ProcessInvokeGeneric(BaseRTMPProtocol *pFrom,
} else if (functionName == "insertMetadata") {
return ProcessInsertMetadata(pFrom, request);
} else if (functionName == "FCUnpublish") {
return ProcessInvokeDeleteStream(pFrom,request); //seems the base class doesn't catch this one, so I'm catching it now.
return ProcessInvokeFCUnpublish(pFrom,request); //seems the base class doesn't catch this one, so I'm catching it now.
} else {
return BaseRTMPAppProtocolHandler::ProcessInvokeGeneric(pFrom, request);
}
}

bool RTMPAppProtocolHandler::ProcessInvokeDeleteStream(BaseRTMPProtocol *pFrom,Variant &request) {
string streamNameFull = M_INVOKE_PARAM(request, 1);
bool RTMPAppProtocolHandler::ProcessInvokeFCUnpublish(BaseRTMPProtocol *pFrom,Variant &request) {
string streamNameFull = M_INVOKE_PARAM(request, 1);
size_t len = streamNameFull.find('?');
string streamName;
if(len != string::npos)
Expand All @@ -128,8 +128,8 @@ bool RTMPAppProtocolHandler::ProcessInvokeDeleteStream(BaseRTMPProtocol *pFrom,V
}

}
INFO("Stream %s closed.",streamName.c_str());
return BaseRTMPAppProtocolHandler::ProcessInvokeDeleteStream(pFrom,request);
INFO("Stream %s unpublished.",streamName.c_str());
return true;
}

bool RTMPAppProtocolHandler::ProcessInvokePlay(BaseRTMPProtocol *pFrom,Variant &request) {
Expand Down

0 comments on commit 19f1f5d

Please sign in to comment.