public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jörg Bornkessel" <hd_brummy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-ttxtsubs/, media-plugins/vdr-ttxtsubs/files/
Date: Sun,  1 Mar 2020 19:01:13 +0000 (UTC)	[thread overview]
Message-ID: <1583089242.07bbe67ca417fd6c9938158ad9afc78ce9547509.hd_brummy@gentoo> (raw)

commit:     07bbe67ca417fd6c9938158ad9afc78ce9547509
Author:     Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  1 19:00:42 2020 +0000
Commit:     Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 19:00:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bbe67c

media-plugins/vdr-ttxtsubs: compile for >media-tv/vdr-2.4 fixed

Package-Manager: Portage-2.3.90, Repoman-2.3.20
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>

 .../files/vdr-ttxtsubs-0.3.0_vdr-2.4.0.patch       | 109 +++++++++++++++++++++
 ....3.0-r1.ebuild => vdr-ttxtsubs-0.3.0-r2.ebuild} |   4 +
 2 files changed, 113 insertions(+)

diff --git a/media-plugins/vdr-ttxtsubs/files/vdr-ttxtsubs-0.3.0_vdr-2.4.0.patch b/media-plugins/vdr-ttxtsubs/files/vdr-ttxtsubs-0.3.0_vdr-2.4.0.patch
new file mode 100644
index 00000000000..4b6bf2c05fd
--- /dev/null
+++ b/media-plugins/vdr-ttxtsubs/files/vdr-ttxtsubs-0.3.0_vdr-2.4.0.patch
@@ -0,0 +1,109 @@
+diff --git a/ttxtsubs.c b/ttxtsubs.c
+index f9b7bbc..5307c44 100644
+--- a/ttxtsubs.c
++++ b/ttxtsubs.c
+@@ -275,7 +275,8 @@ void cPluginTtxtsubs::Housekeeping(void)
+ 
+ const char *cPluginTtxtsubs::MainMenuEntry(void)
+ {
+-  bool haveChannel = Channels.GetByNumber(cDevice::ActualDevice()->CurrentChannel()) != NULL;
++  LOCK_CHANNELS_READ;
++  bool haveChannel = Channels->GetByNumber(cDevice::ActualDevice()->CurrentChannel()) != NULL;
+   switch(globals.mMainMenuEntry) {
+   case 1:
+     if(globals.mRealDoDisplay)
+@@ -349,7 +350,8 @@ void cPluginTtxtsubs::ChannelSwitch(const cDevice *Device, int ChannelNumber
+     DELETENULL(mLiveReceiver);
+     if (!Device->Replaying() && !Device->Transferring())
+     {
+-      cChannel* channel = Channels.GetByNumber(ChannelNumber);
++      LOCK_CHANNELS_READ;
++      const cChannel* channel = Channels->GetByNumber(ChannelNumber);
+       if (channel && channel->Tpid())
+       {
+         mLiveReceiver = new cTtxtSubsLiveReceiver(channel, this);
+diff --git a/ttxtsubschannelsettings.c b/ttxtsubschannelsettings.c
+index b543a36..7f9d326 100644
+--- a/ttxtsubschannelsettings.c
++++ b/ttxtsubschannelsettings.c
+@@ -48,8 +48,9 @@ bool cTtxtSubsChannelSetting::Parse(const char *s)
+       }
+       else { // parse old format
+         int sid;
++        LOCK_CHANNELS_READ;
+         if (1 == sscanf(buffer, "%d", &sid)) {
+-          for (cChannel *ch = Channels.First(); ch; ch = Channels.Next(ch)) {
++          for (const cChannel *ch = Channels->First(); ch; ch = Channels->Next(ch)) {
+             if (!ch->GroupSep() && ch->Sid() == sid) {
+               channelid=ch->GetChannelID();
+               pagemode=PageMode;
+diff --git a/ttxtsubslivereceiver.c b/ttxtsubslivereceiver.c
+index 9f60fdd..586d5af 100644
+--- a/ttxtsubslivereceiver.c
++++ b/ttxtsubslivereceiver.c
+@@ -22,7 +22,7 @@
+ #include <vdr/remux.h>
+ #include "ttxtsubslivereceiver.h"
+ 
+-cTtxtSubsLiveReceiver::cTtxtSubsLiveReceiver(cChannel* channel, cVDRTtxtsubsHookListener* hook)
++cTtxtSubsLiveReceiver::cTtxtSubsLiveReceiver(const cChannel* channel, cVDRTtxtsubsHookListener* hook)
+   :
+   _channel(channel),
+   _hook(hook)
+@@ -35,7 +35,7 @@ cTtxtSubsLiveReceiver::~cTtxtSubsLiveReceiver()
+   cReceiver::Detach();
+ }
+ 
+-void cTtxtSubsLiveReceiver::Receive(uchar *Data, int Length)
++void cTtxtSubsLiveReceiver::Receive(const uchar *Data, int Length)
+ {
+   if (Data == NULL)
+   {
+diff --git a/ttxtsubslivereceiver.h b/ttxtsubslivereceiver.h
+index d361c7b..0aba89b 100644
+--- a/ttxtsubslivereceiver.h
++++ b/ttxtsubslivereceiver.h
+@@ -29,12 +29,12 @@ class cTtxtSubsLiveReceiver : public cReceiver
+ {
+     private:
+       cTsToPes tsToPesTeletext;
+-      cChannel* _channel;
++      const cChannel* _channel;
+       cVDRTtxtsubsHookListener* _hook;
+     protected:
+-        virtual void Receive(uchar *Data, int Length);
++        virtual void Receive(const uchar *Data, int Length);
+     public:
+-        cTtxtSubsLiveReceiver(cChannel* channel, cVDRTtxtsubsHookListener* hook);
++        cTtxtSubsLiveReceiver(const cChannel* channel, cVDRTtxtsubsHookListener* hook);
+         virtual ~cTtxtSubsLiveReceiver();
+ };
+ 
+diff --git a/ttxtsubspagemenu.c b/ttxtsubspagemenu.c
+index cd7b6d0..b03949c 100644
+--- a/ttxtsubspagemenu.c
++++ b/ttxtsubspagemenu.c
+@@ -35,8 +35,9 @@ cTtxtsubsPageMenu::~cTtxtsubsPageMenu()
+ cTtxtsubsPageMenu::cTtxtsubsPageMenu()
+   :cOsdMenu(tr("Subtitle Page Settings"), 30)
+ {
++    LOCK_CHANNELS_READ;
+     cDevice *device = cDevice::ActualDevice();
+-    channel = Channels.GetByNumber(device->CurrentChannel());
++    channel = Channels->GetByNumber(device->CurrentChannel());
+     setting = TtxtSubsChannelSettings.Get(channel);
+     if (setting) {
+        origPageMode = mPageMode = setting->PageMode();
+diff --git a/ttxtsubspagemenu.h b/ttxtsubspagemenu.h
+index ad4bd48..ffe82d9 100644
+--- a/ttxtsubspagemenu.h
++++ b/ttxtsubspagemenu.h
+@@ -29,7 +29,7 @@
+ class cTtxtsubsPageMenu : public cOsdMenu 
+ {
+     private:
+-        cChannel *channel;
++        const cChannel *channel;
+         cTtxtSubsChannelSetting *setting;
+         int mPageNumber;
+         int mPageMode;

diff --git a/media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r1.ebuild b/media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r2.ebuild
similarity index 86%
rename from media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r1.ebuild
rename to media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r2.ebuild
index 9fe2f3ec6aa..5243d459cc0 100644
--- a/media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r1.ebuild
+++ b/media-plugins/vdr-ttxtsubs/vdr-ttxtsubs-0.3.0-r2.ebuild
@@ -23,4 +23,8 @@ src_prepare() {
 	vdr-plugin-2_src_prepare
 
 	eapply "${FILESDIR}/${P}_teletext-chars.patch"
+
+	if has_version ">=media-video/vdr-2.4"; then
+		eapply "${FILESDIR}/${P}_vdr-2.4.0.patch"
+	fi
 }


             reply	other threads:[~2020-03-01 19:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-01 19:01 Jörg Bornkessel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-12-11 20:22 [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-ttxtsubs/, media-plugins/vdr-ttxtsubs/files/ Joerg Bornkessel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583089242.07bbe67ca417fd6c9938158ad9afc78ce9547509.hd_brummy@gentoo \
    --to=hd_brummy@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox