mmserv/tms/tmsimpl/src/tmsformatimpl.cpp
changeset 14 80975da52420
parent 12 5a06f39ad45b
child 16 43d09473c595
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
    76     TMSFormatType fmttype;
    76     TMSFormatType fmttype;
    77     ret = tmsfmt->GetType(fmttype);
    77     ret = tmsfmt->GetType(fmttype);
    78     switch (fmttype)
    78     switch (fmttype)
    79         {
    79         {
    80         case TMS_FORMAT_PCM:
    80         case TMS_FORMAT_PCM:
    81             delete (TMSPCMFormatImpl*) (tmsfmt);
    81             delete (static_cast<TMSPCMFormatImpl*>(tmsfmt));
    82             tmsfmt = NULL;
    82             tmsfmt = NULL;
    83             break;
    83             break;
    84         case TMS_FORMAT_AMR:
    84         case TMS_FORMAT_AMR:
    85             delete (TMSAMRFormatImpl*) (tmsfmt);
    85             delete (static_cast<TMSAMRFormatImpl*>(tmsfmt));
    86             tmsfmt = NULL;
    86             tmsfmt = NULL;
    87             break;
    87             break;
    88         case TMS_FORMAT_G711:
    88         case TMS_FORMAT_G711:
    89             delete (TMSG711FormatImpl*) (tmsfmt);
    89             delete (static_cast<TMSG711FormatImpl*>(tmsfmt));
    90             tmsfmt = NULL;
    90             tmsfmt = NULL;
    91             break;
    91             break;
    92         case TMS_FORMAT_G729:
    92         case TMS_FORMAT_G729:
    93             delete (TMSG729FormatImpl*) (tmsfmt);
    93             delete (static_cast<TMSG729FormatImpl*>(tmsfmt));
    94             tmsfmt = NULL;
    94             tmsfmt = NULL;
    95             break;
    95             break;
    96         case TMS_FORMAT_ILBC:
    96         case TMS_FORMAT_ILBC:
    97             delete (TMSILBCFormatImpl*) (tmsfmt);
    97             delete (static_cast<TMSILBCFormatImpl*>(tmsfmt));
    98             tmsfmt = NULL;
    98             tmsfmt = NULL;
    99             break;
    99             break;
   100         default:
   100         default:
   101             break;
   101             break;
   102         }
   102         }