Hello community,

here is the log from the commit of package vdr-plugin-xineliboutput for 
openSUSE:Factory checked in at 2015-03-11 09:56:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vdr-plugin-xineliboutput (Old)
 and      /work/SRC/openSUSE:Factory/.vdr-plugin-xineliboutput.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vdr-plugin-xineliboutput"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/vdr-plugin-xineliboutput/vdr-plugin-xineliboutput.changes
        2014-04-22 11:55:59.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.vdr-plugin-xineliboutput.new/vdr-plugin-xineliboutput.changes
   2015-03-11 09:56:58.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Mar  4 16:26:04 UTC 2015 - [email protected]
+
+- add xineliboutput-1.1.0-vdr-2.2.patch to fix compile with VDR 2.2
+
+-------------------------------------------------------------------

New:
----
  xineliboutput-1.1.0-vdr-2.2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vdr-plugin-xineliboutput.spec ++++++
--- /var/tmp/diff_new_pack.7eZx20/_old  2015-03-11 09:56:59.000000000 +0100
+++ /var/tmp/diff_new_pack.7eZx20/_new  2015-03-11 09:56:59.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package vdr-plugin-xineliboutput
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,7 @@
 Source:         vdr-%{pluginname}-%{version}.tgz
 Source1:        remote.conf
 Source2:        xineliboutput_allowed_hosts.conf
+Patch0:         xineliboutput-1.1.0-vdr-2.2.patch
 %if 0%{?suse_version} < 1200
 BuildRequires:  Mesa-devel
 %else
@@ -67,6 +68,7 @@
 
 %prep
 %setup -q -n %{pluginname}-%{version}
+%patch0 -p1
 cp %{SOURCE1} .
 
 %build
@@ -105,3 +107,4 @@
 %dir %{_libdir}/xine/plugins/*
 %dir %{_libdir}/xine/plugins/*/post
 
+%changelog

++++++ xineliboutput-1.1.0-vdr-2.2.patch ++++++
diff --git a/config.c b/config.c
index 78d609f..cbc470e 100644
--- a/config.c
+++ b/config.c
@@ -702,6 +702,9 @@ config_t::config_t() {
   ff_h264_speed_over_accurancy = FF_H264_SPEED_OVER_ACCURACY_auto;
   ff_h264_skip_loop_filter     = FF_H264_SKIP_LOOPFILTER_auto;
 
+#if (APIVERSNUM >= 20102)
+#define VideoDirectory cVideoDirectory::Name()
+#endif
   strn0cpy(media_root_dir,    "/",            sizeof(media_root_dir));
   strn0cpy(browse_files_dir,  VideoDirectory, sizeof(browse_files_dir));
   strn0cpy(browse_music_dir,  VideoDirectory, sizeof(browse_music_dir));
diff --git a/device.c b/device.c
index c182ce9..70e54a5 100644
--- a/device.c
+++ b/device.c
@@ -698,7 +698,11 @@ bool cXinelibDevice::SetPlayMode(ePlayMode PlayMode)
 #define trs_Backward   0x40  // palying backwards -- same as regen pts ???
 #endif
 
+#if (APIVERSNUM >= 20103)
+void cXinelibDevice::TrickSpeed(int Speed, bool Forward)
+#else
 void cXinelibDevice::TrickSpeed(int Speed) 
+#endif
 {
   TRACEF("cXinelibDevice::TrickSpeed");
 
diff --git a/device.h b/device.h
index b5681cb..ee494c6 100644
--- a/device.h
+++ b/device.h
@@ -111,7 +111,11 @@ class cXinelibDevice : public cDevice
   protected:
     virtual void    Clear(void);
     virtual void    Play(void);
+#if (APIVERSNUM >= 20103)
+    virtual void    TrickSpeed(int Speed, bool Forward = true);
+#else
     virtual void    TrickSpeed(int Speed);
+#endif
     virtual void    Freeze(void);
     virtual bool    Flush(int TimeoutMs = 0);
     virtual int64_t GetSTC(void);
diff --git a/menu.c b/menu.c
index 4defe82..b79d7af 100644
--- a/menu.c
+++ b/menu.c
@@ -219,6 +219,9 @@ void cMenuBrowseFiles::Set(void)
     m_CurrentDir = xc.media_root_dir;
   }
 
+#if (APIVERSNUM >= 20102)
+#define VideoDirectory cVideoDirectory::Name()
+#endif
   if (m_CurrentDir[0] != '/') {
     m_CurrentDir = VideoDirectory;
   }
diff --git a/osd.c b/osd.c
index 90756b4..cd6dc7e 100644
--- a/osd.c
+++ b/osd.c
@@ -535,12 +535,21 @@ void cXinelibOsd::Flush(void)
   if (IsTrueColor()) {
 
     LOCK_PIXMAPS;
-    while (cPixmapMemory *pm = RenderPixmaps()) {
+#if (APIVERSNUM >= 20110)
+    while (cPixmapMemory *pm = dynamic_cast<cPixmapMemory *>(RenderPixmaps()))
+#else
+    while (cPixmapMemory *pm = RenderPixmaps())
+#endif
+    {
       int w = pm->ViewPort().Width();
       int h = pm->ViewPort().Height();
       int d = w * sizeof(tColor);
       CmdArgb(Left() + pm->ViewPort().X(), Top() + pm->ViewPort().Y(), w, h, 
pm->Data(), h * d);
+#if (APIVERSNUM >= 20110)
+      DestroyPixmap(pm);
+#else
       delete pm;
+#endif
     }
 
     return;
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c
index c7a289b..cc6032a 100644
--- a/tools/udp_pes_scheduler.c
+++ b/tools/udp_pes_scheduler.c
@@ -634,6 +634,9 @@ void cUdpScheduler::Send_SAP(bool Announce)
 
 #if 1
   /* store copy of SDP data */
+#if (APIVERSNUM >= 20102)
+#define VideoDirectory cVideoDirectory::Name()
+#endif
   if(m_fd_sap < 0) {
     cString fname = AddDirectory(VideoDirectory,
                                 cString::sprintf("xineliboutput@%s.sdp",
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to