aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323
diff options
context:
space:
mode:
authorpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 19:56:07 +0000
committerpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 19:56:07 +0000
commit63b5a6dc81885f73a73500252aea6913cc44bf49 (patch)
tree327368cd778a4cb9d731ec1cd84a4b7013bbe319 /channels/h323
parent28f1e5198dcffea3d80fd0f2255694c9b3c96f3e (diff)
Use own factory for our OpalMediaFormats too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43496 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323')
-rw-r--r--channels/h323/compat_h323.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/channels/h323/compat_h323.h b/channels/h323/compat_h323.h
index 63da8ac8c..5437898f4 100644
--- a/channels/h323/compat_h323.h
+++ b/channels/h323/compat_h323.h
@@ -77,4 +77,18 @@ public:
#endif
#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 */