rygel r549 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r549 - trunk/src/rygel
- Date: Mon, 9 Feb 2009 22:28:33 +0000 (UTC)
Author: zeeshanak
Date: Mon Feb 9 22:28:33 2009
New Revision: 549
URL: http://svn.gnome.org/viewvc/rygel?rev=549&view=rev
Log:
Some refactoring to prepare fetch_media_object for async calls.
Modified:
trunk/src/rygel/rygel-browse.vala
Modified: trunk/src/rygel/rygel-browse.vala
==============================================================================
--- trunk/src/rygel/rygel-browse.vala (original)
+++ trunk/src/rygel/rygel-browse.vala Mon Feb 9 22:28:33 2009
@@ -74,10 +74,10 @@
/* Handle incoming arguments */
this.parse_args ();
- if (!this.fetch_media_object ()) {
- return;
- }
+ this.fetch_media_object ();
+ }
+ private void got_media_object () {
if (this.fetch_metadata) {
// BrowseMetadata
this.handle_metadata_request ();
@@ -87,11 +87,12 @@
}
}
- private bool fetch_media_object () {
+ private void fetch_media_object () {
if (this.object_id == this.root_container.id) {
this.media_object = this.root_container;
- return true;
+ this.got_media_object ();
+ return;
}
try {
@@ -99,10 +100,10 @@
this.root_container.find_object (this.object_id);
} catch (Error err) {
this.handle_error (err);
- return false;
+ return;
}
- return true;
+ this.got_media_object ();
}
private void handle_metadata_request () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]