[totem/gnome-3-14] backend: Don't warn when rotation is unset



commit a406d2f15d5fdbe5ef257cb6be15673995f947ba
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 5 18:35:44 2015 +0200

    backend: Don't warn when rotation is unset
    
    But the rotation tag is present. Would throw errors like:
    ** (totem:3246): WARNING **: Unhandled orientation value: 'rotate-0'

 src/backend/bacon-video-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 948eb91..737ce0e 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -1990,7 +1990,7 @@ update_orientation_from_video (BaconVideoWidget *bvw)
 
   ret = gst_tag_list_get_string_index (bvw->priv->tagcache,
                                       GST_TAG_IMAGE_ORIENTATION, 0, &orientation_str);
-  if (!ret || !orientation_str)
+  if (!ret || !orientation_str || g_str_equal (orientation_str, "rotate-0"))
     rotation = BVW_ROTATION_R_ZERO;
   else if (g_str_equal (orientation_str, "rotate-90"))
     rotation = BVW_ROTATION_R_90R;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]