diff options
author | nate | 2019-05-17 22:13:16 -0500 |
---|---|---|
committer | nate | 2019-05-17 22:13:16 -0500 |
commit | 64aa9b7a891d6e4099d50521d39ad04fc8ac4b53 (patch) | |
tree | 459b8f376c8623726a592d96175dc1f09bf79ba1 | |
parent | 95b2048c2926dbb451c7e642ecdfa9de1aa89a2e (diff) | |
download | aur-64aa9b7a891d6e4099d50521d39ad04fc8ac4b53.tar.gz |
Add patch for https://github.com/linuxmint/xplayer/issues/147
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | xplayer_issues_147.patch | 25 |
3 files changed, 39 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = xplayer pkgdesc = Simple media player. X-Apps Project. pkgver = 2.0.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/linuxmint/xplayer arch = i686 arch = x86_64 @@ -30,7 +30,9 @@ pkgbase = xplayer provides = xplayer conflicts = xplayer-git source = xplayer-2.0.2.tar.gz::https://github.com/linuxmint/xplayer/archive/2.0.2.tar.gz + source = xplayer_issues_147.patch md5sums = 46526042743d6b0af60bbbb7a4388d66 + md5sums = 533653d8352f0afcac5c4542f1bc0d84 pkgname = xplayer @@ -2,7 +2,7 @@ pkgname=xplayer pkgver=2.0.2 -pkgrel=1 +pkgrel=2 pkgdesc="Simple media player. X-Apps Project." arch=('i686' 'x86_64' 'armv7h') license=('GPL') @@ -20,8 +20,16 @@ provides=($pkgname) conflicts=('xplayer-git') url='https://github.com/linuxmint/xplayer' -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/${pkgname}/archive/${pkgver}.tar.gz") -md5sums=('46526042743d6b0af60bbbb7a4388d66') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/${pkgname}/archive/${pkgver}.tar.gz" + 'xplayer_issues_147.patch') +md5sums=('46526042743d6b0af60bbbb7a4388d66' + '533653d8352f0afcac5c4542f1bc0d84') + + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch --strip=1 --input="${srcdir}/xplayer_issues_147.patch" +} build() { diff --git a/xplayer_issues_147.patch b/xplayer_issues_147.patch new file mode 100644 index 000000000000..29480322a74b --- /dev/null +++ b/xplayer_issues_147.patch @@ -0,0 +1,25 @@ +From 30029a515f68290f8e85f4b7344d50fce66d74f8 Mon Sep 17 00:00:00 2001 +From: DJ Sutton <dj@laptop> +Date: Mon, 13 May 2019 17:55:23 -0600 +Subject: [PATCH] check for bvw->priv->tagcache == NULL in bacon-video-widget.c + update_orientation_from_video + +--- + src/backend/bacon-video-widget.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c +index e95dc4b..444413c 100644 +--- a/src/backend/bacon-video-widget.c ++++ b/src/backend/bacon-video-widget.c +@@ -1715,6 +1715,9 @@ update_orientation_from_video (BaconVideoWidget *bvw) + if (bvw->priv->rotation != BVW_ROTATION_R_ZERO) + return; + ++ if (bvw->priv->tagcache == NULL) ++ return; ++ + ret = gst_tag_list_get_string_index (bvw->priv->tagcache, + GST_TAG_IMAGE_ORIENTATION, 0, &orientation_str); + if (!ret || !orientation_str || g_str_equal (orientation_str, "rotate-0")) + |