rygel r386 - trunk/src/plugins/dvb



Author: zeeshanak
Date: Thu Dec 25 12:01:21 2008
New Revision: 386
URL: http://svn.gnome.org/viewvc/rygel?rev=386&view=rev

Log:
Mimetype is "video/mpeg" for radio channels as well.

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.

Modified:
   trunk/src/plugins/dvb/rygel-dvb-channel.vala

Modified: trunk/src/plugins/dvb/rygel-dvb-channel.vala
==============================================================================
--- trunk/src/plugins/dvb/rygel-dvb-channel.vala	(original)
+++ trunk/src/plugins/dvb/rygel-dvb-channel.vala	Thu Dec 25 12:01:21 2008
@@ -59,12 +59,11 @@
         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;



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