[rygel] core: 'yield' all the way
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: 'yield' all the way
- Date: Tue, 10 Nov 2009 14:22:54 +0000 (UTC)
commit d0a129a2d8eb4aaf99f9ecc7be8ce615f5ce0ba6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Nov 9 20:56:10 2009 +0200
core: 'yield' all the way
src/rygel/rygel-browse.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-browse.vala b/src/rygel/rygel-browse.vala
index 5f4a23d..659d4ad 100644
--- a/src/rygel/rygel-browse.vala
+++ b/src/rygel/rygel-browse.vala
@@ -72,7 +72,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
yield this.parse_args ();
}
- private void got_media_object () {
+ private async void got_media_object () {
if (this.media_object == null) {
this.handle_error (
new ContentDirectoryError.NO_SUCH_OBJECT ("No such object"));
@@ -92,7 +92,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
if (this.object_id == this.root_container.id) {
this.media_object = this.root_container;
- this.got_media_object ();
+ yield this.got_media_object ();
return;
}
@@ -105,7 +105,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
return;
}
- this.got_media_object ();
+ yield this.got_media_object ();
}
private void handle_metadata_request () {
@@ -129,7 +129,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
this.conclude ();
}
- private void handle_children_request () {
+ private async void handle_children_request () {
if (!(this.media_object is MediaContainer)) {
this.handle_error (
new ContentDirectoryError.NO_SUCH_OBJECT ("No such object"));
@@ -145,7 +145,7 @@ internal class Rygel.Browse: GLib.Object, Rygel.StateMachine {
this.requested_count = this.total_matches;
}
- this.fetch_children.begin ();
+ yield this.fetch_children ();
}
private async void parse_args () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]