/* rygel-mediathek-video-item-factory.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-mediathek-video-item-factory.vala, do not modify */

/*
 * Copyright (C) 2011 Jens Georg
 *
 * Author: Jens Georg <mail@jensge.org>
 *
 * 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 <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <rygel-server.h>
#include <libxml/tree.h>
#include <gee.h>
#include <rygel-core.h>
#include <libsoup/soup.h>


#define RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY (rygel_mediathek_video_item_factory_get_type ())
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY, RygelMediathekVideoItemFactory))
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY, RygelMediathekVideoItemFactoryClass))
#define RYGEL_MEDIATHEK_IS_VIDEO_ITEM_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY))
#define RYGEL_MEDIATHEK_IS_VIDEO_ITEM_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY))
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY, RygelMediathekVideoItemFactoryClass))

typedef struct _RygelMediathekVideoItemFactory RygelMediathekVideoItemFactory;
typedef struct _RygelMediathekVideoItemFactoryClass RygelMediathekVideoItemFactoryClass;
typedef struct _RygelMediathekVideoItemFactoryPrivate RygelMediathekVideoItemFactoryPrivate;

#define RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER (rygel_mediathek_playlist_parser_get_type ())
#define RYGEL_MEDIATHEK_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER, RygelMediathekPlaylistParser))
#define RYGEL_MEDIATHEK_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER, RygelMediathekPlaylistParserClass))
#define RYGEL_MEDIATHEK_IS_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_IS_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_PLAYLIST_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_PLAYLIST_PARSER, RygelMediathekPlaylistParserClass))

typedef struct _RygelMediathekPlaylistParser RygelMediathekPlaylistParser;
typedef struct _RygelMediathekPlaylistParserClass RygelMediathekPlaylistParserClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _RygelMediathekVideoItemFactoryCreateData RygelMediathekVideoItemFactoryCreateData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER (rygel_mediathek_asx_playlist_parser_get_type ())
#define RYGEL_MEDIATHEK_ASX_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER, RygelMediathekAsxPlaylistParser))
#define RYGEL_MEDIATHEK_ASX_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER, RygelMediathekAsxPlaylistParserClass))
#define RYGEL_MEDIATHEK_IS_ASX_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_IS_ASX_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_ASX_PLAYLIST_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_ASX_PLAYLIST_PARSER, RygelMediathekAsxPlaylistParserClass))

typedef struct _RygelMediathekAsxPlaylistParser RygelMediathekAsxPlaylistParser;
typedef struct _RygelMediathekAsxPlaylistParserClass RygelMediathekAsxPlaylistParserClass;

#define RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER (rygel_mediathek_mov_playlist_parser_get_type ())
#define RYGEL_MEDIATHEK_MOV_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER, RygelMediathekMovPlaylistParser))
#define RYGEL_MEDIATHEK_MOV_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER, RygelMediathekMovPlaylistParserClass))
#define RYGEL_MEDIATHEK_IS_MOV_PLAYLIST_PARSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_IS_MOV_PLAYLIST_PARSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER))
#define RYGEL_MEDIATHEK_MOV_PLAYLIST_PARSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_MOV_PLAYLIST_PARSER, RygelMediathekMovPlaylistParserClass))

typedef struct _RygelMediathekMovPlaylistParser RygelMediathekMovPlaylistParser;
typedef struct _RygelMediathekMovPlaylistParserClass RygelMediathekMovPlaylistParserClass;

typedef enum  {
	RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR,
	RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_NETWORK_ERROR
} RygelMediathekVideoItemError;
#define RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR rygel_mediathek_video_item_error_quark ()
struct _RygelMediathekVideoItemFactory {
	GObject parent_instance;
	RygelMediathekVideoItemFactoryPrivate * priv;
};

struct _RygelMediathekVideoItemFactoryClass {
	GObjectClass parent_class;
};

struct _RygelMediathekVideoItemFactoryPrivate {
	RygelMediathekPlaylistParser* playlist_parser;
	gchar* video_format;
};

struct _RygelMediathekVideoItemFactoryCreateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediathekVideoItemFactory* self;
	RygelMediaContainer* parent;
	xmlNode* xml_item;
	RygelVideoItem* result;
	gchar* title;
	gchar* playlist_url;
	gchar* date;
	gchar* description;
	xmlNode* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	RygelMediathekPlaylistParser* _tmp5_;
	const gchar* _tmp6_;
	GeeList* _tmp7_;
	GeeList* resolved_uris;
	gboolean _tmp8_;
	GeeList* _tmp9_;
	GeeList* _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
	gboolean _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* id;
	const gchar* _tmp16_;
	RygelMediaContainer* _tmp17_;
	const gchar* _tmp18_;
	RygelVideoItem* _tmp19_;
	RygelVideoItem* item;
	RygelVideoItem* _tmp20_;
	RygelMediathekPlaylistParser* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	RygelVideoItem* _tmp25_;
	gchar* _tmp26_;
	RygelVideoItem* _tmp27_;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	RygelVideoItem* _tmp30_;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	RygelVideoItem* _tmp33_;
	gchar* _tmp34_;
	GeeList* _tmp35_;
	GeeList* _tmp36_;
	GeeList* _uri_list;
	GeeList* _tmp37_;
	gint _tmp38_;
	gint _tmp39_;
	gint _uri_size;
	gint _uri_index;
	gint _tmp40_;
	gint _tmp41_;
	gint _tmp42_;
	GeeList* _tmp43_;
	gint _tmp44_;
	gpointer _tmp45_;
	gchar* uri;
	RygelVideoItem* _tmp46_;
	const gchar* _tmp47_;
	GError * _inner_error_;
};


static gpointer rygel_mediathek_video_item_factory_parent_class = NULL;
static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_instance;
static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_instance = NULL;

GQuark rygel_mediathek_video_item_error_quark (void);
GType rygel_mediathek_video_item_factory_get_type (void) G_GNUC_CONST;
GType rygel_mediathek_playlist_parser_get_type (void) G_GNUC_CONST;
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY, RygelMediathekVideoItemFactoryPrivate))
enum  {
	RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_DUMMY_PROPERTY
};
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV "wmv"
#define RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_MP4 "mp4"
RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_get_default (void);
static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_new (void);
static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_construct (GType object_type);
static void rygel_mediathek_video_item_factory_create_data_free (gpointer _data);
void rygel_mediathek_video_item_factory_create (RygelMediathekVideoItemFactory* self, RygelMediaContainer* parent, xmlNode* xml_item, GAsyncReadyCallback _callback_, gpointer _user_data_);
RygelVideoItem* rygel_mediathek_video_item_factory_create_finish (RygelMediathekVideoItemFactory* self, GAsyncResult* _res_, GError** error);
static gboolean rygel_mediathek_video_item_factory_create_co (RygelMediathekVideoItemFactoryCreateData* _data_);
static void rygel_mediathek_video_item_factory_extract_data_from_xml (RygelMediathekVideoItemFactory* self, xmlNode* item, gchar** title, gchar** playlist_url, gchar** date, gchar** description, GError** error);
void rygel_mediathek_playlist_parser_parse (RygelMediathekPlaylistParser* self, const gchar* uri, GAsyncReadyCallback _callback_, gpointer _user_data_);
GeeList* rygel_mediathek_playlist_parser_parse_finish (RygelMediathekPlaylistParser* self, GAsyncResult* _res_, GError** error);
static void rygel_mediathek_video_item_factory_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
const gchar* rygel_mediathek_playlist_parser_get_mime_type (RygelMediathekPlaylistParser* self);
SoupSessionAsync* rygel_mediathek_root_container_get_default_session (void);
RygelMediathekAsxPlaylistParser* rygel_mediathek_asx_playlist_parser_new (SoupSession* session);
RygelMediathekAsxPlaylistParser* rygel_mediathek_asx_playlist_parser_construct (GType object_type, SoupSession* session);
GType rygel_mediathek_asx_playlist_parser_get_type (void) G_GNUC_CONST;
RygelMediathekMovPlaylistParser* rygel_mediathek_mov_playlist_parser_new (SoupSession* session);
RygelMediathekMovPlaylistParser* rygel_mediathek_mov_playlist_parser_construct (GType object_type, SoupSession* session);
GType rygel_mediathek_mov_playlist_parser_get_type (void) G_GNUC_CONST;
static gboolean rygel_mediathek_video_item_factory_namespace_ok (RygelMediathekVideoItemFactory* self, xmlNode* node, const gchar* prefix);
const gchar* rygel_mediathek_playlist_parser_get_playlist_suffix (RygelMediathekPlaylistParser* self);
static void rygel_mediathek_video_item_factory_finalize (GObject* obj);


GQuark rygel_mediathek_video_item_error_quark (void) {
	return g_quark_from_static_string ("rygel_mediathek_video_item_error-quark");
}


static gpointer _g_object_ref0 (gpointer self) {
#line 40 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return self ? g_object_ref (self) : NULL;
#line 220 "rygel-mediathek-video-item-factory.c"
}


RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_get_default (void) {
	RygelMediathekVideoItemFactory* result = NULL;
	RygelMediathekVideoItemFactory* _tmp0_;
	RygelMediathekVideoItemFactory* _tmp2_;
	RygelMediathekVideoItemFactory* _tmp3_;
#line 36 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp0_ = rygel_mediathek_video_item_factory_instance;
#line 36 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp0_ == NULL) {
#line 233 "rygel-mediathek-video-item-factory.c"
		RygelMediathekVideoItemFactory* _tmp1_;
#line 37 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp1_ = rygel_mediathek_video_item_factory_new ();
#line 37 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_object_unref0 (rygel_mediathek_video_item_factory_instance);
#line 37 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		rygel_mediathek_video_item_factory_instance = _tmp1_;
#line 241 "rygel-mediathek-video-item-factory.c"
	}
#line 40 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp2_ = rygel_mediathek_video_item_factory_instance;
#line 40 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 40 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	result = _tmp3_;
#line 40 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return result;
#line 251 "rygel-mediathek-video-item-factory.c"
}


static void rygel_mediathek_video_item_factory_create_data_free (gpointer _data) {
	RygelMediathekVideoItemFactoryCreateData* _data_;
	_data_ = _data;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->parent);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->result);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->self);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_slice_free (RygelMediathekVideoItemFactoryCreateData, _data_);
#line 266 "rygel-mediathek-video-item-factory.c"
}


void rygel_mediathek_video_item_factory_create (RygelMediathekVideoItemFactory* self, RygelMediaContainer* parent, xmlNode* xml_item, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediathekVideoItemFactoryCreateData* _data_;
	RygelMediathekVideoItemFactory* _tmp0_;
	RygelMediaContainer* _tmp1_;
	RygelMediaContainer* _tmp2_;
	xmlNode* _tmp3_;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_ = g_slice_new0 (RygelMediathekVideoItemFactoryCreateData);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_mediathek_video_item_factory_create);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_mediathek_video_item_factory_create_data_free);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->self = _tmp0_;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp1_ = parent;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->parent = _tmp2_;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp3_ = xml_item;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->xml_item = _tmp3_;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_mediathek_video_item_factory_create_co (_data_);
#line 298 "rygel-mediathek-video-item-factory.c"
}


RygelVideoItem* rygel_mediathek_video_item_factory_create_finish (RygelMediathekVideoItemFactory* self, GAsyncResult* _res_, GError** error) {
	RygelVideoItem* result;
	RygelMediathekVideoItemFactoryCreateData* _data_;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		return NULL;
#line 309 "rygel-mediathek-video-item-factory.c"
	}
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	result = _data_->result;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->result = NULL;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return result;
#line 319 "rygel-mediathek-video-item-factory.c"
}


static void rygel_mediathek_video_item_factory_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelMediathekVideoItemFactoryCreateData* _data_;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_ = _user_data_;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_source_object_ = source_object;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_res_ = _res_;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_mediathek_video_item_factory_create_co (_data_);
#line 333 "rygel-mediathek-video-item-factory.c"
}


static gboolean rygel_mediathek_video_item_factory_create_co (RygelMediathekVideoItemFactoryCreateData* _data_) {
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	switch (_data_->_state_) {
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		case 0:
#line 342 "rygel-mediathek-video-item-factory.c"
		goto _state_0;
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		case 1:
#line 346 "rygel-mediathek-video-item-factory.c"
		goto _state_1;
		default:
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_assert_not_reached ();
#line 351 "rygel-mediathek-video-item-factory.c"
	}
	_state_0:
#line 46 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->description = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp0_ = _data_->xml_item;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp1_ = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp2_ = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp3_ = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp4_ = NULL;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_mediathek_video_item_factory_extract_data_from_xml (_data_->self, _data_->_tmp0_, &_data_->_tmp1_, &_data_->_tmp2_, &_data_->_tmp3_, &_data_->_tmp4_, &_data_->_inner_error_);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->title);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->title = _data_->_tmp1_;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->playlist_url);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->playlist_url = _data_->_tmp2_;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->date);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->date = _data_->_tmp3_;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->description);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->description = _data_->_tmp4_;
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_inner_error_ != NULL) {
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_data_->_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_error_free (_data_->_inner_error_);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->description);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->date);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->playlist_url);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->title);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			if (_data_->_state_ == 0) {
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 404 "rygel-mediathek-video-item-factory.c"
			} else {
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 408 "rygel-mediathek-video-item-factory.c"
			}
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_object_unref (_data_->_async_result);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return FALSE;
#line 414 "rygel-mediathek-video-item-factory.c"
		} else {
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->description);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->date);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->playlist_url);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->title);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_data_->_inner_error_);
#line 48 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return FALSE;
#line 430 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp5_ = _data_->self->priv->playlist_parser;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp6_ = _data_->playlist_url;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_state_ = 1;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_mediathek_playlist_parser_parse (_data_->_tmp5_, _data_->_tmp6_, rygel_mediathek_video_item_factory_create_ready, _data_);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return FALSE;
#line 443 "rygel-mediathek-video-item-factory.c"
	_state_1:
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp7_ = NULL;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp7_ = rygel_mediathek_playlist_parser_parse_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->resolved_uris = _data_->_tmp7_;
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_inner_error_ != NULL) {
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_data_->_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_error_free (_data_->_inner_error_);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->description);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->date);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->playlist_url);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->title);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			if (_data_->_state_ == 0) {
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 471 "rygel-mediathek-video-item-factory.c"
			} else {
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 475 "rygel-mediathek-video-item-factory.c"
			}
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_object_unref (_data_->_async_result);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return FALSE;
#line 481 "rygel-mediathek-video-item-factory.c"
		} else {
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->description);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->date);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->playlist_url);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->title);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_data_->_inner_error_);
#line 54 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return FALSE;
#line 497 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp9_ = _data_->resolved_uris;
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_tmp9_ == NULL) {
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp8_ = TRUE;
#line 506 "rygel-mediathek-video-item-factory.c"
	} else {
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp10_ = _data_->resolved_uris;
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp11_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp10_);
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp12_ = _data_->_tmp11_;
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp8_ = _data_->_tmp12_ == 0;
#line 516 "rygel-mediathek-video-item-factory.c"
	}
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp13_ = _data_->_tmp8_;
#line 56 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_tmp13_) {
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->result = NULL;
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_object_unref0 (_data_->resolved_uris);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_data_->description);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_data_->date);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_data_->playlist_url);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_data_->title);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_data_->_state_ == 0) {
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 538 "rygel-mediathek-video-item-factory.c"
		} else {
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 542 "rygel-mediathek-video-item-factory.c"
		}
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_object_unref (_data_->_async_result);
#line 57 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		return FALSE;
#line 548 "rygel-mediathek-video-item-factory.c"
	}
#line 60 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp14_ = _data_->title;
#line 60 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp15_ = NULL;
#line 60 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp15_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _data_->_tmp14_, (gsize) (-1));
#line 60 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->id = _data_->_tmp15_;
#line 61 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp16_ = _data_->id;
#line 61 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp17_ = _data_->parent;
#line 61 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp18_ = _data_->title;
#line 61 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp19_ = rygel_video_item_new (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp18_, RYGEL_VIDEO_ITEM_UPNP_CLASS);
#line 61 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->item = _data_->_tmp19_;
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp20_ = _data_->item;
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp21_ = _data_->self->priv->playlist_parser;
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp22_ = rygel_mediathek_playlist_parser_get_mime_type (_data_->_tmp21_);
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp24_ = g_strdup (_data_->_tmp23_);
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (((RygelMediaItem*) _data_->_tmp20_)->mime_type);
#line 63 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	((RygelMediaItem*) _data_->_tmp20_)->mime_type = _data_->_tmp24_;
#line 64 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp25_ = _data_->item;
#line 64 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp26_ = g_strdup ("ZDF - Second German TV Channel Streams");
#line 64 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->_tmp25_->author);
#line 64 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp25_->author = _data_->_tmp26_;
#line 65 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp27_ = _data_->item;
#line 65 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp28_ = _data_->date;
#line 65 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp29_ = g_strdup (_data_->_tmp28_);
#line 65 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (((RygelMediaItem*) _data_->_tmp27_)->date);
#line 65 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	((RygelMediaItem*) _data_->_tmp27_)->date = _data_->_tmp29_;
#line 66 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp30_ = _data_->item;
#line 66 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp31_ = _data_->description;
#line 66 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_media_item_set_description ((RygelMediaItem*) _data_->_tmp30_, _data_->_tmp31_);
#line 68 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->_tmp32_ = _data_->self->priv->video_format;
#line 68 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (g_strcmp0 (_data_->_tmp32_, RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV) == 0) {
#line 69 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp33_ = _data_->item;
#line 69 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp34_ = g_strdup ("WMVMED_FULL");
#line 69 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (((RygelMediaItem*) _data_->_tmp33_)->dlna_profile);
#line 69 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		((RygelMediaItem*) _data_->_tmp33_)->dlna_profile = _data_->_tmp34_;
#line 618 "rygel-mediathek-video-item-factory.c"
	}
	{
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp35_ = _data_->resolved_uris;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp36_ = _g_object_ref0 (_data_->_tmp35_);
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_uri_list = _data_->_tmp36_;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp37_ = _data_->_uri_list;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp38_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp37_);
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_tmp39_ = _data_->_tmp38_;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_uri_size = _data_->_tmp39_;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_data_->_uri_index = -1;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		while (TRUE) {
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp40_ = _data_->_uri_index;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_uri_index = _data_->_tmp40_ + 1;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp41_ = _data_->_uri_index;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp42_ = _data_->_uri_size;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			if (!(_data_->_tmp41_ < _data_->_tmp42_)) {
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				break;
#line 651 "rygel-mediathek-video-item-factory.c"
			}
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp43_ = _data_->_uri_list;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp44_ = _data_->_uri_index;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp45_ = NULL;
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp45_ = gee_list_get (_data_->_tmp43_, _data_->_tmp44_);
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->uri = (gchar*) _data_->_tmp45_;
#line 73 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp46_ = _data_->item;
#line 73 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_data_->_tmp47_ = _data_->uri;
#line 73 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			rygel_media_item_add_uri ((RygelMediaItem*) _data_->_tmp46_, _data_->_tmp47_);
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (_data_->uri);
#line 671 "rygel-mediathek-video-item-factory.c"
		}
#line 72 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_object_unref0 (_data_->_uri_list);
#line 675 "rygel-mediathek-video-item-factory.c"
	}
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_data_->result = _data_->item;
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->id);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->resolved_uris);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->description);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->date);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->playlist_url);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->title);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_state_ == 0) {
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 695 "rygel-mediathek-video-item-factory.c"
	} else {
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 699 "rygel-mediathek-video-item-factory.c"
	}
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_object_unref (_data_->_async_result);
#line 76 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return FALSE;
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->item);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->id);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (_data_->resolved_uris);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->description);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->date);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->playlist_url);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_data_->title);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_data_->_state_ == 0) {
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 723 "rygel-mediathek-video-item-factory.c"
	} else {
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 727 "rygel-mediathek-video-item-factory.c"
	}
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_object_unref (_data_->_async_result);
#line 43 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return FALSE;
#line 733 "rygel-mediathek-video-item-factory.c"
}


static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_construct (GType object_type) {
	RygelMediathekVideoItemFactory * self = NULL;
	RygelMetaConfig* _tmp0_ = NULL;
	RygelMetaConfig* config;
	gchar* _tmp1_;
	const gchar* _tmp11_;
	SoupSessionAsync* _tmp12_ = NULL;
	SoupSessionAsync* session;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	GQuark _tmp16_ = 0U;
	GError * _inner_error_ = NULL;
#line 79 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	self = (RygelMediathekVideoItemFactory*) g_object_new (object_type, NULL);
#line 80 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp0_ = rygel_meta_config_get_default ();
#line 80 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	config = _tmp0_;
#line 81 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp1_ = g_strdup (RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV);
#line 81 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (self->priv->video_format);
#line 81 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	self->priv->video_format = _tmp1_;
#line 761 "rygel-mediathek-video-item-factory.c"
	{
		gchar* _tmp2_ = NULL;
		gchar* _tmp3_;
		const gchar* _tmp4_;
		gchar* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
		const gchar* _tmp7_;
		gboolean _tmp9_;
#line 84 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp2_ = rygel_configuration_get_string ((RygelConfiguration*) config, "ZDFMediathek", "video-format", &_inner_error_);
#line 84 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp3_ = _tmp2_;
#line 84 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_ != NULL) {
#line 776 "rygel-mediathek-video-item-factory.c"
			goto __catch2_g_error;
		}
#line 84 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (self->priv->video_format);
#line 84 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		self->priv->video_format = _tmp3_;
#line 86 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp4_ = self->priv->video_format;
#line 86 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp5_ = g_utf8_casefold (_tmp4_, (gssize) (-1));
#line 86 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (self->priv->video_format);
#line 86 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		self->priv->video_format = _tmp5_;
#line 87 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp7_ = self->priv->video_format;
#line 87 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (g_strcmp0 (_tmp7_, RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV) != 0) {
#line 795 "rygel-mediathek-video-item-factory.c"
			const gchar* _tmp8_;
#line 88 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp8_ = self->priv->video_format;
#line 88 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp6_ = g_strcmp0 (_tmp8_, RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_MP4) != 0;
#line 801 "rygel-mediathek-video-item-factory.c"
		} else {
#line 87 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp6_ = FALSE;
#line 805 "rygel-mediathek-video-item-factory.c"
		}
#line 87 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp9_ = _tmp6_;
#line 87 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_tmp9_) {
#line 811 "rygel-mediathek-video-item-factory.c"
			gchar* _tmp10_;
#line 89 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp10_ = g_strdup (RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV);
#line 89 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_g_free0 (self->priv->video_format);
#line 89 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			self->priv->video_format = _tmp10_;
#line 819 "rygel-mediathek-video-item-factory.c"
		}
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* _error_ = NULL;
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_error_ = _inner_error_;
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = NULL;
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_error_free0 (_error_);
#line 832 "rygel-mediathek-video-item-factory.c"
	}
	__finally2:
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_inner_error_ != NULL) {
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_object_unref0 (config);
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		g_clear_error (&_inner_error_);
#line 83 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		return NULL;
#line 845 "rygel-mediathek-video-item-factory.c"
	}
#line 93 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp11_ = self->priv->video_format;
#line 93 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_debug ("rygel-mediathek-video-item-factory.vala:93: Exposing mediathek items i" \
"n format: %s", _tmp11_);
#line 94 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp12_ = rygel_mediathek_root_container_get_default_session ();
#line 94 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	session = _tmp12_;
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp13_ = self->priv->video_format;
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp14_ = _tmp13_;
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp16_ = (NULL == _tmp14_) ? 0 : g_quark_from_string (_tmp14_);
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp16_ == g_quark_from_string (RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_WMV)) {
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		switch (0) {
#line 865 "rygel-mediathek-video-item-factory.c"
			default:
			{
				SoupSessionAsync* _tmp17_;
				RygelMediathekAsxPlaylistParser* _tmp18_;
#line 98 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp17_ = session;
#line 98 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp18_ = rygel_mediathek_asx_playlist_parser_new ((SoupSession*) _tmp17_);
#line 98 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_g_object_unref0 (self->priv->playlist_parser);
#line 98 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				self->priv->playlist_parser = (RygelMediathekPlaylistParser*) _tmp18_;
#line 99 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				break;
#line 880 "rygel-mediathek-video-item-factory.c"
			}
		}
	} else if (_tmp16_ == g_quark_from_string (RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_VIDEO_FORMAT_MP4)) {
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		switch (0) {
#line 886 "rygel-mediathek-video-item-factory.c"
			default:
			{
				SoupSessionAsync* _tmp19_;
				RygelMediathekMovPlaylistParser* _tmp20_;
#line 101 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp19_ = session;
#line 101 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp20_ = rygel_mediathek_mov_playlist_parser_new ((SoupSession*) _tmp19_);
#line 101 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_g_object_unref0 (self->priv->playlist_parser);
#line 101 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				self->priv->playlist_parser = (RygelMediathekPlaylistParser*) _tmp20_;
#line 102 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				break;
#line 901 "rygel-mediathek-video-item-factory.c"
			}
		}
	} else {
#line 96 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		switch (0) {
#line 907 "rygel-mediathek-video-item-factory.c"
			default:
			{
#line 104 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				g_assert_not_reached ();
#line 912 "rygel-mediathek-video-item-factory.c"
			}
		}
	}
#line 79 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (session);
#line 79 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (config);
#line 79 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return self;
#line 922 "rygel-mediathek-video-item-factory.c"
}


static RygelMediathekVideoItemFactory* rygel_mediathek_video_item_factory_new (void) {
#line 79 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return rygel_mediathek_video_item_factory_construct (RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY);
#line 929 "rygel-mediathek-video-item-factory.c"
}


static gboolean rygel_mediathek_video_item_factory_namespace_ok (RygelMediathekVideoItemFactory* self, xmlNode* node, const gchar* prefix) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	xmlNode* _tmp1_;
	xmlNs* _tmp2_;
	gboolean _tmp7_;
#line 108 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 108 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_return_val_if_fail (prefix != NULL, FALSE);
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp1_ = node;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp2_ = _tmp1_->ns;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp2_ != NULL) {
#line 949 "rygel-mediathek-video-item-factory.c"
		xmlNode* _tmp3_;
		xmlNs* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp3_ = node;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp4_ = _tmp3_->ns;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp5_ = _tmp4_->prefix;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp6_ = prefix;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp0_ = g_strcmp0 (_tmp5_, _tmp6_) == 0;
#line 964 "rygel-mediathek-video-item-factory.c"
	} else {
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp0_ = FALSE;
#line 968 "rygel-mediathek-video-item-factory.c"
	}
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp7_ = _tmp0_;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	result = _tmp7_;
#line 109 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	return result;
#line 976 "rygel-mediathek-video-item-factory.c"
}


static void rygel_mediathek_video_item_factory_extract_data_from_xml (RygelMediathekVideoItemFactory* self, xmlNode* item, gchar** title, gchar** playlist_url, gchar** date, gchar** description, GError** error) {
	gchar* _vala_title = NULL;
	gchar* _vala_playlist_url = NULL;
	gchar* _vala_date = NULL;
	gchar* _vala_description = NULL;
	xmlNode* _tmp0_;
	xmlNode* _tmp1_ = NULL;
	xmlNode* title_node;
	xmlNode* _tmp2_;
	xmlNode* _tmp3_ = NULL;
	xmlNode* group;
	xmlNode* _tmp4_;
	xmlNode* _tmp6_;
	xmlNode* _tmp8_;
	gboolean _tmp9_ = FALSE;
	xmlNode* _tmp11_;
	xmlNode* _tmp12_ = NULL;
	xmlNode* content;
	xmlNode* _tmp13_;
	const gchar* _tmp35_;
	xmlNode* _tmp37_;
	gchar* _tmp38_ = NULL;
	xmlNode* _tmp39_;
	xmlNode* _tmp40_ = NULL;
	xmlNode* date_node;
	gboolean _tmp41_ = FALSE;
	xmlNode* _tmp42_;
	gboolean _tmp45_;
	xmlNode* _tmp48_;
	xmlNode* _tmp49_ = NULL;
	xmlNode* desc_node;
	xmlNode* _tmp50_;
	GError * _inner_error_ = NULL;
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_return_if_fail (self != NULL);
#line 118 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp0_ = item;
#line 118 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp1_ = rygel_xml_utils_get_element (_tmp0_, "title", NULL);
#line 118 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	title_node = _tmp1_;
#line 119 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp2_ = item;
#line 119 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp3_ = rygel_xml_utils_get_element (_tmp2_, "group", NULL);
#line 119 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	group = _tmp3_;
#line 120 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_vala_playlist_url);
#line 120 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_vala_playlist_url = NULL;
#line 122 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp4_ = title_node;
#line 122 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp4_ == NULL) {
#line 1035 "rygel-mediathek-video-item-factory.c"
		GError* _tmp5_;
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp5_ = g_error_new_literal (RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR, RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR, "No 'title' element");
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = _tmp5_;
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_propagate_error (error, _inner_error_);
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1047 "rygel-mediathek-video-item-factory.c"
		} else {
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_inner_error_);
#line 123 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1055 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 126 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp6_ = group;
#line 126 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp6_ == NULL) {
#line 1062 "rygel-mediathek-video-item-factory.c"
		GError* _tmp7_;
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp7_ = g_error_new_literal (RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR, RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR, "No 'group' element");
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = _tmp7_;
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_propagate_error (error, _inner_error_);
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1074 "rygel-mediathek-video-item-factory.c"
		} else {
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_inner_error_);
#line 127 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1082 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 130 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp8_ = group;
#line 130 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp9_ = rygel_mediathek_video_item_factory_namespace_ok (self, _tmp8_, "media");
#line 130 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (!_tmp9_) {
#line 1091 "rygel-mediathek-video-item-factory.c"
		GError* _tmp10_;
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp10_ = g_error_new_literal (RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR, RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR, "Invalid namespace");
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = _tmp10_;
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_propagate_error (error, _inner_error_);
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1103 "rygel-mediathek-video-item-factory.c"
		} else {
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_inner_error_);
#line 131 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1111 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 134 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp11_ = group;
#line 134 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp12_ = rygel_xml_utils_get_element (_tmp11_, "content", NULL);
#line 134 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	content = _tmp12_;
#line 135 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp13_ = content;
#line 135 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp13_ == NULL) {
#line 1124 "rygel-mediathek-video-item-factory.c"
		GError* _tmp14_;
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp14_ = g_error_new_literal (RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR, RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR, "'group' has no 'content' element");
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = _tmp14_;
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_propagate_error (error, _inner_error_);
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1136 "rygel-mediathek-video-item-factory.c"
		} else {
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_inner_error_);
#line 136 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1144 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 141 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	while (TRUE) {
#line 1149 "rygel-mediathek-video-item-factory.c"
		xmlNode* _tmp15_;
		xmlNode* _tmp16_;
		xmlAttr* _tmp17_ = NULL;
		xmlAttr* url_attribute;
		gboolean _tmp18_ = FALSE;
		xmlAttr* _tmp19_;
		gboolean _tmp22_;
		xmlNode* _tmp33_;
		xmlNode* _tmp34_;
#line 141 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp15_ = content;
#line 141 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (!(_tmp15_ != NULL)) {
#line 141 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			break;
#line 1165 "rygel-mediathek-video-item-factory.c"
		}
#line 142 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp16_ = content;
#line 142 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp17_ = xmlHasProp (_tmp16_, "url");
#line 142 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		url_attribute = _tmp17_;
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp19_ = url_attribute;
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_tmp19_ != NULL) {
#line 1177 "rygel-mediathek-video-item-factory.c"
			xmlNode* _tmp20_;
			gboolean _tmp21_ = FALSE;
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp20_ = content;
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp21_ = rygel_mediathek_video_item_factory_namespace_ok (self, _tmp20_, "media");
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp18_ = _tmp21_;
#line 1186 "rygel-mediathek-video-item-factory.c"
		} else {
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp18_ = FALSE;
#line 1190 "rygel-mediathek-video-item-factory.c"
		}
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp22_ = _tmp18_;
#line 143 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_tmp22_) {
#line 1196 "rygel-mediathek-video-item-factory.c"
			xmlAttr* _tmp23_;
			xmlNode* _tmp24_;
			const gchar* _tmp25_;
			const gchar* url;
			const gchar* _tmp26_;
			RygelMediathekPlaylistParser* _tmp27_;
			const gchar* _tmp28_;
			const gchar* _tmp29_;
			gboolean _tmp30_ = FALSE;
#line 145 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp23_ = url_attribute;
#line 145 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp24_ = _tmp23_->children;
#line 145 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp25_ = _tmp24_->content;
#line 145 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			url = _tmp25_;
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp26_ = url;
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp27_ = self->priv->playlist_parser;
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp28_ = rygel_mediathek_playlist_parser_get_playlist_suffix (_tmp27_);
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp29_ = _tmp28_;
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			_tmp30_ = g_str_has_suffix (_tmp26_, _tmp29_);
#line 146 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			if (_tmp30_) {
#line 1226 "rygel-mediathek-video-item-factory.c"
				const gchar* _tmp31_;
				gchar* _tmp32_;
#line 147 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp31_ = url;
#line 147 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_tmp32_ = g_strdup (_tmp31_);
#line 147 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_g_free0 (_vala_playlist_url);
#line 147 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				_vala_playlist_url = _tmp32_;
#line 149 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
				break;
#line 1239 "rygel-mediathek-video-item-factory.c"
			}
		}
#line 153 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp33_ = content;
#line 153 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp34_ = _tmp33_->next;
#line 153 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		content = _tmp34_;
#line 1248 "rygel-mediathek-video-item-factory.c"
	}
#line 156 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp35_ = _vala_playlist_url;
#line 156 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp35_ == NULL) {
#line 1254 "rygel-mediathek-video-item-factory.c"
		GError* _tmp36_;
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp36_ = g_error_new_literal (RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR, RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR_XML_PARSE_ERROR, "No URL found");
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_inner_error_ = _tmp36_;
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		if (_inner_error_->domain == RYGEL_MEDIATHEK_VIDEO_ITEM_ERROR) {
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_propagate_error (error, _inner_error_);
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1266 "rygel-mediathek-video-item-factory.c"
		} else {
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-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 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			g_clear_error (&_inner_error_);
#line 157 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
			return;
#line 1274 "rygel-mediathek-video-item-factory.c"
		}
	}
#line 160 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp37_ = title_node;
#line 160 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp38_ = xmlNodeGetContent (_tmp37_);
#line 160 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (_vala_title);
#line 160 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_vala_title = _tmp38_;
#line 162 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp39_ = item;
#line 162 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp40_ = rygel_xml_utils_get_element (_tmp39_, "date", NULL);
#line 162 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	date_node = _tmp40_;
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp42_ = date_node;
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp42_ != NULL) {
#line 1295 "rygel-mediathek-video-item-factory.c"
		xmlNode* _tmp43_;
		gboolean _tmp44_ = FALSE;
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp43_ = date_node;
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp44_ = rygel_mediathek_video_item_factory_namespace_ok (self, _tmp43_, "dc");
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp41_ = _tmp44_;
#line 1304 "rygel-mediathek-video-item-factory.c"
	} else {
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp41_ = FALSE;
#line 1308 "rygel-mediathek-video-item-factory.c"
	}
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp45_ = _tmp41_;
#line 163 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp45_) {
#line 1314 "rygel-mediathek-video-item-factory.c"
		xmlNode* _tmp46_;
		gchar* _tmp47_ = NULL;
#line 164 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp46_ = date_node;
#line 164 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp47_ = xmlNodeGetContent (_tmp46_);
#line 164 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_date);
#line 164 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_vala_date = _tmp47_;
#line 1325 "rygel-mediathek-video-item-factory.c"
	} else {
#line 166 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_date);
#line 166 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_vala_date = NULL;
#line 1331 "rygel-mediathek-video-item-factory.c"
	}
#line 169 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp48_ = item;
#line 169 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp49_ = rygel_xml_utils_get_element (_tmp48_, "description", NULL);
#line 169 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	desc_node = _tmp49_;
#line 170 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_tmp50_ = desc_node;
#line 170 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (_tmp50_ != NULL) {
#line 1343 "rygel-mediathek-video-item-factory.c"
		xmlNode* _tmp51_;
		gchar* _tmp52_ = NULL;
#line 171 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp51_ = desc_node;
#line 171 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_tmp52_ = xmlNodeGetContent (_tmp51_);
#line 171 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_description);
#line 171 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_vala_description = _tmp52_;
#line 1354 "rygel-mediathek-video-item-factory.c"
	} else {
#line 173 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_description);
#line 173 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_vala_description = NULL;
#line 1360 "rygel-mediathek-video-item-factory.c"
	}
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (title) {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		*title = _vala_title;
#line 1366 "rygel-mediathek-video-item-factory.c"
	} else {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_title);
#line 1370 "rygel-mediathek-video-item-factory.c"
	}
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (playlist_url) {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		*playlist_url = _vala_playlist_url;
#line 1376 "rygel-mediathek-video-item-factory.c"
	} else {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_playlist_url);
#line 1380 "rygel-mediathek-video-item-factory.c"
	}
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (date) {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		*date = _vala_date;
#line 1386 "rygel-mediathek-video-item-factory.c"
	} else {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_date);
#line 1390 "rygel-mediathek-video-item-factory.c"
	}
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	if (description) {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		*description = _vala_description;
#line 1396 "rygel-mediathek-video-item-factory.c"
	} else {
#line 112 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
		_g_free0 (_vala_description);
#line 1400 "rygel-mediathek-video-item-factory.c"
	}
}


static void rygel_mediathek_video_item_factory_class_init (RygelMediathekVideoItemFactoryClass * klass) {
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	rygel_mediathek_video_item_factory_parent_class = g_type_class_peek_parent (klass);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	g_type_class_add_private (klass, sizeof (RygelMediathekVideoItemFactoryPrivate));
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_mediathek_video_item_factory_finalize;
#line 1412 "rygel-mediathek-video-item-factory.c"
}


static void rygel_mediathek_video_item_factory_instance_init (RygelMediathekVideoItemFactory * self) {
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	self->priv = RYGEL_MEDIATHEK_VIDEO_ITEM_FACTORY_GET_PRIVATE (self);
#line 1419 "rygel-mediathek-video-item-factory.c"
}


static void rygel_mediathek_video_item_factory_finalize (GObject* obj) {
	RygelMediathekVideoItemFactory * self;
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_MEDIATHEK_TYPE_VIDEO_ITEM_FACTORY, RygelMediathekVideoItemFactory);
#line 30 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_object_unref0 (self->priv->playlist_parser);
#line 33 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	_g_free0 (self->priv->video_format);
#line 28 "/home/jens/Source/rygel/src/plugins/mediathek/rygel-mediathek-video-item-factory.vala"
	G_OBJECT_CLASS (rygel_mediathek_video_item_factory_parent_class)->finalize (obj);
#line 1433 "rygel-mediathek-video-item-factory.c"
}


GType rygel_mediathek_video_item_factory_get_type (void) {
	static volatile gsize rygel_mediathek_video_item_factory_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_mediathek_video_item_factory_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediathekVideoItemFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_mediathek_video_item_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediathekVideoItemFactory), 0, (GInstanceInitFunc) rygel_mediathek_video_item_factory_instance_init, NULL };
		GType rygel_mediathek_video_item_factory_type_id;
		rygel_mediathek_video_item_factory_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelMediathekVideoItemFactory", &g_define_type_info, 0);
		g_once_init_leave (&rygel_mediathek_video_item_factory_type_id__volatile, rygel_mediathek_video_item_factory_type_id);
	}
	return rygel_mediathek_video_item_factory_type_id__volatile;
}



