Merge lp:~rsalveti/kubuntu-packaging/qgstreamercapturesession_avoid_race_eos into lp:~kubuntu-packagers/kubuntu-packaging/qtmultimedia-opensource-src

Proposed by Ricardo Salveti
Status: Merged
Merged at revision: 82
Proposed branch: lp:~rsalveti/kubuntu-packaging/qgstreamercapturesession_avoid_race_eos
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtmultimedia-opensource-src
Diff against target: 53 lines (+33/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/qgstreamercapturesession_avoid_race_eos.patch (+24/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~rsalveti/kubuntu-packaging/qgstreamercapturesession_avoid_race_eos
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Kubuntu Packagers Pending
Review via email: mp+256881@code.launchpad.net

Commit message

Avoid races when sending EOS, making sure pipeline is in playing state first (LP: #1433563)

Description of the change

Avoid races when sending EOS, making sure pipeline is in playing state first (LP: #1433563)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-03-18 10:17:52 +0000
+++ debian/changelog 2015-04-21 05:23:35 +0000
@@ -1,3 +1,11 @@
1qtmultimedia-opensource-src (5.4.1-1ubuntu2) UNRELEASED; urgency=medium
2
3 * debian/patches/debian/patches/qgstreamercapturesession_avoid_race_eos.patch:
4 - Avoid races when sending EOS, making sure pipeline is in playing state
5 first (LP: #1433563)
6
7 -- Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Sun, 19 Apr 2015 20:13:29 -0300
8
1qtmultimedia-opensource-src (5.4.1-1ubuntu1) vivid; urgency=medium9qtmultimedia-opensource-src (5.4.1-1ubuntu1) vivid; urgency=medium
210
3 * New upstream release.11 * New upstream release.
412
=== added file 'debian/patches/qgstreamercapturesession_avoid_race_eos.patch'
--- debian/patches/qgstreamercapturesession_avoid_race_eos.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/qgstreamercapturesession_avoid_race_eos.patch 2015-04-21 05:23:35 +0000
@@ -0,0 +1,24 @@
1Author: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
2Title: Avoid races when sending EOS, making sure pipeline is in playing state first
3Forwarded: yes
4Bug: https://bugreports.qt.io/browse/QTBUG-45707
5Bug-Ubuntu: https://launchpad.net/bugs/1433563
6
7Index: qtmultimedia-opensource-src-5.4.1/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
8===================================================================
9--- qtmultimedia-opensource-src-5.4.1.orig/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
10+++ qtmultimedia-opensource-src-5.4.1/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
11@@ -828,11 +828,11 @@ void QGstreamerCaptureSession::setState(
12 if (!m_waitingForEos) {
13 m_waitingForEos = true;
14 //qDebug() << "Waiting for EOS";
15+ // Unless gstreamer is in GST_STATE_PLAYING our EOS message will not be received.
16+ gst_element_set_state(m_pipeline, GST_STATE_PLAYING);
17 //with live sources it's necessary to send EOS even to pipeline
18 //before going to STOPPED state
19 gst_element_send_event(m_pipeline, gst_event_new_eos());
20- // Unless gstreamer is in GST_STATE_PLAYING our EOS message will not be received.
21- gst_element_set_state(m_pipeline, GST_STATE_PLAYING);
22
23 return;
24 } else {
025
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-02-09 11:36:01 +0000
+++ debian/patches/series 2015-04-21 05:23:35 +0000
@@ -1,3 +1,4 @@
1rpath_nonlinux.diff1rpath_nonlinux.diff
2skip_failing_tests.patch2skip_failing_tests.patch
3adding_media_role_property.patch3adding_media_role_property.patch
4qgstreamercapturesession_avoid_race_eos.patch

Subscribers

People subscribed via source and target branches