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

/*
 * Copyright (C) 2012 Intel Corporation.
 *
 * Author: 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>


#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;

#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;
typedef struct _RygelMediaExportVideoItemPrivate RygelMediaExportVideoItemPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _RygelMediaExportVideoItemCommitData RygelMediaExportVideoItemCommitData;

#define RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE (rygel_media_export_media_cache_get_type ())
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCache))
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCacheClass))
#define RYGEL_MEDIA_EXPORT_IS_MEDIA_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE))
#define RYGEL_MEDIA_EXPORT_IS_MEDIA_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE))
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCacheClass))

typedef struct _RygelMediaExportMediaCache RygelMediaExportMediaCache;
typedef struct _RygelMediaExportMediaCacheClass RygelMediaExportMediaCacheClass;
typedef struct _RygelMediaExportVideoItemCommitCustomData RygelMediaExportVideoItemCommitCustomData;

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 _RygelMediaExportVideoItem {
	RygelVideoItem parent_instance;
	RygelMediaExportVideoItemPrivate * priv;
};

struct _RygelMediaExportVideoItemClass {
	RygelVideoItemClass parent_class;
};

struct _RygelMediaExportVideoItemCommitData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaExportVideoItem* self;
	GError * _inner_error_;
};

struct _RygelMediaExportVideoItemCommitCustomData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaExportVideoItem* self;
	gboolean override_guarded;
	RygelMediaExportMediaCache* cache;
	RygelMediaExportMediaCache* _tmp0_;
	gboolean _tmp1_;
	GError * _inner_error_;
};


static gpointer rygel_media_export_video_item_parent_class = NULL;
static RygelUpdatableObjectIface* rygel_media_export_video_item_rygel_updatable_object_parent_iface = NULL;
static RygelMediaExportUpdatableObjectIface* rygel_media_export_video_item_rygel_media_export_updatable_object_parent_iface = NULL;
static RygelTrackableItemIface* rygel_media_export_video_item_rygel_trackable_item_parent_iface = NULL;

GType rygel_media_export_updatable_object_get_type (void) G_GNUC_CONST;
GType rygel_media_export_video_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_MEDIA_EXPORT_VIDEO_ITEM_DUMMY_PROPERTY
};
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);
static void rygel_media_export_video_item_real_commit_data_free (gpointer _data);
static void rygel_media_export_video_item_real_commit (RygelUpdatableObject* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_media_export_video_item_real_commit_co (RygelMediaExportVideoItemCommitData* _data_);
void rygel_media_export_updatable_object_commit_custom (RygelMediaExportUpdatableObject* self, gboolean override_guarded, GAsyncReadyCallback _callback_, gpointer _user_data_);
void rygel_media_export_updatable_object_commit_custom_finish (RygelMediaExportUpdatableObject* self, GAsyncResult* _res_, GError** error);
static void rygel_media_export_video_item_commit_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void rygel_media_export_video_item_real_commit_custom_data_free (gpointer _data);
static void rygel_media_export_video_item_real_commit_custom (RygelMediaExportUpdatableObject* base, gboolean override_guarded, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_media_export_video_item_real_commit_custom_co (RygelMediaExportVideoItemCommitCustomData* _data_);
GType rygel_media_export_media_cache_get_type (void) G_GNUC_CONST;
RygelMediaExportMediaCache* rygel_media_export_media_cache_get_default (void);
void rygel_media_export_media_cache_save_item (RygelMediaExportMediaCache* self, RygelMediaFileItem* item, gboolean override_guarded, GError** error);


RygelMediaExportVideoItem* rygel_media_export_video_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class) {
	RygelMediaExportVideoItem * self = NULL;
	const gchar* _tmp0_ = NULL;
	RygelMediaContainer* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_return_val_if_fail (title != NULL, NULL);
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_return_val_if_fail (upnp_class != NULL, NULL);
#line 31 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp0_ = id;
#line 31 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp1_ = parent;
#line 31 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp2_ = title;
#line 31 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp3_ = upnp_class;
#line 31 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	self = (RygelMediaExportVideoItem*) rygel_video_item_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_);
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	return self;
#line 157 "rygel-media-export-video-item.c"
}


RygelMediaExportVideoItem* rygel_media_export_video_item_new (const gchar* id, RygelMediaContainer* parent, const gchar* title, const gchar* upnp_class) {
#line 27 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	return rygel_media_export_video_item_construct (RYGEL_MEDIA_EXPORT_TYPE_VIDEO_ITEM, id, parent, title, upnp_class);
#line 164 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_real_commit_data_free (gpointer _data) {
	RygelMediaExportVideoItemCommitData* _data_;
	_data_ = _data;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_slice_free (RygelMediaExportVideoItemCommitData, _data_);
#line 175 "rygel-media-export-video-item.c"
}


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


static void rygel_media_export_video_item_real_commit (RygelUpdatableObject* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaExportVideoItem * self;
	RygelMediaExportVideoItemCommitData* _data_;
	RygelMediaExportVideoItem* _tmp0_ = NULL;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	self = (RygelMediaExportVideoItem*) base;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_ = g_slice_new0 (RygelMediaExportVideoItemCommitData);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_export_video_item_real_commit);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_export_video_item_real_commit_data_free);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_real_commit_co (_data_);
#line 204 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_real_commit_finish (RygelUpdatableObject* base, GAsyncResult* _res_, GError** error) {
	RygelMediaExportVideoItemCommitData* _data_;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		return;
#line 214 "rygel-media-export-video-item.c"
	}
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 218 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_commit_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelMediaExportVideoItemCommitData* _data_;
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_ = _user_data_;
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_source_object_ = source_object;
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_res_ = _res_;
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_real_commit_co (_data_);
#line 232 "rygel-media-export-video-item.c"
}


static gboolean rygel_media_export_video_item_real_commit_co (RygelMediaExportVideoItemCommitData* _data_) {
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	switch (_data_->_state_) {
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		case 0:
#line 241 "rygel-media-export-video-item.c"
		goto _state_0;
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		case 1:
#line 245 "rygel-media-export-video-item.c"
		goto _state_1;
		default:
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_assert_not_reached ();
#line 250 "rygel-media-export-video-item.c"
	}
	_state_0:
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_state_ = 1;
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_updatable_object_commit_custom ((RygelMediaExportUpdatableObject*) _data_->self, TRUE, rygel_media_export_video_item_commit_ready, _data_);
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	return FALSE;
#line 259 "rygel-media-export-video-item.c"
	_state_1:
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_updatable_object_commit_custom_finish ((RygelMediaExportUpdatableObject*) _data_->self, _data_->_res_, &_data_->_inner_error_);
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_error_free (_data_->_inner_error_);
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		if (_data_->_state_ == 0) {
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 273 "rygel-media-export-video-item.c"
		} else {
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 277 "rygel-media-export-video-item.c"
		}
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_object_unref (_data_->_async_result);
#line 35 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		return FALSE;
#line 283 "rygel-media-export-video-item.c"
	}
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (_data_->_state_ == 0) {
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 289 "rygel-media-export-video-item.c"
	} else {
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 293 "rygel-media-export-video-item.c"
	}
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_object_unref (_data_->_async_result);
#line 34 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	return FALSE;
#line 299 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_real_commit_custom_data_free (gpointer _data) {
	RygelMediaExportVideoItemCommitCustomData* _data_;
	_data_ = _data;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_slice_free (RygelMediaExportVideoItemCommitCustomData, _data_);
#line 310 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_real_commit_custom (RygelMediaExportUpdatableObject* base, gboolean override_guarded, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaExportVideoItem * self;
	RygelMediaExportVideoItemCommitCustomData* _data_;
	RygelMediaExportVideoItem* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	self = (RygelMediaExportVideoItem*) base;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_ = g_slice_new0 (RygelMediaExportVideoItemCommitCustomData);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_export_video_item_real_commit_custom);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_export_video_item_real_commit_custom_data_free);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_tmp1_ = override_guarded;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->override_guarded = _tmp1_;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_real_commit_custom_co (_data_);
#line 337 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_real_commit_custom_finish (RygelMediaExportUpdatableObject* base, GAsyncResult* _res_, GError** error) {
	RygelMediaExportVideoItemCommitCustomData* _data_;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		return;
#line 347 "rygel-media-export-video-item.c"
	}
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 351 "rygel-media-export-video-item.c"
}


static gboolean rygel_media_export_video_item_real_commit_custom_co (RygelMediaExportVideoItemCommitCustomData* _data_) {
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	switch (_data_->_state_) {
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		case 0:
#line 360 "rygel-media-export-video-item.c"
		goto _state_0;
		default:
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_assert_not_reached ();
#line 365 "rygel-media-export-video-item.c"
	}
	_state_0:
#line 39 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_trackable_item_changed ((RygelTrackableItem*) _data_->self);
#line 40 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_tmp0_ = NULL;
#line 40 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_tmp0_ = rygel_media_export_media_cache_get_default ();
#line 40 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->cache = _data_->_tmp0_;
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_tmp1_ = FALSE;
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_data_->_tmp1_ = _data_->override_guarded;
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_media_cache_save_item (_data_->cache, (RygelMediaFileItem*) _data_->self, _data_->_tmp1_, &_data_->_inner_error_);
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_error_free (_data_->_inner_error_);
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		_g_object_unref0 (_data_->cache);
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		if (_data_->_state_ == 0) {
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 394 "rygel-media-export-video-item.c"
		} else {
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 398 "rygel-media-export-video-item.c"
		}
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_object_unref (_data_->_async_result);
#line 41 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		return FALSE;
#line 404 "rygel-media-export-video-item.c"
	}
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	_g_object_unref0 (_data_->cache);
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	if (_data_->_state_ == 0) {
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 412 "rygel-media-export-video-item.c"
	} else {
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 416 "rygel-media-export-video-item.c"
	}
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	g_object_unref (_data_->_async_result);
#line 38 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	return FALSE;
#line 422 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_class_init (RygelMediaExportVideoItemClass * klass) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_parent_class = g_type_class_peek_parent (klass);
#line 429 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_rygel_updatable_object_interface_init (RygelUpdatableObjectIface * iface) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_rygel_updatable_object_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	iface->commit = (void (*)(RygelUpdatableObject*, GError**)) rygel_media_export_video_item_real_commit;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	iface->commit_finish = rygel_media_export_video_item_real_commit_finish;
#line 440 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_rygel_media_export_updatable_object_interface_init (RygelMediaExportUpdatableObjectIface * iface) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_rygel_media_export_updatable_object_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	iface->commit_custom = (void (*)(RygelMediaExportUpdatableObject*, gboolean, GError**)) rygel_media_export_video_item_real_commit_custom;
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	iface->commit_custom_finish = rygel_media_export_video_item_real_commit_custom_finish;
#line 451 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_rygel_trackable_item_interface_init (RygelTrackableItemIface * iface) {
#line 23 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-video-item.vala"
	rygel_media_export_video_item_rygel_trackable_item_parent_iface = g_type_interface_peek_parent (iface);
#line 458 "rygel-media-export-video-item.c"
}


static void rygel_media_export_video_item_instance_init (RygelMediaExportVideoItem * self) {
}


GType rygel_media_export_video_item_get_type (void) {
	static volatile gsize rygel_media_export_video_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_export_video_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaExportVideoItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_export_video_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaExportVideoItem), 0, (GInstanceInitFunc) rygel_media_export_video_item_instance_init, NULL };
		static const GInterfaceInfo rygel_updatable_object_info = { (GInterfaceInitFunc) rygel_media_export_video_item_rygel_updatable_object_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo rygel_media_export_updatable_object_info = { (GInterfaceInitFunc) rygel_media_export_video_item_rygel_media_export_updatable_object_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo rygel_trackable_item_info = { (GInterfaceInitFunc) rygel_media_export_video_item_rygel_trackable_item_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType rygel_media_export_video_item_type_id;
		rygel_media_export_video_item_type_id = g_type_register_static (RYGEL_TYPE_VIDEO_ITEM, "RygelMediaExportVideoItem", &g_define_type_info, 0);
		g_type_add_interface_static (rygel_media_export_video_item_type_id, RYGEL_TYPE_UPDATABLE_OBJECT, &rygel_updatable_object_info);
		g_type_add_interface_static (rygel_media_export_video_item_type_id, RYGEL_MEDIA_EXPORT_TYPE_UPDATABLE_OBJECT, &rygel_media_export_updatable_object_info);
		g_type_add_interface_static (rygel_media_export_video_item_type_id, RYGEL_TYPE_TRACKABLE_ITEM, &rygel_trackable_item_info);
		g_once_init_leave (&rygel_media_export_video_item_type_id__volatile, rygel_media_export_video_item_type_id);
	}
	return rygel_media_export_video_item_type_id__volatile;
}



