mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 10:17:14 +08:00
Fix double window on closing a gstreamer application
This commit is contained in:
parent
cce63536b0
commit
767069dbe1
@ -5,21 +5,27 @@
|
||||
|
||||
pkgname=('phonon-backend-gstreamer')
|
||||
pkgver=4.6.2
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Phonon GStreamer backend"
|
||||
arch=('i686' 'x86_64')
|
||||
arch=('x86_64')
|
||||
url='http://phonon.kde.org'
|
||||
license=('LGPL')
|
||||
depends=('gstreamer0.10-base-plugins' 'phonon')
|
||||
makedepends=('pkgconfig' 'cmake' 'automoc4' 'mesa')
|
||||
makedepends=('pkg-config' 'cmake' 'automoc4' 'mesa')
|
||||
groups=("kde-complete" "kde-uninstall")
|
||||
conflicts=('phonon-gstreamer')
|
||||
replaces=('phonon-gstreamer')
|
||||
source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/${pkgver}/src/phonon-backend-gstreamer-${pkgver}.tar.xz")
|
||||
md5sums=('8c08875d10952bc5685bcec8de3acb2d')
|
||||
source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/${pkgver}/src/phonon-backend-gstreamer-${pkgver}.tar.xz"
|
||||
"fix-double-window.patch")
|
||||
md5sums=('8c08875d10952bc5685bcec8de3acb2d'
|
||||
'3a828b776d354c16a2c1dfe4ec49e12e')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
patch -Np1 -i ${srcdir}/fix-double-window.patch
|
||||
|
||||
cd ${srcdir}
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ../${pkgname}-${pkgver} \
|
||||
|
21
phonon-backend-gstreamer/fix-double-window.patch
Normal file
21
phonon-backend-gstreamer/fix-double-window.patch
Normal file
@ -0,0 +1,21 @@
|
||||
commit 2db4c430740da89fb22319b2ded63e770f3d6fac
|
||||
Author: Trever Fischer <tdfischer@fedoraproject.org>
|
||||
Date: Sat Sep 22 19:41:14 2012 +0200
|
||||
|
||||
Use a sync connection to update the xvimagesink window handle
|
||||
|
||||
BUG: 305333
|
||||
|
||||
diff --git a/gstreamer/videowidget.cpp b/gstreamer/videowidget.cpp
|
||||
index 96eea1c..3b38ab0 100644
|
||||
--- a/gstreamer/videowidget.cpp
|
||||
+++ b/gstreamer/videowidget.cpp
|
||||
@@ -86,7 +86,7 @@ void VideoWidget::updateWindowID()
|
||||
void VideoWidget::finalizeLink()
|
||||
{
|
||||
connect(root()->pipeline(), SIGNAL(mouseOverActive(bool)), this, SLOT(mouseOverActive(bool)));
|
||||
- connect(root()->pipeline(), SIGNAL(windowIDNeeded()), this, SLOT(updateWindowID()));
|
||||
+ connect(root()->pipeline(), SIGNAL(windowIDNeeded()), this, SLOT(updateWindowID()), Qt::DirectConnection);
|
||||
}
|
||||
|
||||
void VideoWidget::prepareToUnlink()
|
Loading…
Reference in New Issue
Block a user