[rygel] core: Very minor refactoring
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Very minor refactoring
- Date: Tue, 8 Sep 2009 16:23:22 +0000 (UTC)
commit ef10b15f1d5b28a874b054c87d6581a56c9dbc40
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Sep 6 02:51:31 2009 +0300
core: Very minor refactoring
src/rygel/rygel-http-server.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala
index 0d06b7e..0a2bc07 100644
--- a/src/rygel/rygel-http-server.vala
+++ b/src/rygel/rygel-http-server.vala
@@ -96,7 +96,7 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
bool present = false;
foreach (var uri in item.uris) {
- if (uri.has_prefix ("http:")) {
+ if (this.is_http_uri (uri)) {
present = true;
break;
@@ -106,6 +106,10 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
return present;
}
+ private bool is_http_uri (string uri) {
+ return uri.has_prefix ("http:");
+ }
+
private void on_cancelled (Cancellable cancellable) {
// Cancel all state machines
this.cancellable.cancel ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]