rygel r769 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r769 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:46:23 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:46:23 2009
New Revision: 769
URL: http://svn.gnome.org/viewvc/rygel?rev=769&view=rev
Log:
Transcoder tells the primary UPnP class it is meant for.
Modified:
trunk/src/rygel/rygel-l16-transcoder.vala
trunk/src/rygel/rygel-mp2ts-transcoder.vala
trunk/src/rygel/rygel-mp3-transcoder.vala
trunk/src/rygel/rygel-transcoder.vala
Modified: trunk/src/rygel/rygel-l16-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-l16-transcoder.vala (original)
+++ trunk/src/rygel/rygel-l16-transcoder.vala Sat Mar 28 00:46:23 2009
@@ -47,7 +47,7 @@
";rate=" + L16Transcoder.FREQUENCY.to_string () +
";channels=" + L16Transcoder.CHANNELS.to_string ();
- base (mime_type, "LPCM");
+ base (mime_type, "LPCM", MediaItem.MUSIC_CLASS);
this.endianness = endianness;
}
Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala Sat Mar 28 00:46:23 2009
@@ -43,7 +43,7 @@
private MP2TSProfile profile;
public MP2TSTranscoder (MP2TSProfile profile) {
- base ("video/mpeg", PROFILES[profile]);
+ base ("video/mpeg", PROFILES[profile], MediaItem.VIDEO_CLASS);
this.profile = profile;
}
Modified: trunk/src/rygel/rygel-mp3-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp3-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp3-transcoder.vala Sat Mar 28 00:46:23 2009
@@ -32,7 +32,7 @@
private MP3Layer layer;
public MP3Transcoder (MP3Layer layer) {
- base ("audio/mpeg", "MP3");
+ base ("audio/mpeg", "MP3", MediaItem.MUSIC_CLASS);
this.layer = layer;
}
Modified: trunk/src/rygel/rygel-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-transcoder.vala (original)
+++ trunk/src/rygel/rygel-transcoder.vala Sat Mar 28 00:46:23 2009
@@ -29,9 +29,16 @@
public string mime_type { get; protected set; }
public string dlna_profile { get; protected set; }
- public Transcoder (string mime_type, string dlna_profile) {
+ // Primary UPnP item class that this transcoder is meant for, doesn't
+ // necessarily mean it cant be used for other classes.
+ public string upnp_class { get; protected set; }
+
+ public Transcoder (string mime_type,
+ string dlna_profile,
+ string upnp_class) {
this.mime_type = mime_type;
this.dlna_profile = dlna_profile;
+ this.upnp_class = upnp_class;
}
public abstract Element create_source (Element src) throws Error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]