0
@@ -613,16 +613,16 @@ QTSS_Error ProcessRTPData(QTSS_IncomingData_Params* inParams)
0
if (!sBroadcastPushEnabled)
0
-
qtss_printf("QTSSReflectorModule:ProcessRTPData inRTSPSession=%lu inClientSession=%lu\n",inParams->inRTSPSession, inParams->inClientSession);
0
+
//qtss_printf("QTSSReflectorModule:ProcessRTPData inRTSPSession=%lu inClientSession=%lu\n",inParams->inRTSPSession, inParams->inClientSession);
0
ReflectorSession* theSession = NULL;
0
UInt32 theLen = sizeof(theSession);
0
QTSS_Error theErr = QTSS_GetValue(inParams->inRTSPSession, sRTSPBroadcastSessionAttr, 0, &theSession, &theLen);
0
-
qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",sClientBroadcastSessionAttr, theSession,theErr);
0
+
//qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",sClientBroadcastSessionAttr, theSession,theErr);
0
if (theSession == NULL || theErr != QTSS_NoErr)
0
// it is a broadcaster session
0
-
qtss_printf("QTSSReflectorModule.cpp:is broadcaster session\n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:is broadcaster session\n");
0
SourceInfo* theSoureInfo = theSession->GetSourceInfo();
0
Assert(theSoureInfo != NULL);
0
@@ -631,7 +631,7 @@ QTSS_Error ProcessRTPData(QTSS_IncomingData_Params* inParams)
0
UInt32 numStreams = theSession->GetNumStreams();
0
-
qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData numStreams=%lu\n",numStreams);
0
+
//qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData numStreams=%lu\n",numStreams);
0
@@ -655,7 +655,7 @@ QTSS_Error ProcessRTPData(QTSS_IncomingData_Params* inParams)
0
char* rtpPacket = &packetData[4];
0
//UInt32 packetLen = inParams->inPacketLen;
0
-
qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData channel=%u theSoureInfo=%lu packetLen=%lu packetDatalen=%u\n",(UInt16) packetChannel,theSoureInfo,inParams->inPacketLen,packetDataLen);
0
+
//qtss_printf("QTSSReflectorModule.cpp:ProcessRTPData channel=%u theSoureInfo=%lu packetLen=%lu packetDatalen=%u\n",(UInt16) packetChannel,theSoureInfo,inParams->inPacketLen,packetDataLen);
0
@@ -686,7 +686,7 @@ QTSS_Error ProcessRTPData(QTSS_IncomingData_Params* inParams)
0
QTSS_Error ProcessRTSPRequest(QTSS_StandardRTSP_Params* inParams)
0
QTSS_RTSPMethod* theMethod = NULL;
0
-
qtss_printf("QTSSReflectorModule:ProcessRTSPRequest inClientSession=%lu\n", (UInt32) inParams->inClientSession);
0
+
//qtss_printf("QTSSReflectorModule:ProcessRTSPRequest inClientSession=%lu\n", (UInt32) inParams->inClientSession);
0
if ((QTSS_GetValuePtr(inParams->inRTSPRequest, qtssRTSPReqMethod, 0,
0
(void**)&theMethod, &theLen) != QTSS_NoErr) || (theLen != sizeof(QTSS_RTSPMethod)))
0
@@ -894,7 +894,7 @@ QTSS_Error DoAnnounce(QTSS_StandardRTSP_Params* inParams)
0
// Eventually, we should really require access control before we do this.
0
-
qtss_printf("QTSSReflectorModule:DoAnnounce\n");
0
+
//qtss_printf("QTSSReflectorModule:DoAnnounce\n");
0
// Get the full path to this file
0
char* theFullPathStr = NULL;
0
@@ -961,7 +961,7 @@ QTSS_Error DoAnnounce(QTSS_StandardRTSP_Params* inParams)
0
theLen = sizeof(theRequestBody);
0
theErr = QTSS_GetValue(inParams->inRTSPRequest, sRequestBodyAttr, 0, &theRequestBody, &theLen);
0
-
qtss_printf("QTSSReflectorModule:DoAnnounce theRequestBody =%s\n",theRequestBody);
0
+
//qtss_printf("QTSSReflectorModule:DoAnnounce theRequestBody =%s\n",theRequestBody);
0
if (theErr != QTSS_NoErr)
0
@@ -1002,7 +1002,7 @@ QTSS_Error DoAnnounce(QTSS_StandardRTSP_Params* inParams)
0
// Update our offset in the buffer
0
theBufferOffset += theLen;
0
(void)QTSS_SetValue(inParams->inRTSPRequest, sBufferOffsetAttr, 0, &theBufferOffset, sizeof(theBufferOffset));
0
-
qtss_printf("QTSSReflectorModule:DoAnnounce Request some more data \n");
0
+
//qtss_printf("QTSSReflectorModule:DoAnnounce Request some more data \n");
0
// The entire content body hasn't arrived yet. Request a read event and wait for it.
0
// Our DoAnnounce function will get called again when there is more data.
0
@@ -1078,7 +1078,7 @@ QTSS_Error DoAnnounce(QTSS_StandardRTSP_Params* inParams)
0
-
qtss_printf("QTSSReflectorModule:DoAnnounce SendResponse OK=200\n");
0
+
//qtss_printf("QTSSReflectorModule:DoAnnounce SendResponse OK=200\n");
0
return QTSS_SendStandardRTSPResponse(inParams->inRTSPRequest, inParams->inClientSession, 0);
0
@@ -1355,7 +1355,7 @@ ReflectorSession* FindOrCreateSession(StrPtrLen* inPath, QTSS_StandardRTSP_Param
0
-
qtss_printf("Created reflector session = %lu theInfo=%lu \n", (UInt32) theSession,(UInt32)theInfo);
0
+
//qtss_printf("Created reflector session = %lu theInfo=%lu \n", (UInt32) theSession,(UInt32)theInfo);
0
//put the session's ID into the session map.
0
theErr = sSessionMap->Register(theSession->GetRef());
0
Assert(theErr == QTSS_NoErr);
0
@@ -1588,7 +1588,7 @@ QTSS_Error AddRTPStream(ReflectorSession* theSession,QTSS_StandardRTSP_Params* i
0
QTSS_Error DoSetup(QTSS_StandardRTSP_Params* inParams)
0
ReflectorSession* theSession = NULL;
0
-
qtss_printf("QTSSReflectorModule.cpp:DoSetup \n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:DoSetup \n");
0
// See if this is a push from a Broadcaster
0
@@ -1630,7 +1630,7 @@ QTSS_Error DoSetup(QTSS_StandardRTSP_Params* inParams)
0
// This is an incoming data session. Set the Reflector Session in the ClientSession
0
theErr = QTSS_SetValue(inParams->inClientSession, sClientBroadcastSessionAttr, 0, &theSession, sizeof(theSession));
0
Assert(theErr == QTSS_NoErr);
0
-
qtss_printf("QTSSReflectorModule.cpp:SETsession sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",(UInt32)sClientBroadcastSessionAttr, (UInt32) theSession,theErr);
0
+
//qtss_printf("QTSSReflectorModule.cpp:SETsession sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",(UInt32)sClientBroadcastSessionAttr, (UInt32) theSession,theErr);
0
(void) QTSS_SetValue(inParams->inClientSession, qtssCliSesTimeoutMsec, 0, &sBroadcasterSessionTimeoutMilliSecs, sizeof(sBroadcasterSessionTimeoutMilliSecs));
0
@@ -1659,7 +1659,7 @@ QTSS_Error DoSetup(QTSS_StandardRTSP_Params* inParams)
0
-
qtss_printf("QTSSReflectorModule.cpp:DoSetup is push setup\n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:DoSetup is push setup\n");
0
// Get info about this trackID
0
SourceInfo::StreamInfo* theStreamInfo = theSession->GetSourceInfo()->GetStreamInfoByTrackID(theTrackID);
0
@@ -1880,7 +1880,7 @@ QTSS_Error DoPlay(QTSS_StandardRTSP_Params* inParams, ReflectorSession* inSessio
0
-
qtss_printf("QTSSReflectorModule:SET for att err=%ld id=%ld\n",theErr,inParams->inRTSPSession);
0
+
//qtss_printf("QTSSReflectorModule:SET for att err=%ld id=%ld\n",theErr,inParams->inRTSPSession);
0
// this code needs to be cleaned up
0
// Check and see if the full path to this file matches an existing ReflectorSession
0
@@ -1923,7 +1923,7 @@ QTSS_Error DoPlay(QTSS_StandardRTSP_Params* inParams, ReflectorSession* inSessio
0
KeepSession(inParams->inRTSPRequest,true);
0
-
qtss_printf("QTSSReflectorModule.cpp:DoPlay (PUSH) inRTSPSession=%lu inClientSession=%lu\n",(UInt32)inParams->inRTSPSession,(UInt32)inParams->inClientSession);
0
+
//qtss_printf("QTSSReflectorModule.cpp:DoPlay (PUSH) inRTSPSession=%lu inClientSession=%lu\n",(UInt32)inParams->inRTSPSession,(UInt32)inParams->inClientSession);
0
else// it is NOT a broadcaster session
0
@@ -2058,7 +2058,7 @@ QTSS_Error DestroySession(QTSS_ClientSessionClosing_Params* inParams)
0
UInt32 theLen = sizeof(theSession);
0
QTSS_Error theErr = QTSS_GetValue(inParams->inClientSession, sClientBroadcastSessionAttr, 0, &theSession, &theLen);
0
-
qtss_printf("QTSSReflectorModule.cpp:DestroySession sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",(UInt32)sClientBroadcastSessionAttr, (UInt32)theSession,theErr);
0
+
//qtss_printf("QTSSReflectorModule.cpp:DestroySession sClientBroadcastSessionAttr=%lu theSession=%lu err=%ld \n",(UInt32)sClientBroadcastSessionAttr, (UInt32)theSession,theErr);
0
if (theSession != NULL) // it is a broadcaster session
0
ReflectorSession* deletedSession = NULL;
0
@@ -2082,7 +2082,7 @@ QTSS_Error DestroySession(QTSS_ClientSessionClosing_Params* inParams)
0
(void) QTSS_GetValue(inParams->inClientSession, sKillClientsEnabledAttr, 0, &killClients, &theLen);
0
-
qtss_printf("QTSSReflectorModule.cpp:DestroySession broadcaster theSession=%lu\n", (UInt32) theSession);
0
+
//qtss_printf("QTSSReflectorModule.cpp:DestroySession broadcaster theSession=%lu\n", (UInt32) theSession);
0
theSession->RemoveSessionFromOutput(inParams->inClientSession);
0
RemoveOutput(NULL, theSession, killClients);
0
@@ -2107,18 +2107,18 @@ QTSS_Error DestroySession(QTSS_ClientSessionClosing_Params* inParams)
0
void RemoveOutput(ReflectorOutput* inOutput, ReflectorSession* inSession, Bool16 killClients)
0
-
qtss_printf("QTSSReflectorModule.cpp:RemoveOutput\n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:RemoveOutput\n");
0
// This function removes the output from the ReflectorSession, then
0
{ inSession->RemoveOutput(inOutput,true);
0
-
qtss_printf("QTSSReflectorModule.cpp:RemoveOutput it is a client session\n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:RemoveOutput it is a client session\n");
0
{ // it is a Broadcaster session
0
-
qtss_printf("QTSSReflectorModule.cpp:RemoveOutput it is a broadcaster session\n");
0
+
//qtss_printf("QTSSReflectorModule.cpp:RemoveOutput it is a broadcaster session\n");
0
SourceInfo* theInfo = inSession->GetSourceInfo();
0
@@ -2133,7 +2133,7 @@ void RemoveOutput(ReflectorOutput* inOutput, ReflectorSession* inSession, Bool16
0
-
qtss_printf("QTSSReflectorModule.cpp:RemoveOutput refcount =%lu\n", inSession->GetRef()->GetRefCount() );
0
+
//qtss_printf("QTSSReflectorModule.cpp:RemoveOutput refcount =%lu\n", inSession->GetRef()->GetRefCount() );
0
//check if the ReflectorSession should be deleted
0
//(it should if its ref count has dropped to 0)
0
@@ -2149,14 +2149,14 @@ void RemoveOutput(ReflectorOutput* inOutput, ReflectorSession* inSession, Bool16
0
else if (theSessionRef->GetRefCount() == 1)
0
-
qtss_printf("QTSSReflector.cpp:RemoveOutput Delete SESSION=%lu\n",(UInt32)inSession);
0
+
//qtss_printf("QTSSReflector.cpp:RemoveOutput Delete SESSION=%lu\n",(UInt32)inSession);
0
sSessionMap->Release(theSessionRef);
0
sSessionMap->UnRegister(theSessionRef); // the last session so get rid of the ref
0
-
qtss_printf("QTSSReflector.cpp:RemoveOutput Release SESSION=%lu\n",(UInt32)inSession);
0
+
//qtss_printf("QTSSReflector.cpp:RemoveOutput Release SESSION=%lu\n",(UInt32)inSession);
0
sSessionMap->Release(theSessionRef); // one of the sessions on the ref is ending just decrement the count
Comments
No one has commented yet.