rygel r662 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r662 - trunk/src/rygel
- Date: Sun, 15 Mar 2009 19:01:22 +0000 (UTC)
Author: zeeshanak
Date: Sun Mar 15 19:01:22 2009
New Revision: 662
URL: http://svn.gnome.org/viewvc/rygel?rev=662&view=rev
Log:
HTTPServer creates transcoder given the actual src.
Modified:
trunk/src/rygel/rygel-http-server.vala
Modified: trunk/src/rygel/rygel-http-server.vala
==============================================================================
--- trunk/src/rygel/rygel-http-server.vala (original)
+++ trunk/src/rygel/rygel-http-server.vala Sun Mar 15 19:01:22 2009
@@ -26,6 +26,10 @@
using GUPnP;
using Gee;
+internal errordomain Rygel.HTTPServerError {
+ NO_TRANSCODER
+}
+
public class Rygel.HTTPServer : GLib.Object, Rygel.StateMachine {
private const string SERVER_PATH_PREFIX = "/RygelHTTPServer";
private string path_root;
@@ -89,6 +93,17 @@
return resources;
}
+ internal Element get_transoding_src (Element src,
+ string target) throws Error {
+ if (target == "video/mpeg") {
+ return new TranscodeSrc (src);
+ } else {
+ throw new HTTPServerError.NO_TRANSCODER (
+ "No transcoder available for target format '%s'",
+ target);
+ }
+ }
+
private bool http_res_present (ArrayList<DIDLLiteResource?> res_list) {
bool present = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]