rygel r754 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r754 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:45:11 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:45:11 2009
New Revision: 754
URL: http://svn.gnome.org/viewvc/rygel?rev=754&view=rev
Log:
Move add_resources to base Transcoder class.
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:45:11 2009
@@ -47,17 +47,6 @@
L16Transcoder.SIGNED);
}
- public override void add_resources (ArrayList<DIDLLiteResource?> resources,
- MediaItem item,
- TranscodeManager manager)
- throws Error {
- if (this.mime_type_is_a (item.mime_type, this.mime_type)) {
- return;
- }
-
- resources.add (this.create_resource (item, manager));
- }
-
public override DIDLLiteResource create_resource (
MediaItem item,
TranscodeManager manager)
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:45:11 2009
@@ -50,17 +50,6 @@
MP2TSTranscoder.HEIGHT[this.profile]);
}
- public override void add_resources (ArrayList<DIDLLiteResource?> resources,
- MediaItem item,
- TranscodeManager manager)
- throws Error {
- if (this.mime_type_is_a (item.mime_type, this.mime_type)) {
- return;
- }
-
- resources.add (this.create_resource (item, manager));
- }
-
public override DIDLLiteResource create_resource (MediaItem item,
TranscodeManager manager)
throws Error {
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:45:11 2009
@@ -50,17 +50,6 @@
public override Element create_source (Element src) throws Error {
return new MP3TranscoderBin (src, this.layer);
}
-
- public override void add_resources (ArrayList<DIDLLiteResource?> resources,
- MediaItem item,
- TranscodeManager manager)
- throws Error {
- if (this.mime_type_is_a (item.mime_type, this.mime_type)) {
- return;
- }
-
- resources.add (this.create_resource (item, manager));
- }
}
private class Rygel.MP3TranscoderBin : Rygel.TranscoderBin {
Modified: trunk/src/rygel/rygel-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-transcoder.vala (original)
+++ trunk/src/rygel/rygel-transcoder.vala Sat Mar 28 00:45:11 2009
@@ -36,11 +36,16 @@
public abstract Element create_source (Element src) throws Error;
- public abstract void add_resources (ArrayList<DIDLLiteResource?> resources,
- MediaItem item,
- TranscodeManager manager)
- throws Error;
+ public void add_resources (ArrayList<DIDLLiteResource?> resources,
+ MediaItem item,
+ TranscodeManager manager)
+ throws Error {
+ if (this.mime_type_is_a (item.mime_type, this.mime_type)) {
+ return;
+ }
+ resources.add (this.create_resource (item, manager));
+ }
public virtual DIDLLiteResource create_resource (MediaItem item,
TranscodeManager manager)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]