[totem] backend: Don't warn when rotation is unset



commit e5f01e4bb35a4ad94af5396ab6fcc7129270cb9b
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 b2ae6b6..0a1e45d 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -2016,7 +2016,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]