--- a/mmserv/tms/tmsimpl/src/tmsstreambodyimpl.cpp Fri May 14 18:19:45 2010 -0500
+++ b/mmserv/tms/tmsimpl/src/tmsstreambodyimpl.cpp Fri May 28 19:26:28 2010 -0500
@@ -334,7 +334,7 @@
return iContext.StreamId;
}
-gint TMSStreamBodyImpl::Init()
+gint TMSStreamBodyImpl::Init(gint retrytime)
{
gint ret(TMS_RESULT_SUCCESS);
@@ -355,7 +355,8 @@
if (iContext.CallProxy)
{
ret = (iContext.CallProxy)->InitStream(iContext.CallType,
- iContext.StreamType, iContext.StreamId, fmttype, &iMsgQueue);
+ iContext.StreamType, iContext.StreamId, fmttype, &iMsgQueue,
+ retrytime);
}
else
{
@@ -490,13 +491,13 @@
return ret;
}
-gint TMSStreamBodyImpl::Start()
+gint TMSStreamBodyImpl::Start(gint retrytime)
{
gint ret(TMS_RESULT_SUCCESS);
if (iContext.CallProxy)
{
ret = (iContext.CallProxy)->StartStream(iContext.CallType,
- iContext.StreamType, iContext.StreamId);
+ iContext.StreamType, iContext.StreamId, retrytime);
}
else
{
@@ -734,7 +735,15 @@
event.prev_state = iPrevState;
if (iObserver)
{
- event.type = TMS_EVENT_STREAM_STATE_CHANGED;
+ if (aError != TMS_RESULT_SUCCESS)
+ {
+ //event.type = TMS_EVENT_STREAM_STATE_CHANGE_ERROR;
+ event.type = TMS_EVENT_STREAM_STATE_CHANGED;
+ }
+ else
+ {
+ event.type = TMS_EVENT_STREAM_STATE_CHANGED;
+ }
iObserver->TMSStreamEvent(*iParent, event);
}
break;