rygel r766 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r766 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:46:11 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:46:10 2009
New Revision: 766
URL: http://svn.gnome.org/viewvc/rygel?rev=766&view=rev
Log:
Refactor TranscodeManager.add_resources().
Modified:
trunk/src/rygel/rygel-transcode-manager.vala
Modified: trunk/src/rygel/rygel-transcode-manager.vala
==============================================================================
--- trunk/src/rygel/rygel-transcode-manager.vala (original)
+++ trunk/src/rygel/rygel-transcode-manager.vala Sat Mar 28 00:46:10 2009
@@ -50,11 +50,9 @@
// No transcoding for images yet :(
return;
} else if (item.upnp_class.has_prefix (MediaItem.MUSIC_CLASS)) {
- this.l16_transcoder.add_resources (resources, item, this);
- this.mp3_transcoder.add_resources (resources, item, this);
+ this.add_audio_resources (resources, item);
} else {
- this.mp2ts_sd_transcoder.add_resources (resources, item, this);
- this.mp2ts_hd_transcoder.add_resources (resources, item, this);
+ this.add_video_resources (resources, item);
}
}
@@ -73,5 +71,19 @@
target);
}
}
+
+ private void add_audio_resources (ArrayList<DIDLLiteResource?> resources,
+ MediaItem item)
+ throws Error {
+ this.l16_transcoder.add_resources (resources, item, this);
+ this.mp3_transcoder.add_resources (resources, item, this);
+ }
+
+ private void add_video_resources (ArrayList<DIDLLiteResource?> resources,
+ MediaItem item)
+ throws Error {
+ this.mp2ts_sd_transcoder.add_resources (resources, item, this);
+ this.mp2ts_hd_transcoder.add_resources (resources, item, this);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]