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
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-03-18 10:17:52 +0000
3+++ debian/changelog 2015-04-21 05:23:35 +0000
4@@ -1,3 +1,11 @@
5+qtmultimedia-opensource-src (5.4.1-1ubuntu2) UNRELEASED; urgency=medium
6+
7+ * debian/patches/debian/patches/qgstreamercapturesession_avoid_race_eos.patch:
8+ - Avoid races when sending EOS, making sure pipeline is in playing state
9+ first (LP: #1433563)
10+
11+ -- Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Sun, 19 Apr 2015 20:13:29 -0300
12+
13 qtmultimedia-opensource-src (5.4.1-1ubuntu1) vivid; urgency=medium
14
15 * New upstream release.
16
17=== added file 'debian/patches/qgstreamercapturesession_avoid_race_eos.patch'
18--- debian/patches/qgstreamercapturesession_avoid_race_eos.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/qgstreamercapturesession_avoid_race_eos.patch 2015-04-21 05:23:35 +0000
20@@ -0,0 +1,24 @@
21+Author: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
22+Title: Avoid races when sending EOS, making sure pipeline is in playing state first
23+Forwarded: yes
24+Bug: https://bugreports.qt.io/browse/QTBUG-45707
25+Bug-Ubuntu: https://launchpad.net/bugs/1433563
26+
27+Index: qtmultimedia-opensource-src-5.4.1/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
28+===================================================================
29+--- qtmultimedia-opensource-src-5.4.1.orig/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
30++++ qtmultimedia-opensource-src-5.4.1/src/plugins/gstreamer/mediacapture/qgstreamercapturesession.cpp
31+@@ -828,11 +828,11 @@ void QGstreamerCaptureSession::setState(
32+ if (!m_waitingForEos) {
33+ m_waitingForEos = true;
34+ //qDebug() << "Waiting for EOS";
35++ // Unless gstreamer is in GST_STATE_PLAYING our EOS message will not be received.
36++ gst_element_set_state(m_pipeline, GST_STATE_PLAYING);
37+ //with live sources it's necessary to send EOS even to pipeline
38+ //before going to STOPPED state
39+ gst_element_send_event(m_pipeline, gst_event_new_eos());
40+- // Unless gstreamer is in GST_STATE_PLAYING our EOS message will not be received.
41+- gst_element_set_state(m_pipeline, GST_STATE_PLAYING);
42+
43+ return;
44+ } else {
45
46=== modified file 'debian/patches/series'
47--- debian/patches/series 2015-02-09 11:36:01 +0000
48+++ debian/patches/series 2015-04-21 05:23:35 +0000
49@@ -1,3 +1,4 @@
50 rpath_nonlinux.diff
51 skip_failing_tests.patch
52 adding_media_role_property.patch
53+qgstreamercapturesession_avoid_race_eos.patch

Subscribers

People subscribed via source and target branches