Hello community,
here is the log from the commit of package gstreamer-plugins-qt for
openSUSE:Factory checked in at 2015-11-24 22:29:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gstreamer-plugins-qt (Old)
and /work/SRC/openSUSE:Factory/.gstreamer-plugins-qt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gstreamer-plugins-qt"
Changes:
--------
---
/work/SRC/openSUSE:Factory/gstreamer-plugins-qt/gstreamer-plugins-qt.changes
2014-09-03 19:55:43.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.gstreamer-plugins-qt.new/gstreamer-plugins-qt.changes
2015-11-24 22:29:44.000000000 +0100
@@ -1,0 +2,8 @@
+Sat Nov 21 08:35:38 UTC 2015 - [email protected]
+
+- Add qt-gstreamer-fix-memleak.patch: Fix a mem leak and sync
+ issues, patch from upstream git.
+- Add qt-gstreamer-fixbuild-gst_1-6.patch: Fix build with gstreamer
+ 1.5 and newer, patch from upstream git.
+
+-------------------------------------------------------------------
New:
----
qt-gstreamer-fix-memleak.patch
qt-gstreamer-fixbuild-gst_1-6.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gstreamer-plugins-qt.spec ++++++
--- /var/tmp/diff_new_pack.A1JAUG/_old 2015-11-24 22:29:45.000000000 +0100
+++ /var/tmp/diff_new_pack.A1JAUG/_new 2015-11-24 22:29:45.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package gstreamer-plugins-qt
#
-# 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,10 @@
Group: Productivity/Multimedia/Other
Url: http://gstreamer.freedesktop.org/wiki/QtGStreamer
Source:
http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM qt-gstreamer-fix-memleak.patch [email protected] -- Fix
a memleak and sync issues
+Patch0: qt-gstreamer-fix-memleak.patch
+# PATCH-FIX-UPSTREAM qt-gstreamer-fixbuild-gst_1-6.patch [email protected]
-- Fix build with gst 1.5 and newer.
+Patch1: qt-gstreamer-fixbuild-gst_1-6.patch
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8.9
@@ -69,6 +73,8 @@
%prep
%setup -q -n qt-gstreamer-%{version}
+%patch0 -p1
+%patch1 -p1
%package devel
Summary: Include files and libraries mandatory for development
++++++ qt-gstreamer-fix-memleak.patch ++++++
>From fe3e8979697773c69d98d172f3eea0bf0dd37287 Mon Sep 17 00:00:00 2001
From: George Kiagiadakis <[email protected]>
Date: Tue, 30 Sep 2014 01:11:58 +0300
Subject: gstqtvideosink: fix memory leak and synchronization issue related to
buffer reference counting
https://bugzilla.gnome.org/show_bug.cgi?id=736758
diff --git a/elements/gstqtvideosink/delegates/basedelegate.cpp
b/elements/gstqtvideosink/delegates/basedelegate.cpp
index 82b465e..7dde59c 100644
--- a/elements/gstqtvideosink/delegates/basedelegate.cpp
+++ b/elements/gstqtvideosink/delegates/basedelegate.cpp
@@ -181,7 +181,7 @@ bool BaseDelegate::event(QEvent *event)
{
GST_LOG_OBJECT(m_sink, "Received deactivate event");
- g_clear_pointer(&m_buffer, gst_buffer_unref);
+ gst_buffer_replace (&m_buffer, NULL);
update();
return true;
diff --git a/elements/gstqtvideosink/painters/videomaterial.cpp
b/elements/gstqtvideosink/painters/videomaterial.cpp
index bda535c..3073e6d 100644
--- a/elements/gstqtvideosink/painters/videomaterial.cpp
+++ b/elements/gstqtvideosink/painters/videomaterial.cpp
@@ -252,6 +252,7 @@ VideoMaterial::~VideoMaterial()
{
if (!m_textureSize.isEmpty())
glDeleteTextures(m_textureCount, m_textureIds);
+ gst_buffer_replace(&m_frame, NULL);
}
int VideoMaterial::compare(const QSGMaterial *other) const
--
cgit v0.10.2
++++++ qt-gstreamer-fixbuild-gst_1-6.patch ++++++
>From e2ca8094aa8d0eac1c3a98df66fe94ce0c754088 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Santamar=C3=ADa?= <[email protected]>
Date: Fri, 2 Oct 2015 15:00:29 +0300
Subject: Fix compilation with GStreamer >= 1.5.1
apply gstreamer pkg-config definitions To ensure gstreamer builds correctly,
pick up its cflags in FindGstreamer and apply them to the build as definitions
https://lists.ubuntu.com/archives/kubuntu-devel/2015-August/009819.html
https://bugzilla.gnome.org/show_bug.cgi?id=751382
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d3e7dd..5744015 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,6 +106,7 @@ find_package(GObject)
macro_log_feature(GOBJECT_FOUND "GObject" "Required to build QtGLib"
"http://www.gtk.org/" TRUE)
set(CMAKE_REQUIRED_INCLUDES ${QTGSTREAMER_INCLUDES})
+add_definitions(${GSTREAMER_DEFINITIONS})
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <QtCore/QtGlobal>
diff --git a/cmake/modules/FindGStreamer.cmake
b/cmake/modules/FindGStreamer.cmake
index dab91ac..fe6cde1 100644
--- a/cmake/modules/FindGStreamer.cmake
+++ b/cmake/modules/FindGStreamer.cmake
@@ -36,6 +36,7 @@ if (PKG_CONFIG_FOUND)
exec_program(${PKG_CONFIG_EXECUTABLE}
ARGS --variable pluginsdir gstreamer-${GSTREAMER_ABI_VERSION}
OUTPUT_VARIABLE PKG_GSTREAMER_PLUGIN_DIR)
+ set(GSTREAMER_DEFINITIONS ${PKG_GSTREAMER_CFLAGS})
endif()
find_library(GSTREAMER_LIBRARY
--
cgit v0.10.2