10 #ifndef _MprDecodeSelectCodecsMsg_h_ 11 #define _MprDecodeSelectCodecsMsg_h_ 52 for (
int i=0; i<numCodecs; i++)
54 if (codecs[i] != NULL)
153 mpCodecs =
new SdpCodec*[numCodecs];
156 for (
int i=0; i<numCodecs; i++) {
157 if (pCodecs[i] != NULL)
159 mpCodecs[
mNumCodecs] =
new SdpCodec(*pCodecs[i]);
172 #endif // _MprDecodeSelectCodecsMsg_h_ MpResourceMsg & operator=(const MpResourceMsg &rhs)
Assignment operator.
Definition: MpResourceMsg.cpp:60
Message object used to communicate with the media processing task.
Definition: MprDecodeSelectCodecsMsg.h:29
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
void clearCodecs()
Definition: MprDecodeSelectCodecsMsg.h:140
MprDecode/MprEncode: Select codecs.
Definition: MpResourceMsg.h:48
int mNumCodecs
Definition: MprDecodeSelectCodecsMsg.h:138
SdpCodec ** mpCodecs
Definition: MprDecodeSelectCodecsMsg.h:137
MprDecodeSelectCodecsMsg & operator=(const MprDecodeSelectCodecsMsg &rhs)
Assignment operator.
Definition: MprDecodeSelectCodecsMsg.h:95
~MprDecodeSelectCodecsMsg()
Destructor.
Definition: MprDecodeSelectCodecsMsg.h:68
SdpCodec ** getCodecs() const
Definition: MprDecodeSelectCodecsMsg.h:119
int getNumCodecs() const
Definition: MprDecodeSelectCodecsMsg.h:114
OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition: MprDecodeSelectCodecsMsg.h:83
MprDecodeSelectCodecsMsg(const UtlString &targetResourceName, SdpCodec *codecs[], int numCodecs)
Constructor.
Definition: MprDecodeSelectCodecsMsg.h:39
MprDecodeSelectCodecsMsg(const MprDecodeSelectCodecsMsg &resourceMsg)
Copy constructor.
Definition: MprDecodeSelectCodecsMsg.h:74
void copyCodecs(SdpCodec *pCodecs[], int numCodecs)
Definition: MprDecodeSelectCodecsMsg.h:149