Skip to content
Snippets Groups Projects
Commit 747f091a authored by Paul Cadach's avatar Paul Cadach
Browse files

Use own factory for our OpalMediaFormats too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 50ed891d
No related branches found
No related tags found
No related merge requests found
...@@ -77,4 +77,18 @@ public: ...@@ -77,4 +77,18 @@ public:
#endif #endif
#define H323_REGISTER_CAPABILITY(cls, capName) static MyPFactory<H323Capability>::Worker<cls> cls##Factory(capName, true) #define H323_REGISTER_CAPABILITY(cls, capName) static MyPFactory<H323Capability>::Worker<cls> cls##Factory(capName, true)
#ifdef OPAL_MEDIA_FORMAT_DECLARE
#undef OPAL_MEDIA_FORMAT_DECLARE
#endif
#define OPAL_MEDIA_FORMAT_DECLARE(classname, _fullName, _defaultSessionID, _rtpPayloadType, _needsJitter,_bandwidth, _frameSize, _frameTime, _timeUnits, _timeStamp) \
class classname : public OpalMediaFormat \
{ \
public: \
classname() \
: OpalMediaFormat(_fullName, _defaultSessionID, _rtpPayloadType, _needsJitter, _bandwidth, \
_frameSize, _frameTime, _timeUnits, _timeStamp){} \
}; \
static MyPFactory<OpalMediaFormat>::Worker<classname> classname##Factory(_fullName, true)
#endif /* !defined AST_H323_H */ #endif /* !defined AST_H323_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment