compile fixes for old dvb api (7020....)
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Feb 2007 20:01:06 +0000 (20:01 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Feb 2007 20:01:06 +0000 (20:01 +0000)
lib/base/object.h
lib/dvb/idvb.h

index ea08a771939fa2a8a7f931dca2846344d5504688..8cea2cd1ce4f29cc6dd19774be7a05a58010a030 100644 (file)
@@ -106,7 +106,7 @@ public:
                                if (!ref) \
                                        delete this; \
                        }
-       #elif defined(__ppc__)
+       #elif defined(__ppc__) || defined(__powerpc__)
                #define DECLARE_REF(x)                  \
                        private: oRefCount ref;         \
                        public: void AddRef();          \
index 36b2bea14520a1ddc4cbbb422bef0ad9ae73a3e9..a951fdc498e4dcaa25126107554c489df31d1b66 100644 (file)
@@ -621,6 +621,10 @@ public:
        virtual RESULT flush()=0;
 };
 
+#if HAVE_DVB_API_VERSION < 3 && !defined(VIDEO_EVENT_SIZE_CHANGED)
+#define VIDEO_EVENT_SIZE_CHANGED 1
+#endif
+
 class iTSMPEGDecoder: public iObject
 {
 public: