[rygel-gst-0-10-plugins] Prevent critical when saving video item
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-gst-0-10-plugins] Prevent critical when saving video item
- Date: Sat, 16 Feb 2013 14:46:53 +0000 (UTC)
commit f7a33db1426d5152bf3a94418422ccc7dbd2fa58
Author: Jens Georg <mail jensge org>
Date: Sat Feb 16 15:35:12 2013 +0100
Prevent critical when saving video item
src/media-export/rygel-media-export-media-cache.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-media-cache.c
b/src/media-export/rygel-media-export-media-cache.c
index f34736a..b767457 100644
--- a/src/media-export/rygel-media-export-media-cache.c
+++ b/src/media-export/rygel-media-export-media-cache.c
@@ -1356,7 +1356,12 @@ rygel_media_export_media_cache_save_metadata (RygelMediaExportMediaCache *self,
if (RYGEL_IS_VIDEO_ITEM (item)) {
RygelVideoItem *video_item = RYGEL_VIDEO_ITEM (item);
- g_value_set_string (&(values[5]), rygel_video_item_get_author (video_item));
+ const char *author = rygel_video_item_get_author (video_item);
+ if (author) {
+ g_value_unset (&(values[5]));
+ g_value_init (&(values[5]), G_TYPE_STRING);
+ g_value_set_string (&(values[5]), author);
+ }
}
}
inner_error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]