Mimetype is "video/mpeg" for radio channels as well.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Thu, 25 Dec 2008 12:01:21 +0000 (12:01 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Thu, 25 Dec 2008 12:01:21 +0000 (12:01 +0000)
This is since they are also contained in an mpeg transport stream. The
UPnP type for items however remains different so CPs and MRs can still
differentiate between them.

svn path=/trunk/; revision=386

src/plugins/dvb/rygel-dvb-channel.vala

index a57f068..4877355 100644 (file)
@@ -59,12 +59,11 @@ public class Rygel.DVBChannel : MediaItem {
         bool is_radio = this.channel_list.IsRadioChannel (cid);
         if (is_radio) {
             this.upnp_class = "object.item.audioItem.audioBroadcast";
-            this.res.mime_type = "audio/mpeg"; // correct?
         } else {
             this.upnp_class = "object.item.videoItem.videoBroadcast";
-            this.res.mime_type = "video/mpeg";
         }
 
+        this.res.mime_type = "video/mpeg";
         // FIXME: (Leaky) Hack to assign the string to weak fields
         string uri = this.channel_list.GetChannelURL (cid);
         string *uri_ptr = #uri;