summarylogtreecommitdiffstats
path: root/xplayer_issues_147.patch
blob: 29480322a74b7b1a3c2c298548ee3ee1de25501d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 30029a515f68290f8e85f4b7344d50fce66d74f8 Mon Sep 17 00:00:00 2001
From: DJ Sutton <dj@laptop>
Date: Mon, 13 May 2019 17:55:23 -0600
Subject: [PATCH] check for bvw->priv->tagcache == NULL in bacon-video-widget.c
 update_orientation_from_video

---
 src/backend/bacon-video-widget.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index e95dc4b..444413c 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -1715,6 +1715,9 @@ update_orientation_from_video (BaconVideoWidget *bvw)
   if (bvw->priv->rotation != BVW_ROTATION_R_ZERO)
     return;
 
+  if (bvw->priv->tagcache == NULL)
+    return;
+
   ret = gst_tag_list_get_string_index (bvw->priv->tagcache,
 				       GST_TAG_IMAGE_ORIENTATION, 0, &orientation_str);
   if (!ret || !orientation_str || g_str_equal (orientation_str, "rotate-0"))