[rygel] core: Some coding-style fixes
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Some coding-style fixes
- Date: Sat, 9 Apr 2011 02:09:58 +0000 (UTC)
commit 12d44710ac54c68905176ed2fe926188abc8f0b9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Apr 9 04:49:01 2011 +0300
core: Some coding-style fixes
src/rygel/rygel-http-response.vala | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/rygel/rygel-http-response.vala b/src/rygel/rygel-http-response.vala
index 98a4026..4cc137e 100644
--- a/src/rygel/rygel-http-response.vala
+++ b/src/rygel/rygel-http-response.vala
@@ -137,8 +137,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
this.end (true, Soup.KnownStatusCode.CANCELLED);
}
- private void prepare_pipeline (string name,
- Element src) throws Error {
+ private void prepare_pipeline (string name, Element src) throws Error {
var sink = new HTTPGstSink (this);
this.pipeline = new Pipeline (name);
@@ -163,8 +162,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
this.bus_watch_id = bus.add_watch (this.bus_handler);
}
- private void src_pad_added (Element src,
- Pad src_pad) {
+ private void src_pad_added (Element src, Pad src_pad) {
var caps = src_pad.get_caps ();
var sink = this.pipeline.get_by_name (HTTPGstSink.NAME);
@@ -178,6 +176,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
depay.name,
sink.name);
this.end (false, KnownStatusCode.NONE);
+
return;
}
@@ -191,6 +190,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
src_pad.name,
sink_pad.name);
this.end (false, KnownStatusCode.NONE);
+
return;
}
@@ -199,8 +199,7 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
}
}
- private bool bus_handler (Gst.Bus bus,
- Gst.Message message) {
+ private bool bus_handler (Gst.Bus bus, Gst.Message message) {
bool ret = true;
if (message.type == MessageType.EOS) {
@@ -244,11 +243,11 @@ internal class Rygel.HTTPResponse : GLib.Object, Rygel.StateMachine {
}
if (!ret) {
- Idle.add_full (this.priority, () => {
- this.end (false, KnownStatusCode.NONE);
+ Idle.add_full (this.priority, () => {
+ this.end (false, KnownStatusCode.NONE);
- return false;
- });
+ return false;
+ });
}
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]