[rygel] core,media-export,tracker: Specific class for photos
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core,media-export,tracker: Specific class for photos
- Date: Thu, 1 Apr 2010 22:54:59 +0000 (UTC)
commit 6472afc2b7c506f5087684259a7b24abc534da2f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Mar 23 17:14:53 2010 +0200
core,media-export,tracker: Specific class for photos
Most images rygel will deal with are photos anyway and XBox only deals
with this specific class so lets just use that instead of generic 'image'.
.../media-export/rygel-media-export-item.vala | 4 ++--
.../rygel-tracker-picture-item-factory.vala | 2 +-
src/rygel/rygel-media-item.vala | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index e310e74..75ba2c6 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -44,7 +44,7 @@ public class Rygel.MediaExportItem : Rygel.MediaItem {
} else if (content_type.has_prefix ("audio/")) {
item_class = MediaItem.AUDIO_CLASS;
} else if (content_type.has_prefix ("image/")) {
- item_class = MediaItem.IMAGE_CLASS;
+ item_class = MediaItem.PHOTO_CLASS;
}
if (item_class == null) {
@@ -75,7 +75,7 @@ public class Rygel.MediaExportItem : Rygel.MediaItem {
if (!tag_list.get_string (TAG_AUDIO_CODEC, out codec)) {
if (tag_list.get_int (MetadataExtractor.TAG_RYGEL_WIDTH, out width) ||
tag_list.get_int (MetadataExtractor.TAG_RYGEL_HEIGHT, out height)) {
- class_guessed = MediaItem.IMAGE_CLASS;
+ class_guessed = MediaItem.PHOTO_CLASS;
} else {
// if it has width and height and a duration, assume
// it is a video (to capture the MPEG TS without audio
diff --git a/src/plugins/tracker/rygel-tracker-picture-item-factory.vala b/src/plugins/tracker/rygel-tracker-picture-item-factory.vala
index 8ca0b94..8dbe436 100644
--- a/src/plugins/tracker/rygel-tracker-picture-item-factory.vala
+++ b/src/plugins/tracker/rygel-tracker-picture-item-factory.vala
@@ -38,7 +38,7 @@ public class Rygel.TrackerPictureItemFactory : Rygel.TrackerItemFactory {
public TrackerPictureItemFactory () {
base (CATEGORY,
- MediaItem.IMAGE_CLASS,
+ MediaItem.PHOTO_CLASS,
PHOTO_RESOURCES_CLASS_PATH,
Environment.get_user_special_dir (UserDirectory.PICTURES));
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 0f10a6d..68b9d70 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -33,6 +33,7 @@ private errordomain Rygel.MediaItemError {
*/
public class Rygel.MediaItem : MediaObject {
public static const string IMAGE_CLASS = "object.item.imageItem";
+ public static const string PHOTO_CLASS = "object.item.imageItem.photo";
public static const string VIDEO_CLASS = "object.item.videoItem";
public static const string AUDIO_CLASS = "object.item.audioItem";
public static const string MUSIC_CLASS = "object.item.audioItem.musicTrack";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]