[asterisk-commits] pcadach: trunk r43496 - /trunk/channels/h323/compat_h323.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 22 12:56:08 MST 2006


Author: pcadach
Date: Fri Sep 22 14:56:07 2006
New Revision: 43496

URL: http://svn.digium.com/view/asterisk?rev=43496&view=rev
Log:
Use own factory for our OpalMediaFormats too

Modified:
    trunk/channels/h323/compat_h323.h

Modified: trunk/channels/h323/compat_h323.h
URL: http://svn.digium.com/view/asterisk/trunk/channels/h323/compat_h323.h?rev=43496&r1=43495&r2=43496&view=diff
==============================================================================
--- trunk/channels/h323/compat_h323.h (original)
+++ trunk/channels/h323/compat_h323.h Fri Sep 22 14:56:07 2006
@@ -77,4 +77,18 @@
 #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 */



More information about the asterisk-commits mailing list