/* rygel-media-export-item-factory.c generated by valac 0.26.0.92-9bcc61c, the Vala compiler
 * generated from rygel-media-export-item-factory.vala, do not modify */

/*
 * Copyright (C) 2008 Zeeshan Ali <zeenix@gmail.com>.
 * Copyright (C) 2008 Nokia Corporation.
 * Copyright (C) 2012,2013 Intel Corporation.
 *
 * Author: Zeeshan Ali <zeenix@gmail.com>
 *         Jens Georg <jensg@openismus.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <rygel-server.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <libgupnp-av/gupnp-av.h>
#include <gst/pbutils/pbutils.h>
#include <libgupnp-dlna/gupnp-dlna.h>
#include <gst/gst.h>
#include <gst/tag/tag.h>
#include <libsoup/soup.h>


#define RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM (rygel_media_export_video_item_get_type ())
#define RYGEL_MEDIA_EXPORT_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM, RygelMediaExportVideoItem))
#define RYGEL_MEDIA_EXPORT_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM, RygelMediaExportVideoItemClass))
#define RYGEL_MEDIA_EXPORT_IS_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM))
#define RYGEL_MEDIA_EXPORT_IS_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM))
#define RYGEL_MEDIA_EXPORT_VIDEO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM, RygelMediaExportVideoItemClass))

typedef struct _RygelMediaExportVideoItem RygelMediaExportVideoItem;
typedef struct _RygelMediaExportVideoItemClass RygelMediaExportVideoItemClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM (rygel_media_export_photo_item_get_type ())
#define RYGEL_MEDIA_EXPORT_PHOTO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM, RygelMediaExportPhotoItem))
#define RYGEL_MEDIA_EXPORT_PHOTO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM, RygelMediaExportPhotoItemClass))
#define RYGEL_MEDIA_EXPORT_IS_PHOTO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM))
#define RYGEL_MEDIA_EXPORT_IS_PHOTO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM))
#define RYGEL_MEDIA_EXPORT_PHOTO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM, RygelMediaExportPhotoItemClass))

typedef struct _RygelMediaExportPhotoItem RygelMediaExportPhotoItem;
typedef struct _RygelMediaExportPhotoItemClass RygelMediaExportPhotoItemClass;

#define RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM (rygel_media_export_music_item_get_type ())
#define RYGEL_MEDIA_EXPORT_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM, RygelMediaExportMusicItem))
#define RYGEL_MEDIA_EXPORT_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM, RygelMediaExportMusicItemClass))
#define RYGEL_MEDIA_EXPORT_IS_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM))
#define RYGEL_MEDIA_EXPORT_IS_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM))
#define RYGEL_MEDIA_EXPORT_MUSIC_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM, RygelMediaExportMusicItemClass))

typedef struct _RygelMediaExportMusicItem RygelMediaExportMusicItem;
typedef struct _RygelMediaExportMusicItemClass RygelMediaExportMusicItemClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM (rygel_media_export_playlist_item_get_type ())
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM, RygelMediaExportPlaylistItem))
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM, RygelMediaExportPlaylistItemClass))
#define RYGEL_MEDIA_EXPORT_IS_PLAYLIST_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM))
#define RYGEL_MEDIA_EXPORT_IS_PLAYLIST_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM))
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ITEM, RygelMediaExportPlaylistItemClass))

typedef struct _RygelMediaExportPlaylistItem RygelMediaExportPlaylistItem;
typedef struct _RygelMediaExportPlaylistItemClass RygelMediaExportPlaylistItemClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _gst_tag_list_unref0(var) ((var == NULL) ? NULL : (var = (gst_tag_list_unref (var), NULL)))

#define RYGEL_MEDIA_EXPORT_TYPE_UPDATABLE_OBJECT (rygel_media_export_updatable_object_get_type ())
#define RYGEL_MEDIA_EXPORT_UPDATABLE_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_UPDATABLE_OBJECT, RygelMediaExportUpdatableObject))
#define RYGEL_MEDIA_EXPORT_IS_UPDATABLE_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_UPDATABLE_OBJECT))
#define RYGEL_MEDIA_EXPORT_UPDATABLE_OBJECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_MEDIA_EXPORT_TYPE_UPDATABLE_OBJECT, RygelMediaExportUpdatableObjectIface))

typedef struct _RygelMediaExportUpdatableObject RygelMediaExportUpdatableObject;
typedef struct _RygelMediaExportUpdatableObjectIface RygelMediaExportUpdatableObjectIface;
typedef struct _RygelMediaExportMusicItemPrivate RygelMediaExportMusicItemPrivate;
#define _gst_sample_unref0(var) ((var == NULL) ? NULL : (var = (gst_sample_unref (var), NULL)))
#define _gst_date_time_unref0(var) ((var == NULL) ? NULL : (var = (gst_date_time_unref (var), NULL)))
#define __vala_SoupDate_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupDate_free (var), NULL)))

struct _RygelMediaExportUpdatableObjectIface {
	GTypeInterface parent_iface;
	void (*commit_custom) (RygelMediaExportUpdatableObject* self, gboolean override_guarded, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*commit_custom_finish) (RygelMediaExportUpdatableObject* self, GAsyncResult* _res_, GError** error);
};

struct _RygelMediaExportMusicItem {
	RygelMusicItem parent_instance;
	RygelMediaExportMusicItemPrivate * priv;
	gint disc;
};

struct _RygelMediaExportMusicItemClass {
	RygelMusicItemClass parent_class;
};



RygelMediaFileItem* rygel_media_export_item_factory_create_simple (RygelMediaContainer* parent, GFile* file, GFileInfo* info);
gchar* rygel_media_export_media_cache_get_id (GFile* file);
RygelMediaExportVideoItem* rygel_media_export_video_item_new (const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
RygelMediaExportVideoItem* rygel_media_export_video_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
GType rygel_media_export_video_item_get_type (void) G_GNUC_CONST;
RygelMediaExportPhotoItem* rygel_media_export_photo_item_new (const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
RygelMediaExportPhotoItem* rygel_media_export_photo_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
GType rygel_media_export_photo_item_get_type (void) G_GNUC_CONST;
RygelMediaExportMusicItem* rygel_media_export_music_item_new (const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
RygelMediaExportMusicItem* rygel_media_export_music_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
GType rygel_media_export_music_item_get_type (void) G_GNUC_CONST;
RygelMediaFileItem* rygel_media_export_item_factory_create_playlist_item (GFile* file, RygelMediaContainer* parent, const gchar* fallback_title);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
GType rygel_media_export_playlist_item_get_type (void) G_GNUC_CONST;
RygelMediaExportPlaylistItem* rygel_media_export_playlist_item_new (const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
RygelMediaExportPlaylistItem* rygel_media_export_playlist_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class);
RygelMediaFileItem* rygel_media_export_item_factory_create_from_info (RygelMediaContainer* parent, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GFileInfo* file_info);
RygelMediaFileItem* rygel_media_export_item_factory_fill_photo_item (RygelMediaExportPhotoItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererVideoInfo* video_info, GFileInfo* file_info);
RygelMediaFileItem* rygel_media_export_item_factory_fill_video_item (RygelMediaExportVideoItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererVideoInfo* video_info, GstDiscovererAudioInfo* audio_info, GFileInfo* file_info);
RygelMediaFileItem* rygel_media_export_item_factory_fill_music_item (RygelMediaExportMusicItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererAudioInfo* audio_info, GFileInfo* file_info);
void rygel_media_export_item_factory_fill_audio_item (RygelAudioItem* item, GstDiscovererInfo* info, GstDiscovererAudioInfo* audio_info);
void rygel_media_export_item_factory_fill_media_item (RygelMediaFileItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GFileInfo* file_info);
GType rygel_media_export_updatable_object_get_type (void) G_GNUC_CONST;
static void _vala_SoupDate_free (SoupDate* self);


RygelMediaFileItem* rygel_media_export_item_factory_create_simple (RygelMediaContainer* parent, GFile* file, GFileInfo* info) {
	RygelMediaFileItem* result = NULL;
	gchar* title = NULL;
	GFileInfo* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	RygelMediaFileItem* item = NULL;
	gchar* mime = NULL;
	GFileInfo* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	RygelMediaFileItem* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	RygelMediaFileItem* _tmp40_ = NULL;
	GFileInfo* _tmp41_ = NULL;
	gint64 _tmp42_ = 0LL;
	RygelMediaFileItem* _tmp43_ = NULL;
	GFileInfo* _tmp44_ = NULL;
	guint64 _tmp45_ = 0ULL;
	RygelMediaFileItem* _tmp46_ = NULL;
	GFile* _tmp47_ = NULL;
	gchar* _tmp48_ = NULL;
	gchar* _tmp49_ = NULL;
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 37 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = info;
#line 37 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = g_file_info_get_display_name (_tmp0_);
#line 37 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 37 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	title = _tmp2_;
#line 39 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp3_ = info;
#line 39 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = g_file_info_get_content_type (_tmp3_);
#line 39 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp5_ = g_content_type_get_mime_type (_tmp4_);
#line 39 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	mime = _tmp5_;
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp6_ = mime;
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = g_str_has_prefix (_tmp6_, "video/");
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp7_) {
#line 199 "rygel-media-export-item-factory.c"
		GFile* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		RygelMediaContainer* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		RygelMediaExportVideoItem* _tmp13_ = NULL;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp8_ = file;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp9_ = rygel_media_export_media_cache_get_id (_tmp8_);
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp10_ = _tmp9_;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp11_ = parent;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp12_ = title;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = rygel_media_export_video_item_new (_tmp10_, _tmp11_, _tmp12_, RYGEL_VIDEO_ITEM_UPNP_CLASS);
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (item);
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		item = (RygelMediaFileItem*) _tmp13_;
#line 42 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp10_);
#line 224 "rygel-media-export-item-factory.c"
	} else {
		const gchar* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp14_ = mime;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = g_str_has_prefix (_tmp14_, "image/");
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp15_) {
#line 234 "rygel-media-export-item-factory.c"
			GFile* _tmp16_ = NULL;
			gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			RygelMediaContainer* _tmp19_ = NULL;
			const gchar* _tmp20_ = NULL;
			RygelMediaExportPhotoItem* _tmp21_ = NULL;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp16_ = file;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp17_ = rygel_media_export_media_cache_get_id (_tmp16_);
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp18_ = _tmp17_;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp19_ = parent;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp20_ = title;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp21_ = rygel_media_export_photo_item_new (_tmp18_, _tmp19_, _tmp20_, RYGEL_PHOTO_ITEM_UPNP_CLASS);
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_object_unref0 (item);
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			item = (RygelMediaFileItem*) _tmp21_;
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (_tmp18_);
#line 259 "rygel-media-export-item-factory.c"
		} else {
			gboolean _tmp22_ = FALSE;
			const gchar* _tmp23_ = NULL;
			gboolean _tmp24_ = FALSE;
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp23_ = mime;
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp24_ = g_str_has_prefix (_tmp23_, "audio/");
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp24_) {
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp22_ = TRUE;
#line 272 "rygel-media-export-item-factory.c"
			} else {
				const gchar* _tmp25_ = NULL;
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp25_ = mime;
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp22_ = g_strcmp0 (_tmp25_, "application/ogg") == 0;
#line 279 "rygel-media-export-item-factory.c"
			}
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp22_) {
#line 283 "rygel-media-export-item-factory.c"
				GFile* _tmp26_ = NULL;
				gchar* _tmp27_ = NULL;
				gchar* _tmp28_ = NULL;
				RygelMediaContainer* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
				RygelMediaExportMusicItem* _tmp31_ = NULL;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp26_ = file;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp27_ = rygel_media_export_media_cache_get_id (_tmp26_);
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp28_ = _tmp27_;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp29_ = parent;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp30_ = title;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp31_ = rygel_media_export_music_item_new (_tmp28_, _tmp29_, _tmp30_, RYGEL_MUSIC_ITEM_UPNP_CLASS);
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (item);
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				item = (RygelMediaFileItem*) _tmp31_;
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_free0 (_tmp28_);
#line 308 "rygel-media-export-item-factory.c"
			} else {
				GFile* _tmp32_ = NULL;
				RygelMediaContainer* _tmp33_ = NULL;
				const gchar* _tmp34_ = NULL;
				RygelMediaFileItem* _tmp35_ = NULL;
				RygelMediaFileItem* _tmp36_ = NULL;
				gchar* _tmp37_ = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp32_ = file;
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp33_ = parent;
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp34_ = title;
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp35_ = rygel_media_export_item_factory_create_playlist_item (_tmp32_, _tmp33_, _tmp34_);
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (item);
#line 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				item = _tmp35_;
#line 49 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp36_ = item;
#line 49 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				if (_tmp36_ == NULL) {
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
					result = NULL;
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
					_g_free0 (mime);
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
					_g_object_unref0 (item);
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
					_g_free0 (title);
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
					return result;
#line 342 "rygel-media-export-item-factory.c"
				}
#line 53 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp37_ = g_strdup ("text/xml");
#line 53 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_free0 (mime);
#line 53 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				mime = _tmp37_;
#line 350 "rygel-media-export-item-factory.c"
			}
		}
	}
#line 56 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp38_ = item;
#line 56 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp39_ = mime;
#line 56 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_file_item_set_mime_type (_tmp38_, _tmp39_);
#line 57 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp40_ = item;
#line 57 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp41_ = info;
#line 57 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp42_ = g_file_info_get_size (_tmp41_);
#line 57 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_file_item_set_size (_tmp40_, (gint64) _tmp42_);
#line 58 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp43_ = item;
#line 58 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp44_ = info;
#line 58 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp45_ = g_file_info_get_attribute_uint64 (_tmp44_, G_FILE_ATTRIBUTE_TIME_MODIFIED);
#line 58 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_set_modified ((RygelMediaObject*) _tmp43_, _tmp45_);
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp46_ = item;
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp47_ = file;
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp48_ = g_file_get_uri (_tmp47_);
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp49_ = _tmp48_;
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_add_uri ((RygelMediaObject*) _tmp46_, _tmp49_);
#line 60 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (_tmp49_);
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	result = item;
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (mime);
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (title);
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return result;
#line 396 "rygel-media-export-item-factory.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 403 "rygel-media-export-item-factory.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_list_free (self);
#line 412 "rygel-media-export-item-factory.c"
}


RygelMediaFileItem* rygel_media_export_item_factory_create_playlist_item (GFile* file, RygelMediaContainer* parent, const gchar* fallback_title) {
	RygelMediaFileItem* result = NULL;
	GError * _inner_error_ = NULL;
#line 65 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 65 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 65 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (fallback_title != NULL, NULL);
#line 425 "rygel-media-export-item-factory.c"
	{
		guint8* contents = NULL;
		gint contents_length1 = 0;
		gint _contents_size_ = 0;
		gboolean _tmp0_ = FALSE;
		GFile* _tmp1_ = NULL;
		guint8* _tmp2_ = NULL;
		gsize _tmp3_;
		gboolean _tmp4_ = FALSE;
		gint i = 0;
		guint8* _tmp13_ = NULL;
		gint _tmp13__length1 = 0;
		gint _tmp14_ = 0;
		guint8 _tmp15_ = 0U;
		GUPnPMediaCollection* didl_s = NULL;
		guint8* _tmp16_ = NULL;
		gint _tmp16__length1 = 0;
		GUPnPMediaCollection* _tmp17_ = NULL;
		gchar* author = NULL;
		GUPnPMediaCollection* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		gchar* _tmp21_ = NULL;
		gchar* title = NULL;
		GUPnPMediaCollection* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gboolean _tmp26_ = FALSE;
		gboolean _tmp27_ = FALSE;
		const gchar* _tmp28_ = NULL;
		const gchar* _tmp33_ = NULL;
		RygelMediaExportPlaylistItem* item = NULL;
		GFile* _tmp36_ = NULL;
		gchar* _tmp37_ = NULL;
		gchar* _tmp38_ = NULL;
		RygelMediaContainer* _tmp39_ = NULL;
		const gchar* _tmp40_ = NULL;
		RygelMediaExportPlaylistItem* _tmp41_ = NULL;
		RygelMediaExportPlaylistItem* _tmp42_ = NULL;
		const gchar* _tmp43_ = NULL;
		RygelMediaExportPlaylistItem* _tmp46_ = NULL;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp1_ = file;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp4_ = g_file_load_contents (_tmp1_, NULL, &_tmp2_, &_tmp3_, NULL, &_inner_error_);
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		contents = (g_free (contents), NULL);
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		contents = _tmp2_;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		contents_length1 = _tmp3_;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_contents_size_ = contents_length1;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp0_ = _tmp4_;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			contents = (g_free (contents), NULL);
#line 486 "rygel-media-export-item-factory.c"
			goto __catch68_g_error;
		}
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (!_tmp0_) {
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			result = NULL;
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			contents = (g_free (contents), NULL);
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			return result;
#line 497 "rygel-media-export-item-factory.c"
		}
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		i = 0;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		while (TRUE) {
#line 503 "rygel-media-export-item-factory.c"
			gboolean _tmp5_ = FALSE;
			guint8* _tmp6_ = NULL;
			gint _tmp6__length1 = 0;
			gint _tmp7_ = 0;
			guint8 _tmp8_ = 0U;
			gboolean _tmp9_ = FALSE;
			gint _tmp12_ = 0;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp6_ = contents;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp6__length1 = contents_length1;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp7_ = i;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp8_ = _tmp6_[_tmp7_];
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp9_ = g_ascii_isspace ((gchar) _tmp8_);
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp9_) {
#line 523 "rygel-media-export-item-factory.c"
				gint _tmp10_ = 0;
				guint8* _tmp11_ = NULL;
				gint _tmp11__length1 = 0;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp10_ = i;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp11_ = contents;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp11__length1 = contents_length1;
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp5_ = _tmp10_ < _tmp11__length1;
#line 535 "rygel-media-export-item-factory.c"
			} else {
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp5_ = FALSE;
#line 539 "rygel-media-export-item-factory.c"
			}
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (!_tmp5_) {
#line 77 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				break;
#line 545 "rygel-media-export-item-factory.c"
			}
#line 78 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp12_ = i;
#line 78 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			i = _tmp12_ + 1;
#line 551 "rygel-media-export-item-factory.c"
		}
#line 81 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = contents;
#line 81 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13__length1 = contents_length1;
#line 81 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp14_ = i;
#line 81 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = _tmp13_[_tmp14_];
#line 81 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp15_ != ((guint8) '<')) {
#line 82 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			result = NULL;
#line 82 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			contents = (g_free (contents), NULL);
#line 82 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			return result;
#line 569 "rygel-media-export-item-factory.c"
		}
#line 85 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16_ = contents;
#line 85 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16__length1 = contents_length1;
#line 85 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp17_ = gupnp_media_collection_new_from_string ((const gchar*) _tmp16_);
#line 85 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		didl_s = _tmp17_;
#line 86 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp18_ = didl_s;
#line 86 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp19_ = gupnp_media_collection_get_author (_tmp18_);
#line 86 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp20_ = _tmp19_;
#line 86 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp21_ = g_strdup (_tmp20_);
#line 86 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		author = _tmp21_;
#line 87 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp22_ = didl_s;
#line 87 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp23_ = gupnp_media_collection_get_title (_tmp22_);
#line 87 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp24_ = _tmp23_;
#line 87 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp25_ = g_strdup (_tmp24_);
#line 87 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		title = _tmp25_;
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp28_ = author;
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp28_ == NULL) {
#line 603 "rygel-media-export-item-factory.c"
			const gchar* _tmp29_ = NULL;
#line 90 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp29_ = title;
#line 90 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp27_ = _tmp29_ == NULL;
#line 609 "rygel-media-export-item-factory.c"
		} else {
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp27_ = FALSE;
#line 613 "rygel-media-export-item-factory.c"
		}
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp27_) {
#line 617 "rygel-media-export-item-factory.c"
			GUPnPMediaCollection* _tmp30_ = NULL;
			GList* _tmp31_ = NULL;
			GList* _tmp32_ = NULL;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp30_ = didl_s;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp31_ = gupnp_media_collection_get_items (_tmp30_);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp32_ = _tmp31_;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp26_ = _tmp32_ == NULL;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			__g_list_free__g_object_unref0_0 (_tmp32_);
#line 631 "rygel-media-export-item-factory.c"
		} else {
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp26_ = FALSE;
#line 635 "rygel-media-export-item-factory.c"
		}
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp26_) {
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			result = NULL;
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (title);
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (author);
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_object_unref0 (didl_s);
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			contents = (g_free (contents), NULL);
#line 92 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			return result;
#line 651 "rygel-media-export-item-factory.c"
		}
#line 95 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp33_ = title;
#line 95 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp33_ == NULL) {
#line 657 "rygel-media-export-item-factory.c"
			const gchar* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp34_ = fallback_title;
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp35_ = g_strdup (_tmp34_);
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (title);
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			title = _tmp35_;
#line 668 "rygel-media-export-item-factory.c"
		}
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp36_ = file;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp37_ = rygel_media_export_media_cache_get_id (_tmp36_);
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp38_ = _tmp37_;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp39_ = parent;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp40_ = title;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp41_ = rygel_media_export_playlist_item_new (_tmp38_, _tmp39_, _tmp40_, RYGEL_PLAYLIST_ITEM_UPNP_CLASS);
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp42_ = _tmp41_;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp38_);
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		item = _tmp42_;
#line 103 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp43_ = author;
#line 103 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp43_ != NULL) {
#line 692 "rygel-media-export-item-factory.c"
			RygelMediaExportPlaylistItem* _tmp44_ = NULL;
			const gchar* _tmp45_ = NULL;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp44_ = item;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp45_ = author;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			rygel_media_object_set_creator ((RygelMediaObject*) _tmp44_, _tmp45_);
#line 701 "rygel-media-export-item-factory.c"
		}
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp46_ = item;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_file_item_set_dlna_profile ((RygelMediaFileItem*) _tmp46_, "DIDL_S");
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = (RygelMediaFileItem*) item;
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (title);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (author);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (didl_s);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		contents = (g_free (contents), NULL);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 719 "rygel-media-export-item-factory.c"
	}
	goto __finally68;
	__catch68_g_error:
	{
		GError* e = NULL;
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		e = _inner_error_;
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_inner_error_ = NULL;
#line 111 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = NULL;
#line 111 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_error_free0 (e);
#line 111 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 735 "rygel-media-export-item-factory.c"
	}
	__finally68:
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_clear_error (&_inner_error_);
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return NULL;
#line 744 "rygel-media-export-item-factory.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 149 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return self ? g_object_ref (self) : NULL;
#line 751 "rygel-media-export-item-factory.c"
}


RygelMediaFileItem* rygel_media_export_item_factory_create_from_info (RygelMediaContainer* parent, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GFileInfo* file_info) {
	RygelMediaFileItem* result = NULL;
	RygelMediaFileItem* item = NULL;
	gchar* id = NULL;
	GFile* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GList* audio_streams = NULL;
	GList* video_streams = NULL;
	GstDiscovererInfo* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GstDiscovererInfo* _tmp4_ = NULL;
	GList* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	GList* _tmp7_ = NULL;
	gboolean _tmp12_ = FALSE;
	GList* _tmp13_ = NULL;
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file_info != NULL, NULL);
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = file;
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = rygel_media_export_media_cache_get_id (_tmp0_);
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	id = _tmp1_;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = info;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp3_ = gst_discoverer_info_get_audio_streams (_tmp2_);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	__g_list_free__g_object_unref0_0 (audio_streams);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	audio_streams = (GList*) _tmp3_;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = info;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp5_ = gst_discoverer_info_get_video_streams (_tmp4_);
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	__g_list_free__g_object_unref0_0 (video_streams);
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	video_streams = (GList*) _tmp5_;
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = audio_streams;
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp7_ == NULL) {
#line 805 "rygel-media-export-item-factory.c"
		GList* _tmp8_ = NULL;
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp8_ = video_streams;
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp6_ = _tmp8_ == NULL;
#line 811 "rygel-media-export-item-factory.c"
	} else {
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp6_ = FALSE;
#line 815 "rygel-media-export-item-factory.c"
	}
#line 130 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp6_) {
#line 819 "rygel-media-export-item-factory.c"
		GFile* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp9_ = file;
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp10_ = g_file_get_uri (_tmp9_);
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp11_ = _tmp10_;
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		g_debug ("%s had neither audio nor video/picture " "streams. Ignoring.", _tmp11_);
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp11_);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = NULL;
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		__g_list_free__g_object_unref0_0 (video_streams);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		__g_list_free__g_object_unref0_0 (audio_streams);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (id);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (item);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 845 "rygel-media-export-item-factory.c"
	}
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp13_ = audio_streams;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp13_ == NULL) {
#line 851 "rygel-media-export-item-factory.c"
		GList* _tmp14_ = NULL;
		gconstpointer _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp14_ = video_streams;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = _tmp14_->data;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16_ = gst_discoverer_video_info_is_image ((GstDiscovererVideoInfo*) _tmp15_);
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp12_ = _tmp16_;
#line 863 "rygel-media-export-item-factory.c"
	} else {
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp12_ = FALSE;
#line 867 "rygel-media-export-item-factory.c"
	}
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp12_) {
#line 871 "rygel-media-export-item-factory.c"
		const gchar* _tmp17_ = NULL;
		RygelMediaContainer* _tmp18_ = NULL;
		RygelMediaExportPhotoItem* _tmp19_ = NULL;
		RygelMediaFileItem* _tmp20_ = NULL;
		GFile* _tmp21_ = NULL;
		GstDiscovererInfo* _tmp22_ = NULL;
		GUPnPDLNAProfile* _tmp23_ = NULL;
		GList* _tmp24_ = NULL;
		gconstpointer _tmp25_ = NULL;
		GFileInfo* _tmp26_ = NULL;
		RygelMediaFileItem* _tmp27_ = NULL;
#line 139 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp17_ = id;
#line 139 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp18_ = parent;
#line 139 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp19_ = rygel_media_export_photo_item_new (_tmp17_, _tmp18_, "", RYGEL_PHOTO_ITEM_UPNP_CLASS);
#line 139 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (item);
#line 139 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		item = (RygelMediaFileItem*) _tmp19_;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp20_ = item;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp21_ = file;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp22_ = info;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp23_ = profile;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp24_ = video_streams;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp25_ = _tmp24_->data;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp26_ = file_info;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp27_ = rygel_media_export_item_factory_fill_photo_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, RYGEL_MEDIA_EXPORT_TYPE_PHOTO_ITEM) ? ((RygelMediaExportPhotoItem*) _tmp20_) : NULL, _tmp21_, _tmp22_, _tmp23_, (GstDiscovererVideoInfo*) _tmp25_, _tmp26_);
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = _tmp27_;
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		__g_list_free__g_object_unref0_0 (video_streams);
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		__g_list_free__g_object_unref0_0 (audio_streams);
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (id);
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (item);
#line 140 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 921 "rygel-media-export-item-factory.c"
	} else {
		GList* _tmp28_ = NULL;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp28_ = video_streams;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp28_ != NULL) {
#line 928 "rygel-media-export-item-factory.c"
			const gchar* _tmp29_ = NULL;
			RygelMediaContainer* _tmp30_ = NULL;
			RygelMediaExportVideoItem* _tmp31_ = NULL;
			GstDiscovererAudioInfo* audio_info = NULL;
			gpointer _tmp32_ = NULL;
			GstDiscovererAudioInfo* _tmp33_ = NULL;
			GList* _tmp34_ = NULL;
			RygelMediaFileItem* _tmp38_ = NULL;
			GFile* _tmp39_ = NULL;
			GstDiscovererInfo* _tmp40_ = NULL;
			GUPnPDLNAProfile* _tmp41_ = NULL;
			GList* _tmp42_ = NULL;
			gconstpointer _tmp43_ = NULL;
			GstDiscovererAudioInfo* _tmp44_ = NULL;
			GFileInfo* _tmp45_ = NULL;
			RygelMediaFileItem* _tmp46_ = NULL;
#line 147 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp29_ = id;
#line 147 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp30_ = parent;
#line 147 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp31_ = rygel_media_export_video_item_new (_tmp29_, _tmp30_, "", RYGEL_VIDEO_ITEM_UPNP_CLASS);
#line 147 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_object_unref0 (item);
#line 147 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			item = (RygelMediaFileItem*) _tmp31_;
#line 149 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp32_ = NULL;
#line 149 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp32_, gst_discoverer_audio_info_get_type ()) ? ((GstDiscovererAudioInfo*) _tmp32_) : NULL);
#line 149 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			audio_info = _tmp33_;
#line 150 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp34_ = audio_streams;
#line 150 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp34_ != NULL) {
#line 965 "rygel-media-export-item-factory.c"
				GList* _tmp35_ = NULL;
				gconstpointer _tmp36_ = NULL;
				GstDiscovererAudioInfo* _tmp37_ = NULL;
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp35_ = audio_streams;
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp36_ = _tmp35_->data;
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp37_ = _g_object_ref0 ((GstDiscovererAudioInfo*) _tmp36_);
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (audio_info);
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				audio_info = _tmp37_;
#line 979 "rygel-media-export-item-factory.c"
			}
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp38_ = item;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp39_ = file;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp40_ = info;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp41_ = profile;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp42_ = video_streams;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp43_ = _tmp42_->data;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp44_ = audio_info;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp45_ = file_info;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp46_ = rygel_media_export_item_factory_fill_video_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp38_, RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM) ? ((RygelMediaExportVideoItem*) _tmp38_) : NULL, _tmp39_, _tmp40_, _tmp41_, (GstDiscovererVideoInfo*) _tmp43_, _tmp44_, _tmp45_);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			result = _tmp46_;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_object_unref0 (audio_info);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			__g_list_free__g_object_unref0_0 (video_streams);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			__g_list_free__g_object_unref0_0 (audio_streams);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (id);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_object_unref0 (item);
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			return result;
#line 1013 "rygel-media-export-item-factory.c"
		} else {
			GList* _tmp47_ = NULL;
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp47_ = audio_streams;
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp47_ != NULL) {
#line 1020 "rygel-media-export-item-factory.c"
				const gchar* _tmp48_ = NULL;
				RygelMediaContainer* _tmp49_ = NULL;
				RygelMediaExportMusicItem* _tmp50_ = NULL;
				RygelMediaFileItem* _tmp51_ = NULL;
				GFile* _tmp52_ = NULL;
				GstDiscovererInfo* _tmp53_ = NULL;
				GUPnPDLNAProfile* _tmp54_ = NULL;
				GList* _tmp55_ = NULL;
				gconstpointer _tmp56_ = NULL;
				GFileInfo* _tmp57_ = NULL;
				RygelMediaFileItem* _tmp58_ = NULL;
#line 162 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp48_ = id;
#line 162 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp49_ = parent;
#line 162 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp50_ = rygel_media_export_music_item_new (_tmp48_, _tmp49_, "", RYGEL_MUSIC_ITEM_UPNP_CLASS);
#line 162 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (item);
#line 162 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				item = (RygelMediaFileItem*) _tmp50_;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp51_ = item;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp52_ = file;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp53_ = info;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp54_ = profile;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp55_ = audio_streams;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp56_ = _tmp55_->data;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp57_ = file_info;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp58_ = rygel_media_export_item_factory_fill_music_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp51_, RYGEL_MEDIA_EXPORT_TYPE_MUSIC_ITEM) ? ((RygelMediaExportMusicItem*) _tmp51_) : NULL, _tmp52_, _tmp53_, _tmp54_, (GstDiscovererAudioInfo*) _tmp56_, _tmp57_);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				result = _tmp58_;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				__g_list_free__g_object_unref0_0 (video_streams);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				__g_list_free__g_object_unref0_0 (audio_streams);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_free0 (id);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (item);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				return result;
#line 1070 "rygel-media-export-item-factory.c"
			} else {
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				result = NULL;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				__g_list_free__g_object_unref0_0 (video_streams);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				__g_list_free__g_object_unref0_0 (audio_streams);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_free0 (id);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_g_object_unref0 (item);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				return result;
#line 1084 "rygel-media-export-item-factory.c"
			}
		}
	}
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	__g_list_free__g_object_unref0_0 (video_streams);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	__g_list_free__g_object_unref0_0 (audio_streams);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (id);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_object_unref0 (item);
#line 1096 "rygel-media-export-item-factory.c"
}


static gpointer _gst_tag_list_ref0 (gpointer self) {
#line 186 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return self ? gst_tag_list_ref (self) : NULL;
#line 1103 "rygel-media-export-item-factory.c"
}


void rygel_media_export_item_factory_fill_audio_item (RygelAudioItem* item, GstDiscovererInfo* info, GstDiscovererAudioInfo* audio_info) {
	GstDiscovererInfo* _tmp0_ = NULL;
	GstClockTime _tmp1_ = 0ULL;
	GstDiscovererAudioInfo* _tmp6_ = NULL;
	GstTagList* tags = NULL;
	GstDiscovererAudioInfo* _tmp7_ = NULL;
	GstTagList* _tmp8_ = NULL;
	GstTagList* _tmp9_ = NULL;
	GstTagList* _tmp10_ = NULL;
	RygelAudioItem* _tmp15_ = NULL;
	GstDiscovererAudioInfo* _tmp16_ = NULL;
	guint _tmp17_ = 0U;
	RygelAudioItem* _tmp18_ = NULL;
	GstDiscovererAudioInfo* _tmp19_ = NULL;
	guint _tmp20_ = 0U;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (item != NULL);
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (info != NULL);
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = info;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = gst_discoverer_info_get_duration (_tmp0_);
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp1_ > ((GstClockTime) 0)) {
#line 1132 "rygel-media-export-item-factory.c"
		RygelAudioItem* _tmp2_ = NULL;
		GstDiscovererInfo* _tmp3_ = NULL;
		GstClockTime _tmp4_ = 0ULL;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp2_ = item;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp3_ = info;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp4_ = gst_discoverer_info_get_duration (_tmp3_);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_audio_item_set_duration (_tmp2_, (glong) (_tmp4_ / GST_SECOND));
#line 1144 "rygel-media-export-item-factory.c"
	} else {
		RygelAudioItem* _tmp5_ = NULL;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp5_ = item;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_audio_item_set_duration (_tmp5_, (glong) (-1));
#line 1151 "rygel-media-export-item-factory.c"
	}
#line 183 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp6_ = audio_info;
#line 183 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp6_ == NULL) {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return;
#line 1159 "rygel-media-export-item-factory.c"
	}
#line 186 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = audio_info;
#line 186 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp8_ = gst_discoverer_stream_info_get_tags ((GstDiscovererStreamInfo*) _tmp7_);
#line 186 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp9_ = _gst_tag_list_ref0 (_tmp8_);
#line 186 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	tags = _tmp9_;
#line 187 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp10_ = tags;
#line 187 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp10_ != NULL) {
#line 1173 "rygel-media-export-item-factory.c"
		guint tmp = 0U;
		GstTagList* _tmp11_ = NULL;
		guint _tmp12_ = 0U;
		RygelAudioItem* _tmp13_ = NULL;
		guint _tmp14_ = 0U;
#line 189 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp11_ = tags;
#line 189 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		gst_tag_list_get_uint (_tmp11_, GST_TAG_BITRATE, &_tmp12_);
#line 189 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		tmp = _tmp12_;
#line 190 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = item;
#line 190 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp14_ = tmp;
#line 190 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_audio_item_set_bitrate (_tmp13_, ((gint) _tmp14_) / 8);
#line 1191 "rygel-media-export-item-factory.c"
	}
#line 193 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp15_ = item;
#line 193 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp16_ = audio_info;
#line 193 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp17_ = gst_discoverer_audio_info_get_channels (_tmp16_);
#line 193 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_audio_item_set_channels (_tmp15_, (gint) _tmp17_);
#line 194 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp18_ = item;
#line 194 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp19_ = audio_info;
#line 194 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp20_ = gst_discoverer_audio_info_get_sample_rate (_tmp19_);
#line 194 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_audio_item_set_sample_freq (_tmp18_, (gint) _tmp20_);
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_tag_list_unref0 (tags);
#line 1211 "rygel-media-export-item-factory.c"
}


RygelMediaFileItem* rygel_media_export_item_factory_fill_video_item (RygelMediaExportVideoItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererVideoInfo* video_info, GstDiscovererAudioInfo* audio_info, GFileInfo* file_info) {
	RygelMediaFileItem* result = NULL;
	RygelMediaExportVideoItem* _tmp0_ = NULL;
	GstDiscovererInfo* _tmp1_ = NULL;
	GstDiscovererAudioInfo* _tmp2_ = NULL;
	RygelMediaExportVideoItem* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GstDiscovererInfo* _tmp5_ = NULL;
	GUPnPDLNAProfile* _tmp6_ = NULL;
	GFileInfo* _tmp7_ = NULL;
	RygelMediaExportVideoItem* _tmp8_ = NULL;
	GstDiscovererVideoInfo* _tmp9_ = NULL;
	guint _tmp10_ = 0U;
	RygelMediaExportVideoItem* _tmp11_ = NULL;
	GstDiscovererVideoInfo* _tmp12_ = NULL;
	guint _tmp13_ = 0U;
	gint color_depth = 0;
	GstDiscovererVideoInfo* _tmp14_ = NULL;
	guint _tmp15_ = 0U;
	gint _tmp16_ = 0;
	gint _tmp17_ = 0;
	RygelMediaExportVideoItem* _tmp19_ = NULL;
	RygelMediaExportVideoItem* _tmp20_ = NULL;
	RygelMediaFileItem* _tmp21_ = NULL;
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (item != NULL, NULL);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (video_info != NULL, NULL);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file_info != NULL, NULL);
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = item;
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = info;
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = audio_info;
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_export_item_factory_fill_audio_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, RYGEL_TYPE_AUDIO_ITEM) ? ((RygelAudioItem*) _tmp0_) : NULL, _tmp1_, _tmp2_);
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp3_ = item;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = file;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp5_ = info;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp6_ = profile;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = file_info;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_export_item_factory_fill_media_item ((RygelMediaFileItem*) _tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_);
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp8_ = item;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp9_ = video_info;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp10_ = gst_discoverer_video_info_get_width (_tmp9_);
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_width ((RygelVisualItem*) _tmp8_, (gint) _tmp10_);
#line 209 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp11_ = item;
#line 209 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp12_ = video_info;
#line 209 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp13_ = gst_discoverer_video_info_get_height (_tmp12_);
#line 209 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_height ((RygelVisualItem*) _tmp11_, (gint) _tmp13_);
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp14_ = video_info;
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp15_ = gst_discoverer_video_info_get_depth (_tmp14_);
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	color_depth = (gint) _tmp15_;
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp17_ = color_depth;
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp17_ == 0) {
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16_ = -1;
#line 1297 "rygel-media-export-item-factory.c"
	} else {
		gint _tmp18_ = 0;
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp18_ = color_depth;
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16_ = _tmp18_;
#line 1304 "rygel-media-export-item-factory.c"
	}
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp19_ = item;
#line 212 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_color_depth ((RygelVisualItem*) _tmp19_, _tmp16_);
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp20_ = item;
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp21_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp20_);
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	result = _tmp21_;
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return result;
#line 1318 "rygel-media-export-item-factory.c"
}


RygelMediaFileItem* rygel_media_export_item_factory_fill_photo_item (RygelMediaExportPhotoItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererVideoInfo* video_info, GFileInfo* file_info) {
	RygelMediaFileItem* result = NULL;
	RygelMediaExportPhotoItem* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GstDiscovererInfo* _tmp2_ = NULL;
	GUPnPDLNAProfile* _tmp3_ = NULL;
	GFileInfo* _tmp4_ = NULL;
	RygelMediaExportPhotoItem* _tmp5_ = NULL;
	GstDiscovererVideoInfo* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
	RygelMediaExportPhotoItem* _tmp8_ = NULL;
	GstDiscovererVideoInfo* _tmp9_ = NULL;
	guint _tmp10_ = 0U;
	gint color_depth = 0;
	GstDiscovererVideoInfo* _tmp11_ = NULL;
	guint _tmp12_ = 0U;
	gint _tmp13_ = 0;
	gint _tmp14_ = 0;
	RygelMediaExportPhotoItem* _tmp16_ = NULL;
	RygelMediaExportPhotoItem* _tmp17_ = NULL;
	RygelMediaFileItem* _tmp18_ = NULL;
#line 217 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (item != NULL, NULL);
#line 217 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 217 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 217 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (video_info != NULL, NULL);
#line 217 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file_info != NULL, NULL);
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = item;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = file;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = info;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp3_ = profile;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = file_info;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_export_item_factory_fill_media_item ((RygelMediaFileItem*) _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp5_ = item;
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp6_ = video_info;
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = gst_discoverer_video_info_get_width (_tmp6_);
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_width ((RygelVisualItem*) _tmp5_, (gint) _tmp7_);
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp8_ = item;
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp9_ = video_info;
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp10_ = gst_discoverer_video_info_get_height (_tmp9_);
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_height ((RygelVisualItem*) _tmp8_, (gint) _tmp10_);
#line 228 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp11_ = video_info;
#line 228 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp12_ = gst_discoverer_video_info_get_depth (_tmp11_);
#line 228 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	color_depth = (gint) _tmp12_;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp14_ = color_depth;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp14_ == 0) {
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = -1;
#line 1393 "rygel-media-export-item-factory.c"
	} else {
		gint _tmp15_ = 0;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = color_depth;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = _tmp15_;
#line 1400 "rygel-media-export-item-factory.c"
	}
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp16_ = item;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_visual_item_set_color_depth ((RygelVisualItem*) _tmp16_, _tmp13_);
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp17_ = item;
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp18_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp17_);
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	result = _tmp18_;
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return result;
#line 1414 "rygel-media-export-item-factory.c"
}


RygelMediaFileItem* rygel_media_export_item_factory_fill_music_item (RygelMediaExportMusicItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GstDiscovererAudioInfo* audio_info, GFileInfo* file_info) {
	RygelMediaFileItem* result = NULL;
	RygelMediaExportMusicItem* _tmp0_ = NULL;
	GstDiscovererInfo* _tmp1_ = NULL;
	GstDiscovererAudioInfo* _tmp2_ = NULL;
	RygelMediaExportMusicItem* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GstDiscovererInfo* _tmp5_ = NULL;
	GUPnPDLNAProfile* _tmp6_ = NULL;
	GFileInfo* _tmp7_ = NULL;
	GstDiscovererAudioInfo* _tmp8_ = NULL;
	GstTagList* tags = NULL;
	GstDiscovererAudioInfo* _tmp11_ = NULL;
	GstTagList* _tmp12_ = NULL;
	GstTagList* _tmp13_ = NULL;
	GstTagList* _tmp14_ = NULL;
	gchar* artist = NULL;
	GstTagList* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	RygelMediaExportMusicItem* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	gchar* album = NULL;
	GstTagList* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	RygelMediaExportMusicItem* _tmp23_ = NULL;
	const gchar* _tmp24_ = NULL;
	gchar* genre = NULL;
	GstTagList* _tmp25_ = NULL;
	gchar* _tmp26_ = NULL;
	RygelMediaExportMusicItem* _tmp27_ = NULL;
	const gchar* _tmp28_ = NULL;
	guint tmp = 0U;
	GstTagList* _tmp29_ = NULL;
	guint _tmp30_ = 0U;
	RygelMediaExportMusicItem* _tmp31_ = NULL;
	guint _tmp32_ = 0U;
	GstTagList* _tmp33_ = NULL;
	guint _tmp34_ = 0U;
	RygelMediaExportMusicItem* _tmp35_ = NULL;
	guint _tmp36_ = 0U;
	RygelMediaArtStore* store = NULL;
	RygelMediaArtStore* _tmp37_ = NULL;
	GstSample* sample = NULL;
	GstTagList* _tmp38_ = NULL;
	GstSample* _tmp39_ = NULL;
	GstSample* _tmp40_ = NULL;
	GstSample* _tmp43_ = NULL;
	GstStructure* structure = NULL;
	GstSample* _tmp49_ = NULL;
	GstCaps* _tmp50_ = NULL;
	GstStructure* _tmp51_ = NULL;
	gint image_type = 0;
	GstStructure* _tmp52_ = NULL;
	gint _tmp53_ = 0;
	gint _tmp54_ = 0;
	RygelMediaExportMusicItem* _tmp72_ = NULL;
	RygelMediaFileItem* _tmp73_ = NULL;
#line 234 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (item != NULL, NULL);
#line 234 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 234 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 234 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_val_if_fail (file_info != NULL, NULL);
#line 240 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = item;
#line 240 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = info;
#line 240 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = audio_info;
#line 240 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_export_item_factory_fill_audio_item (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, RYGEL_TYPE_AUDIO_ITEM) ? ((RygelAudioItem*) _tmp0_) : NULL, _tmp1_, _tmp2_);
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp3_ = item;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = file;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp5_ = info;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp6_ = profile;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp7_ = file_info;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_export_item_factory_fill_media_item ((RygelMediaFileItem*) _tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_);
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp8_ = audio_info;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp8_ == NULL) {
#line 1507 "rygel-media-export-item-factory.c"
		RygelMediaExportMusicItem* _tmp9_ = NULL;
		RygelMediaFileItem* _tmp10_ = NULL;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp9_ = item;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp10_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp9_);
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = _tmp10_;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 1518 "rygel-media-export-item-factory.c"
	}
#line 247 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp11_ = audio_info;
#line 247 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp12_ = gst_discoverer_stream_info_get_tags ((GstDiscovererStreamInfo*) _tmp11_);
#line 247 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp13_ = _gst_tag_list_ref0 (_tmp12_);
#line 247 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	tags = _tmp13_;
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp14_ = tags;
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp14_ == NULL) {
#line 1532 "rygel-media-export-item-factory.c"
		RygelMediaExportMusicItem* _tmp15_ = NULL;
		RygelMediaFileItem* _tmp16_ = NULL;
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = item;
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp16_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp15_);
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = _tmp16_;
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_gst_tag_list_unref0 (tags);
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 1545 "rygel-media-export-item-factory.c"
	}
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp17_ = tags;
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_string (_tmp17_, GST_TAG_ARTIST, &_tmp18_);
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (artist);
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	artist = _tmp18_;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp19_ = item;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp20_ = artist;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_set_artist ((RygelMediaObject*) _tmp19_, _tmp20_);
#line 257 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp21_ = tags;
#line 257 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_string (_tmp21_, GST_TAG_ALBUM, &_tmp22_);
#line 257 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (album);
#line 257 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	album = _tmp22_;
#line 258 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp23_ = item;
#line 258 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp24_ = album;
#line 258 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_audio_item_set_album ((RygelAudioItem*) _tmp23_, _tmp24_);
#line 261 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp25_ = tags;
#line 261 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_string (_tmp25_, GST_TAG_GENRE, &_tmp26_);
#line 261 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (genre);
#line 261 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	genre = _tmp26_;
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp27_ = item;
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp28_ = genre;
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_set_genre ((RygelMediaObject*) _tmp27_, _tmp28_);
#line 265 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp29_ = tags;
#line 265 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_uint (_tmp29_, GST_TAG_ALBUM_VOLUME_NUMBER, &_tmp30_);
#line 265 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	tmp = _tmp30_;
#line 266 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp31_ = item;
#line 266 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp32_ = tmp;
#line 266 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp31_->disc = (gint) _tmp32_;
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp33_ = tags;
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_uint (_tmp33_, GST_TAG_TRACK_NUMBER, &_tmp34_);
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	tmp = _tmp34_;
#line 269 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp35_ = item;
#line 269 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp36_ = tmp;
#line 269 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_music_item_set_track_number ((RygelMusicItem*) _tmp35_, (gint) _tmp36_);
#line 272 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp37_ = rygel_media_art_store_get_default ();
#line 272 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	store = _tmp37_;
#line 275 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp38_ = tags;
#line 275 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_tag_list_get_sample (_tmp38_, GST_TAG_IMAGE, &_tmp39_);
#line 275 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_sample_unref0 (sample);
#line 275 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	sample = _tmp39_;
#line 276 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp40_ = sample;
#line 276 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp40_ == NULL) {
#line 1629 "rygel-media-export-item-factory.c"
		GstTagList* _tmp41_ = NULL;
		GstSample* _tmp42_ = NULL;
#line 277 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp41_ = tags;
#line 277 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		gst_tag_list_get_sample (_tmp41_, GST_TAG_PREVIEW_IMAGE, &_tmp42_);
#line 277 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_gst_sample_unref0 (sample);
#line 277 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		sample = _tmp42_;
#line 1640 "rygel-media-export-item-factory.c"
	}
#line 280 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp43_ = sample;
#line 280 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp43_ == NULL) {
#line 1646 "rygel-media-export-item-factory.c"
		RygelMediaArtStore* _tmp44_ = NULL;
		RygelMediaExportMusicItem* _tmp45_ = NULL;
		GFile* _tmp46_ = NULL;
		RygelMediaExportMusicItem* _tmp47_ = NULL;
		RygelMediaFileItem* _tmp48_ = NULL;
#line 281 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp44_ = store;
#line 281 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp45_ = item;
#line 281 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp46_ = file;
#line 281 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_art_store_search_media_art_for_file (_tmp44_, (RygelMusicItem*) _tmp45_, _tmp46_);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp47_ = item;
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp48_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp47_);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		result = _tmp48_;
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_gst_sample_unref0 (sample);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_object_unref0 (store);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (genre);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (album);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (artist);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_gst_tag_list_unref0 (tags);
#line 283 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		return result;
#line 1680 "rygel-media-export-item-factory.c"
	}
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp49_ = sample;
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp50_ = gst_sample_get_caps (_tmp49_);
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp51_ = gst_caps_get_structure (_tmp50_, (guint) 0);
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	structure = _tmp51_;
#line 289 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp52_ = structure;
#line 289 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	gst_structure_get_enum (_tmp52_, "image-type", gst_tag_image_type_get_type (), &_tmp53_);
#line 289 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	image_type = _tmp53_;
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp54_ = image_type;
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	switch (_tmp54_) {
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		case GST_TAG_IMAGE_TYPE_UNDEFINED:
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		case GST_TAG_IMAGE_TYPE_FRONT_COVER:
#line 1704 "rygel-media-export-item-factory.c"
		{
			GstMapInfo map_info = {0};
			GstSample* _tmp55_ = NULL;
			GstBuffer* _tmp56_ = NULL;
			GstMapInfo _tmp57_ = {0};
			guint8* data = NULL;
			GstMapInfo _tmp58_ = {0};
			guint8* _tmp59_ = NULL;
			gint _tmp59__length1 = 0;
			gint data_length1 = 0;
			gint _data_size_ = 0;
			GstMapInfo _tmp60_ = {0};
			gsize _tmp61_ = 0UL;
			gint _tmp62_ = 0;
			RygelMediaArtStore* _tmp63_ = NULL;
			RygelMediaExportMusicItem* _tmp64_ = NULL;
			GFile* _tmp65_ = NULL;
			guint8* _tmp66_ = NULL;
			gint _tmp66__length1 = 0;
			GstStructure* _tmp67_ = NULL;
			const gchar* _tmp68_ = NULL;
			GstSample* _tmp69_ = NULL;
			GstBuffer* _tmp70_ = NULL;
			GstMapInfo _tmp71_ = {0};
#line 296 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp55_ = sample;
#line 296 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp56_ = gst_sample_get_buffer (_tmp55_);
#line 296 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			gst_buffer_map (_tmp56_, &_tmp57_, GST_MAP_READ);
#line 296 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			map_info = _tmp57_;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp58_ = map_info;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp59_ = _tmp58_.data;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp59__length1 = (gint) _tmp58_.size;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			data = _tmp59_;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			data_length1 = _tmp59__length1;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_data_size_ = data_length1;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp60_ = map_info;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp61_ = _tmp60_.size;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			data_length1 = (gint) _tmp61_;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp62_ = data_length1;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp63_ = store;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp64_ = item;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp65_ = file;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp66_ = data;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp66__length1 = data_length1;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp67_ = structure;
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp68_ = gst_structure_get_name (_tmp67_);
#line 302 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			rygel_media_art_store_add (_tmp63_, (RygelMusicItem*) _tmp64_, _tmp65_, _tmp66_, _tmp66__length1, _tmp68_);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp69_ = sample;
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp70_ = gst_sample_get_buffer (_tmp69_);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp71_ = map_info;
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			gst_buffer_unmap (_tmp70_, &_tmp71_);
#line 304 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			break;
#line 1783 "rygel-media-export-item-factory.c"
		}
		default:
		{
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			break;
#line 1789 "rygel-media-export-item-factory.c"
		}
	}
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp72_ = item;
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp73_ = _g_object_ref0 ((RygelMediaFileItem*) _tmp72_);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	result = _tmp73_;
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_sample_unref0 (sample);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_object_unref0 (store);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (genre);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (album);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (artist);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_tag_list_unref0 (tags);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	return result;
#line 1812 "rygel-media-export-item-factory.c"
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 1278 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1278 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1279 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = needle;
#line 1279 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
#line 1279 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	result = _tmp1_ != NULL;
#line 1279 "/home/jens/jhbuild/install/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 1832 "rygel-media-export-item-factory.c"
}


static void _vala_SoupDate_free (SoupDate* self) {
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_boxed_free (soup_date_get_type (), self);
#line 1839 "rygel-media-export-item-factory.c"
}


void rygel_media_export_item_factory_fill_media_item (RygelMediaFileItem* item, GFile* file, GstDiscovererInfo* info, GUPnPDLNAProfile* profile, GFileInfo* file_info) {
	gchar* title = NULL;
	GstTagList* tags = NULL;
	GstDiscovererInfo* _tmp0_ = NULL;
	GstTagList* _tmp1_ = NULL;
	GstTagList* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GstTagList* _tmp4_ = NULL;
	GstDateTime* dt = NULL;
	gboolean _tmp11_ = FALSE;
	GstTagList* _tmp12_ = NULL;
	RygelMediaFileItem* _tmp40_ = NULL;
	const gchar* _tmp41_ = NULL;
	guint64 mtime = 0ULL;
	GFileInfo* _tmp42_ = NULL;
	guint64 _tmp43_ = 0ULL;
	RygelMediaFileItem* _tmp44_ = NULL;
	const gchar* _tmp45_ = NULL;
	const gchar* _tmp46_ = NULL;
	RygelMediaFileItem* _tmp52_ = NULL;
	const gchar* _tmp53_ = NULL;
	const gchar* _tmp54_ = NULL;
	gboolean _tmp55_ = FALSE;
	RygelMediaFileItem* _tmp64_ = NULL;
	GFileInfo* _tmp65_ = NULL;
	gint64 _tmp66_ = 0LL;
	RygelMediaFileItem* _tmp67_ = NULL;
	guint64 _tmp68_ = 0ULL;
	gboolean _tmp69_ = FALSE;
	GUPnPDLNAProfile* _tmp70_ = NULL;
	RygelMediaFileItem* _tmp87_ = NULL;
	GFile* _tmp88_ = NULL;
	gchar* _tmp89_ = NULL;
	gchar* _tmp90_ = NULL;
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (item != NULL);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (file != NULL);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (info != NULL);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	g_return_if_fail (file_info != NULL);
#line 317 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	title = NULL;
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp0_ = info;
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp1_ = gst_discoverer_info_get_tags (_tmp0_);
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp2_ = _gst_tag_list_ref0 (_tmp1_);
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	tags = _tmp2_;
#line 320 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp4_ = tags;
#line 320 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp4_ == NULL) {
#line 320 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp3_ = TRUE;
#line 1901 "rygel-media-export-item-factory.c"
	} else {
		GstTagList* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp5_ = tags;
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp7_ = gst_tag_list_get_string (_tmp5_, GST_TAG_TITLE, &_tmp6_);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (title);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		title = _tmp6_;
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp3_ = !_tmp7_;
#line 1916 "rygel-media-export-item-factory.c"
	}
#line 320 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp3_) {
#line 1920 "rygel-media-export-item-factory.c"
		GFileInfo* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp8_ = file_info;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp9_ = g_file_info_get_display_name (_tmp8_);
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp10_ = g_strdup (_tmp9_);
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (title);
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		title = _tmp10_;
#line 1934 "rygel-media-export-item-factory.c"
	}
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	dt = NULL;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp12_ = tags;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp12_ != NULL) {
#line 1942 "rygel-media-export-item-factory.c"
		GstTagList* _tmp13_ = NULL;
		GstDateTime* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp13_ = tags;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp15_ = gst_tag_list_get_date_time (_tmp13_, GST_TAG_DATE_TIME, &_tmp14_);
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_gst_date_time_unref0 (dt);
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		dt = _tmp14_;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp11_ = _tmp15_;
#line 1956 "rygel-media-export-item-factory.c"
	} else {
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp11_ = FALSE;
#line 1960 "rygel-media-export-item-factory.c"
	}
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp11_) {
#line 1964 "rygel-media-export-item-factory.c"
		gboolean _tmp16_ = FALSE;
		GstDateTime* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp17_ = dt;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp18_ = gst_date_time_has_day (_tmp17_);
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (!_tmp18_) {
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp16_ = TRUE;
#line 1976 "rygel-media-export-item-factory.c"
		} else {
			GstDateTime* _tmp19_ = NULL;
			gboolean _tmp20_ = FALSE;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp19_ = dt;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp20_ = gst_date_time_has_month (_tmp19_);
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp16_ = !_tmp20_;
#line 1986 "rygel-media-export-item-factory.c"
		}
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		if (_tmp16_) {
#line 1990 "rygel-media-export-item-factory.c"
			gint _tmp21_ = 0;
			GstDateTime* _tmp22_ = NULL;
			gboolean _tmp23_ = FALSE;
			gint _tmp26_ = 0;
			GstDateTime* _tmp27_ = NULL;
			gboolean _tmp28_ = FALSE;
			RygelMediaFileItem* _tmp31_ = NULL;
			GstDateTime* _tmp32_ = NULL;
			gint _tmp33_ = 0;
			gchar* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp22_ = dt;
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp23_ = gst_date_time_has_month (_tmp22_);
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp23_) {
#line 2008 "rygel-media-export-item-factory.c"
				GstDateTime* _tmp24_ = NULL;
				gint _tmp25_ = 0;
#line 334 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp24_ = dt;
#line 334 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp25_ = gst_date_time_get_month (_tmp24_);
#line 334 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp21_ = _tmp25_;
#line 2017 "rygel-media-export-item-factory.c"
			} else {
#line 334 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp21_ = 1;
#line 2021 "rygel-media-export-item-factory.c"
			}
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp27_ = dt;
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp28_ = gst_date_time_has_day (_tmp27_);
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			if (_tmp28_) {
#line 2029 "rygel-media-export-item-factory.c"
				GstDateTime* _tmp29_ = NULL;
				gint _tmp30_ = 0;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp29_ = dt;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp30_ = gst_date_time_get_day (_tmp29_);
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp26_ = _tmp30_;
#line 2038 "rygel-media-export-item-factory.c"
			} else {
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
				_tmp26_ = 1;
#line 2042 "rygel-media-export-item-factory.c"
			}
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp31_ = item;
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp32_ = dt;
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp33_ = gst_date_time_get_year (_tmp32_);
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp34_ = g_strdup_printf ("%d-%02d-%02d", _tmp33_, _tmp21_, _tmp26_);
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp35_ = _tmp34_;
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			rygel_media_object_set_date ((RygelMediaObject*) _tmp31_, _tmp35_);
#line 332 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (_tmp35_);
#line 2058 "rygel-media-export-item-factory.c"
		} else {
			RygelMediaFileItem* _tmp36_ = NULL;
			GstDateTime* _tmp37_ = NULL;
			gchar* _tmp38_ = NULL;
			gchar* _tmp39_ = NULL;
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp36_ = item;
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp37_ = dt;
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp38_ = gst_date_time_to_iso8601_string (_tmp37_);
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_tmp39_ = _tmp38_;
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			rygel_media_object_set_date ((RygelMediaObject*) _tmp36_, _tmp39_);
#line 338 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
			_g_free0 (_tmp39_);
#line 2076 "rygel-media-export-item-factory.c"
		}
	}
#line 342 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp40_ = item;
#line 342 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp41_ = title;
#line 342 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_set_title ((RygelMediaObject*) _tmp40_, _tmp41_);
#line 345 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp42_ = file_info;
#line 345 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp43_ = g_file_info_get_attribute_uint64 (_tmp42_, G_FILE_ATTRIBUTE_TIME_MODIFIED);
#line 345 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	mtime = _tmp43_;
#line 348 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp44_ = item;
#line 348 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp45_ = rygel_media_object_get_date ((RygelMediaObject*) _tmp44_);
#line 348 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp46_ = _tmp45_;
#line 348 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp46_ == NULL) {
#line 2099 "rygel-media-export-item-factory.c"
		GTimeVal tv = {0};
		guint64 _tmp47_ = 0ULL;
		GTimeVal _tmp48_ = {0};
		RygelMediaFileItem* _tmp49_ = NULL;
		gchar* _tmp50_ = NULL;
		gchar* _tmp51_ = NULL;
#line 349 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp47_ = mtime;
#line 349 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp48_.tv_sec = (glong) _tmp47_;
#line 349 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp48_.tv_usec = (glong) 0;
#line 349 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		tv = _tmp48_;
#line 350 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp49_ = item;
#line 350 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp50_ = g_time_val_to_iso8601 (&tv);
#line 350 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp51_ = _tmp50_;
#line 350 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_object_set_date ((RygelMediaObject*) _tmp49_, _tmp51_);
#line 350 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp51_);
#line 2124 "rygel-media-export-item-factory.c"
	}
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp52_ = item;
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp53_ = rygel_media_object_get_date ((RygelMediaObject*) _tmp52_);
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp54_ = _tmp53_;
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp55_ = string_contains (_tmp54_, "T");
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp55_) {
#line 2136 "rygel-media-export-item-factory.c"
		SoupDate* date = NULL;
		RygelMediaFileItem* _tmp56_ = NULL;
		const gchar* _tmp57_ = NULL;
		const gchar* _tmp58_ = NULL;
		SoupDate* _tmp59_ = NULL;
		RygelMediaFileItem* _tmp60_ = NULL;
		SoupDate* _tmp61_ = NULL;
		gchar* _tmp62_ = NULL;
		gchar* _tmp63_ = NULL;
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp56_ = item;
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp57_ = rygel_media_object_get_date ((RygelMediaObject*) _tmp56_);
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp58_ = _tmp57_;
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp59_ = soup_date_new_from_string (_tmp58_);
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		date = _tmp59_;
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp60_ = item;
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp61_ = date;
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp62_ = soup_date_to_string (_tmp61_, SOUP_DATE_ISO8601_FULL);
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp63_ = _tmp62_;
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_object_set_date ((RygelMediaObject*) _tmp60_, _tmp63_);
#line 357 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp63_);
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		__vala_SoupDate_free0 (date);
#line 2170 "rygel-media-export-item-factory.c"
	}
#line 360 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp64_ = item;
#line 360 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp65_ = file_info;
#line 360 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp66_ = g_file_info_get_size (_tmp65_);
#line 360 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_file_item_set_size (_tmp64_, (gint64) _tmp66_);
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp67_ = item;
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp68_ = mtime;
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_set_modified ((RygelMediaObject*) _tmp67_, (guint64) ((gint64) _tmp68_));
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp70_ = profile;
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp70_ != NULL) {
#line 2190 "rygel-media-export-item-factory.c"
		GUPnPDLNAProfile* _tmp71_ = NULL;
		const gchar* _tmp72_ = NULL;
		const gchar* _tmp73_ = NULL;
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp71_ = profile;
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp72_ = gupnp_dlna_profile_get_name (_tmp71_);
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp73_ = _tmp72_;
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp69_ = _tmp73_ != NULL;
#line 2202 "rygel-media-export-item-factory.c"
	} else {
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp69_ = FALSE;
#line 2206 "rygel-media-export-item-factory.c"
	}
#line 362 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	if (_tmp69_) {
#line 2210 "rygel-media-export-item-factory.c"
		RygelMediaFileItem* _tmp74_ = NULL;
		GUPnPDLNAProfile* _tmp75_ = NULL;
		const gchar* _tmp76_ = NULL;
		const gchar* _tmp77_ = NULL;
		RygelMediaFileItem* _tmp78_ = NULL;
		GUPnPDLNAProfile* _tmp79_ = NULL;
		const gchar* _tmp80_ = NULL;
		const gchar* _tmp81_ = NULL;
#line 363 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp74_ = item;
#line 363 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp75_ = profile;
#line 363 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp76_ = gupnp_dlna_profile_get_name (_tmp75_);
#line 363 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp77_ = _tmp76_;
#line 363 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_file_item_set_dlna_profile (_tmp74_, _tmp77_);
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp78_ = item;
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp79_ = profile;
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp80_ = gupnp_dlna_profile_get_mime (_tmp79_);
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp81_ = _tmp80_;
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_file_item_set_mime_type (_tmp78_, _tmp81_);
#line 2239 "rygel-media-export-item-factory.c"
	} else {
		RygelMediaFileItem* _tmp82_ = NULL;
		GFileInfo* _tmp83_ = NULL;
		const gchar* _tmp84_ = NULL;
		gchar* _tmp85_ = NULL;
		gchar* _tmp86_ = NULL;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp82_ = item;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp83_ = file_info;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp84_ = g_file_info_get_content_type (_tmp83_);
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp85_ = g_content_type_get_mime_type (_tmp84_);
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_tmp86_ = _tmp85_;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		rygel_media_file_item_set_mime_type (_tmp82_, _tmp86_);
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
		_g_free0 (_tmp86_);
#line 2260 "rygel-media-export-item-factory.c"
	}
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp87_ = item;
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp88_ = file;
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp89_ = g_file_get_uri (_tmp88_);
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_tmp90_ = _tmp89_;
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	rygel_media_object_add_uri ((RygelMediaObject*) _tmp87_, _tmp90_);
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (_tmp90_);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_date_time_unref0 (dt);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_gst_tag_list_unref0 (tags);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-item-factory.vala"
	_g_free0 (title);
#line 2280 "rygel-media-export-item-factory.c"
}



