Merge lp:~vanvugt/totem/fix-1713386 into lp:~ubuntu-desktop/totem/ubuntu

Proposed by Daniel van Vugt
Status: Merged
Merged at revision: 260
Proposed branch: lp:~vanvugt/totem/fix-1713386
Merge into: lp:~ubuntu-desktop/totem/ubuntu
Diff against target: 61 lines (+22/-10)
2 files modified
debian/changelog (+7/-0)
debian/patches/fix-bvw_update_tags-performance.patch (+15/-10)
To merge this branch: bzr merge lp:~vanvugt/totem/fix-1713386
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Ubuntu Sponsors Pending
Review via email: mp+329706@code.launchpad.net

Commit message

Fix assertion failure in gst_tag_list_is_equal (LP: #1713386)

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2017-08-21 22:37:18 +0000
+++ debian/changelog 2017-08-28 03:38:00 +0000
@@ -1,3 +1,10 @@
1totem (3.25.90.1-0ubuntu3) UNRELEASED; urgency=medium
2
3 * debian/patches/fix-bvw_update_tags-performance.patch: Update the patch
4 to avoid passing NULL pointers around (LP: #1713386)
5
6 -- Daniel van Vugt <daniel.van.vugt@canonical.com> Mon, 28 Aug 2017 11:33:42 +0800
7
1totem (3.25.90.1-0ubuntu2) artful; urgency=medium8totem (3.25.90.1-0ubuntu2) artful; urgency=medium
29
3 * debian/patches/fix-bvw_update_tags-performance.patch: 10 * debian/patches/fix-bvw_update_tags-performance.patch:
411
=== modified file 'debian/patches/fix-bvw_update_tags-performance.patch'
--- debian/patches/fix-bvw_update_tags-performance.patch 2017-08-21 08:07:35 +0000
+++ debian/patches/fix-bvw_update_tags-performance.patch 2017-08-28 03:38:00 +0000
@@ -12,13 +12,13 @@
12Author: Daniel van Vugt <daniel.van.vugt@canonical.com>12Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
13Bug-Ubuntu: https://bugs.launchpad.net/bugs/169828213Bug-Ubuntu: https://bugs.launchpad.net/bugs/1698282
14Forwarded: yes14Forwarded: yes
15Last-Update: 2017-08-2115Last-Update: 2017-08-28
1616
17diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c17diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
18index a8a5dbae..5808bd92 10064418index a8a5dbae..14de561d 100644
19--- a/src/backend/bacon-video-widget.c19--- a/src/backend/bacon-video-widget.c
20+++ b/src/backend/bacon-video-widget.c20+++ b/src/backend/bacon-video-widget.c
21@@ -2063,12 +2063,15 @@ bvw_update_tags (BaconVideoWidget * bvw, GstTagList *tag_list, const gchar *type21@@ -2063,15 +2063,19 @@ bvw_update_tags (BaconVideoWidget * bvw, GstTagList *tag_list, const gchar *type
22 GstTagList **cache = NULL;22 GstTagList **cache = NULL;
23 GstTagList *result;23 GstTagList *result;
24 24
@@ -28,14 +28,19 @@
28 * in the middle of a stream, e.g. with radio streams) */28 * in the middle of a stream, e.g. with radio streams) */
29 result = gst_tag_list_merge (bvw->priv->tagcache, tag_list,29 result = gst_tag_list_merge (bvw->priv->tagcache, tag_list,
30 GST_TAG_MERGE_REPLACE);30 GST_TAG_MERGE_REPLACE);
31+ if (gst_tag_list_is_equal (result, bvw->priv->tagcache)) {31- if (bvw->priv->tagcache)
32+ gst_tag_list_unref (result);32+ if (bvw->priv->tagcache) {
33+ return;33+ if (result && gst_tag_list_is_equal (result, bvw->priv->tagcache)) {
34+ gst_tag_list_unref (result);
35+ return;
36+ }
37 gst_tag_list_unref (bvw->priv->tagcache);
34+ }38+ }
39 bvw->priv->tagcache = result;
35+ GST_DEBUG ("Tags: %" GST_PTR_FORMAT, tag_list);40+ GST_DEBUG ("Tags: %" GST_PTR_FORMAT, tag_list);
36 if (bvw->priv->tagcache)41
37 gst_tag_list_unref (bvw->priv->tagcache);42 /* media-type-specific tags */
38 bvw->priv->tagcache = result;43 if (!strcmp (type, "video")) {
39-- 44--
402.11.0452.14.1
4146

Subscribers

People subscribed via source and target branches