rygel r760 - trunk/src/rygel



Author: zeeshanak
Date: Sat Mar 28 00:45:43 2009
New Revision: 760
URL: http://svn.gnome.org/viewvc/rygel?rev=760&view=rev

Log:
TranscoderBin.post_error is now static.

Modified:
   trunk/src/rygel/rygel-l16-transcoder-bin.vala
   trunk/src/rygel/rygel-mp2ts-transcoder-bin.vala
   trunk/src/rygel/rygel-mp3-transcoder-bin.vala
   trunk/src/rygel/rygel-transcoder.vala

Modified: trunk/src/rygel/rygel-l16-transcoder-bin.vala
==============================================================================
--- trunk/src/rygel/rygel-l16-transcoder-bin.vala	(original)
+++ trunk/src/rygel/rygel-l16-transcoder-bin.vala	Sat Mar 28 00:45:43 2009
@@ -55,10 +55,11 @@
         }
 
         if (new_pad.link (enc_pad) != PadLinkReturn.OK) {
-            this.post_error (new LiveResponseError.LINK (
-                                        "Failed to link pad %s to %s",
-                                        new_pad.name,
-                                        enc_pad.name));
+            TranscoderBin.post_error (this,
+                                      new LiveResponseError.LINK (
+                                                "Failed to link pad %s to %s",
+                                                new_pad.name,
+                                                enc_pad.name));
             return;
         }
     }

Modified: trunk/src/rygel/rygel-mp2ts-transcoder-bin.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder-bin.vala	(original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder-bin.vala	Sat Mar 28 00:45:43 2009
@@ -79,10 +79,11 @@
         encoder.link (this.muxer);
 
         if (new_pad.link (enc_pad) != PadLinkReturn.OK) {
-            this.post_error (new LiveResponseError.LINK (
-                             "Failed to link pad %s to %s",
-                             new_pad.name,
-                             enc_pad.name));
+            TranscoderBin.post_error (this,
+                                      new LiveResponseError.LINK (
+                                                "Failed to link pad %s to %s",
+                                                new_pad.name,
+                                                enc_pad.name));
             return;
         }
     }

Modified: trunk/src/rygel/rygel-mp3-transcoder-bin.vala
==============================================================================
--- trunk/src/rygel/rygel-mp3-transcoder-bin.vala	(original)
+++ trunk/src/rygel/rygel-mp3-transcoder-bin.vala	Sat Mar 28 00:45:43 2009
@@ -60,10 +60,11 @@
         }
 
         if (new_pad.link (enc_pad) != PadLinkReturn.OK) {
-            this.post_error (new LiveResponseError.LINK (
-                                        "Failed to link pad %s to %s",
-                                        new_pad.name,
-                                        enc_pad.name));
+            TranscoderBin.post_error (this,
+                                      new LiveResponseError.LINK (
+                                                "Failed to link pad %s to %s",
+                                                new_pad.name,
+                                                enc_pad.name));
             return;
         }
     }

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:43 2009
@@ -93,8 +93,8 @@
         return element;
     }
 
-    protected void post_error (Error error) {
-        Message msg = new Message.error (this, error, error.message);
-        this.post_message (msg);
+    protected static void post_error (Element dest, Error error) {
+        Message msg = new Message.error (dest, error, error.message);
+        dest.post_message (msg);
     }
 }



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