rygel r550 - trunk/src/rygel



Author: zeeshanak
Date: Mon Feb  9 22:28:38 2009
New Revision: 550
URL: http://svn.gnome.org/viewvc/rygel?rev=550&view=rev

Log:
Make sure we really found the object.

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:38 2009
@@ -78,6 +78,12 @@
     }
 
     private void got_media_object () {
+        if (this.media_object == null) {
+            this.handle_error (
+                new ContentDirectoryError.NO_SUCH_OBJECT ("No such object"));
+            return;
+        }
+
         if (this.fetch_metadata) {
             // BrowseMetadata
             this.handle_metadata_request ();



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