[gupnp-dlna] Get audio bitrate from caps as fall-back



commit 2e052ade9012b93d0982071f7f17a55a77ea08a9
Author: Jens Georg <jensg openismus com>
Date:   Fri May 3 16:06:41 2013 +0200

    Get audio bitrate from caps as fall-back
    
    Fixes discovery of WMA files, their bitrate is in the caps and not in
    audio-bitrate.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=699586

 .../gstreamer/gupnp-dlna-gst-audio-information.c   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c 
b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
index 67cb3a8..e453d90 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
@@ -147,6 +147,8 @@ backend_get_bitrate (GUPnPDLNAAudioInformation *self)
         if (data > 0 && data <= G_MAXINT) {
                 value.state = GUPNP_DLNA_VALUE_STATE_SET;
                 value.value = (gint) data;
+        } else {
+                value = get_int_value (gst_info, "bitrate");
         }
 
         return value;


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