public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Chí-Thanh Christopher Nguyễn" <chithanh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/
Date: Thu, 20 Jul 2017 08:46:05 +0000 (UTC)	[thread overview]
Message-ID: <1500540337.aa2763887266bfe7e5dfe447f8833050d2745a27.chithanh@gentoo> (raw)

commit:     aa2763887266bfe7e5dfe447f8833050d2745a27
Author:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 08:45:37 2017 +0000
Commit:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 08:45:37 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa276388

www-plugins/lightspark: add upstream patch to fix ffmpeg-free build

Bug: https://bugs.gentoo.org/show_bug.cgi?id=607492

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../files/lightspark-0.8.0-ffmpeg-free.patch       | 31 ++++++++++++++++++++++
 www-plugins/lightspark/lightspark-0.8.0.ebuild     |  2 ++
 2 files changed, 33 insertions(+)

diff --git a/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
new file mode 100644
index 00000000000..76566e6be79
--- /dev/null
+++ b/www-plugins/lightspark/files/lightspark-0.8.0-ffmpeg-free.patch
@@ -0,0 +1,31 @@
+From 22a85a13a5c3ded942ef59522ad399eb5d9a58d9 Mon Sep 17 00:00:00 2001
+From: Mikhail Vorobyov <vorobyov.mikhail@gmail.com>
+Date: Tue, 18 Jul 2017 23:46:37 +0300
+Subject: [PATCH] Add NullVideoDecoder::switchCodec
+
+Add VideoDecoder::switchCodec implementation to NullVideoDecoder to fix
+ffmpeg-free build.
+---
+ src/backends/decoder.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/backends/decoder.h b/src/backends/decoder.h
+index 069543d0..f53288bd 100644
+--- a/src/backends/decoder.h
++++ b/src/backends/decoder.h
+@@ -140,6 +140,7 @@ class NullVideoDecoder: public VideoDecoder
+ public:
+ 	NullVideoDecoder() {status=VALID;}
+ 	~NullVideoDecoder() { while(fenceCount); }
++	void switchCodec(LS_VIDEO_CODEC codecId, uint8_t* initdata, uint32_t datalen, double frameRateHint){};
+ 	bool decodeData(uint8_t* data, uint32_t datalen, uint32_t time){return false;}
+ 	bool discardFrame(){return false;}
+ 	void skipUntil(uint32_t time){}
+@@ -305,6 +306,7 @@ class NullAudioDecoder: public AudioDecoder
+ 		sampleRate=44100;
+ 		channelCount=2;
+ 	}
++	void switchCodec(LS_AUDIO_CODEC codecId, uint8_t* initdata, uint32_t datalen){};
+ 	uint32_t decodeData(uint8_t* data, int32_t datalen, uint32_t time){return 0;}
+ };
+ 

diff --git a/www-plugins/lightspark/lightspark-0.8.0.ebuild b/www-plugins/lightspark/lightspark-0.8.0.ebuild
index d67d565b6b3..1a71cb2ec2d 100644
--- a/www-plugins/lightspark/lightspark-0.8.0.ebuild
+++ b/www-plugins/lightspark/lightspark-0.8.0.ebuild
@@ -51,6 +51,8 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/${P/_rc*/}
 
+PATCHES=( "${FILESDIR}"/${P}-ffmpeg-free.patch )
+
 pkg_pretend() {
 	if [[ ${MERGE_TYPE} != binary ]]; then
 		if tc-is-gcc && [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 6 || $(gcc-major-version) -lt 4 ]] ; then


             reply	other threads:[~2017-07-20  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20  8:46 Chí-Thanh Christopher Nguyễn [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-11 16:19 [gentoo-commits] repo/gentoo:master commit in: www-plugins/lightspark/files/, www-plugins/lightspark/ Michał Górny
2016-01-07 22:10 Michał Górny

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=1500540337.aa2763887266bfe7e5dfe447f8833050d2745a27.chithanh@gentoo \
    --to=chithanh@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