[rygel] media-export: Remove awkward error-handling
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Remove awkward error-handling
- Date: Mon, 7 Jun 2010 14:27:40 +0000 (UTC)
commit 08481667848b90aa17c33c6c6db8d88328176436
Author: Jens Georg <mail jensge org>
Date: Sat May 15 00:53:18 2010 +0200
media-export: Remove awkward error-handling
Signalling error to subscribers is now done in extract_next anyway.
.../rygel-media-export-metadata-extractor.vala | 22 +++++--------------
1 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
index b86db73..904490e 100644
--- a/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
+++ b/src/plugins/media-export/rygel-media-export-metadata-extractor.vala
@@ -300,22 +300,12 @@ public class Rygel.MediaExport.MetadataExtractor: GLib.Object {
var file = this.file_queue.peek_head ();
FileInfo file_info;
- try {
- file_info = file.query_info (FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
- + "," +
- FILE_ATTRIBUTE_STANDARD_SIZE + "," +
- FILE_ATTRIBUTE_TIME_MODIFIED,
- FileQueryInfoFlags.NONE,
- null);
- } catch (Error error) {
- warning (_("Failed to query content type for '%s'"),
- file.get_uri ());
-
- // signal error to parent
- this.error (file, error);
-
- throw error;
- }
+ file_info = file.query_info (FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE
+ + "," +
+ FILE_ATTRIBUTE_STANDARD_SIZE + "," +
+ FILE_ATTRIBUTE_TIME_MODIFIED,
+ FileQueryInfoFlags.NONE,
+ null);
weak string content_type = file_info.get_content_type ();
weak string mime = g_content_type_get_mime_type (content_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]