rygel r459 - in trunk/src: plugins/test rygel



Author: zeeshanak
Date: Mon Jan 19 15:56:06 2009
New Revision: 459
URL: http://svn.gnome.org/viewvc/rygel?rev=459&view=rev

Log:
Rename StreamingResponse to LiveResponse.

Added:
   trunk/src/rygel/rygel-live-response.vala
      - copied, changed from r458, /trunk/src/rygel/rygel-streaming-response.vala
Removed:
   trunk/src/rygel/rygel-streaming-response.vala
Modified:
   trunk/src/plugins/test/rygel-test-audio-item.vala
   trunk/src/plugins/test/rygel-test-video-item.vala
   trunk/src/rygel/Makefile.am
   trunk/src/rygel/rygel-http-server.vala

Modified: trunk/src/plugins/test/rygel-test-audio-item.vala
==============================================================================
--- trunk/src/plugins/test/rygel-test-audio-item.vala	(original)
+++ trunk/src/plugins/test/rygel-test-audio-item.vala	Mon Jan 19 15:56:06 2009
@@ -54,7 +54,7 @@
         Element encoder = ElementFactory.make ("wavenc", null);
 
         if (src == null || encoder == null) {
-            throw new StreamingResponseError.MISSING_PLUGIN (
+            throw new LiveResponseError.MISSING_PLUGIN (
                                     "Required plugin missing");
         }
 

Modified: trunk/src/plugins/test/rygel-test-video-item.vala
==============================================================================
--- trunk/src/plugins/test/rygel-test-video-item.vala	(original)
+++ trunk/src/plugins/test/rygel-test-video-item.vala	Mon Jan 19 15:56:06 2009
@@ -55,7 +55,7 @@
         Element muxer = ElementFactory.make ("mpegtsmux", null);
 
         if (src == null || muxer == null || encoder == null) {
-            throw new StreamingResponseError.MISSING_PLUGIN (
+            throw new LiveResponseError.MISSING_PLUGIN (
                                 "Required plugin missing");
         }
 

Modified: trunk/src/rygel/Makefile.am
==============================================================================
--- trunk/src/rygel/Makefile.am	(original)
+++ trunk/src/rygel/Makefile.am	Mon Jan 19 15:56:06 2009
@@ -39,8 +39,8 @@
                 rygel-http-server.h \
                 rygel-http-response.c \
                 rygel-http-response.h \
-                rygel-streaming-response.c \
-                rygel-streaming-response.h \
+                rygel-live-response.c \
+                rygel-live-response.h \
 		rygel-seekable-response.c \
 		rygel-seekable-response.h \
 		rygel-resource-info.h \
@@ -81,8 +81,8 @@
 		rygel-http-server.h \
 		rygel-http-response.c \
 		rygel-http-response.h \
-		rygel-streaming-response.c \
-		rygel-streaming-response.h \
+		rygel-live-response.c \
+		rygel-live-response.h \
 		rygel-seekable-response.c \
 		rygel-seekable-response.h \
 		rygel-resource-info.h \
@@ -121,7 +121,7 @@
 		rygel-media-receiver-registrar.vala \
 		rygel-http-server.vala \
 		rygel-http-response.vala \
-		rygel-streaming-response.vala \
+		rygel-live-response.vala \
 		rygel-seekable-response.vala \
 		rygel-resource-info.vala \
 		rygel-icon-info.vala \

Modified: trunk/src/rygel/rygel-http-server.vala
==============================================================================
--- trunk/src/rygel/rygel-http-server.vala	(original)
+++ trunk/src/rygel/rygel-http-server.vala	Mon Jan 19 15:56:06 2009
@@ -49,7 +49,7 @@
 
     public HTTPServer (GUPnP.Context context, string name) {
         this.context = context;
-        this.responses = new ArrayList<StreamingResponse> ();
+        this.responses = new ArrayList<LiveResponse> ();
 
         this.path_root = SERVER_PATH_PREFIX + "/" + name;
 
@@ -76,10 +76,10 @@
 
     private void stream_from_gst_source (Element#     src,
                                          Soup.Message msg) throws Error {
-        var response = new StreamingResponse (this.context.server,
-                                              msg,
-                                              "RygelStreamingResponse",
-                                              src);
+        var response = new LiveResponse (this.context.server,
+                                         msg,
+                                         "RygelLiveResponse",
+                                         src);
         response.start ();
         response.ended += on_response_ended;
 

Copied: trunk/src/rygel/rygel-live-response.vala (from r458, /trunk/src/rygel/rygel-streaming-response.vala)
==============================================================================
--- /trunk/src/rygel/rygel-streaming-response.vala	(original)
+++ trunk/src/rygel/rygel-live-response.vala	Mon Jan 19 15:56:06 2009
@@ -29,22 +29,22 @@
 using Gee;
 using Gst;
 
-public errordomain Rygel.StreamingResponseError {
+public errordomain Rygel.LiveResponseError {
     MISSING_PLUGIN,
     LINK
 }
 
-public class Rygel.StreamingResponse : Rygel.HTTPResponse {
+public class Rygel.LiveResponse : Rygel.HTTPResponse {
     private const string SINK_NAME = "fakesink";
 
     private Pipeline pipeline;
 
     private AsyncQueue<Buffer> buffers;
 
-    public StreamingResponse (Soup.Server  server,
-                              Soup.Message msg,
-                              string       name,
-                              Element      src) throws Error {
+    public LiveResponse (Soup.Server  server,
+                         Soup.Message msg,
+                         string       name,
+                         Element      src) throws Error {
         base (server, msg, false);
 
         this.msg.response_headers.set_encoding (Soup.Encoding.CHUNKED);
@@ -80,7 +80,7 @@
         dynamic Element sink = ElementFactory.make ("fakesink", SINK_NAME);
 
         if (sink == null) {
-            throw new StreamingResponseError.MISSING_PLUGIN (
+            throw new LiveResponseError.MISSING_PLUGIN (
                                     "Required plugin 'fakesink' missing");
         }
 
@@ -98,10 +98,9 @@
         } else {
             // static pads? easy!
             if (!src.link (sink)) {
-                throw new StreamingResponseError.LINK (
-                                               "Failed to link %s to %s",
-                                               src.name,
-                                               sink.name);
+                throw new LiveResponseError.LINK ("Failed to link %s to %s",
+                                                  src.name,
+                                                  sink.name);
             }
         }
 



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