[totem] backend: Show Vorbis DESCRIPTION in Comment



commit fc2ec7616f7382510dc4178245430990973e3548
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Dec 21 21:17:04 2011 +0000

    backend: Show Vorbis DESCRIPTION in Comment
    
    As with commit b56e6a6e4a09d9c3efb768fef4330c4a9b95be16, fall back to the
    DESCRIPTION tag if COMMENT is empty in the GStreamer backend.
    
    See: bgo#666411

 src/backend/bacon-video-widget-gst-0.10.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index b6f8bde..2dbf70f 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -5520,6 +5520,13 @@ bacon_video_widget_get_metadata_string (BaconVideoWidget * bvw,
       if (bvw->priv->tagcache != NULL) {
         res = gst_tag_list_get_string_index (bvw->priv->tagcache,
                                              GST_TAG_COMMENT, 0, &string);
+
+        /* Use the Comment; if that fails, use Description as specified by:
+         * http://xiph.org/vorbis/doc/v-comment.html */
+        if (!res) {
+          res = gst_tag_list_get_string_index (bvw->priv->tagcache,
+                                               GST_TAG_DESCRIPTION, 0, &string);
+        }
       }
       break;
     case BVW_INFO_ALBUM:



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