/* rygel-http-get.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-http-get.vala, do not modify */

/*
 * Copyright (C) 2008-2010 Nokia Corporation.
 * Copyright (C) 2006, 2007, 2008 OpenedHand Ltd.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *         Jorn Baayen <jorn.baayen@gmail.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 <gio/gio.h>
#include <libsoup/soup.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gee.h>


#define RYGEL_TYPE_STATE_MACHINE (rygel_state_machine_get_type ())
#define RYGEL_STATE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_STATE_MACHINE, RygelStateMachine))
#define RYGEL_IS_STATE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_STATE_MACHINE))
#define RYGEL_STATE_MACHINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_TYPE_STATE_MACHINE, RygelStateMachineIface))

typedef struct _RygelStateMachine RygelStateMachine;
typedef struct _RygelStateMachineIface RygelStateMachineIface;

#define RYGEL_TYPE_HTTP_REQUEST (rygel_http_request_get_type ())
#define RYGEL_HTTP_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequest))
#define RYGEL_HTTP_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequestClass))
#define RYGEL_IS_HTTP_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_REQUEST))
#define RYGEL_IS_HTTP_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_REQUEST))
#define RYGEL_HTTP_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequestClass))

typedef struct _RygelHTTPRequest RygelHTTPRequest;
typedef struct _RygelHTTPRequestClass RygelHTTPRequestClass;
typedef struct _RygelHTTPRequestPrivate RygelHTTPRequestPrivate;

#define RYGEL_TYPE_HTTP_SERVER (rygel_http_server_get_type ())
#define RYGEL_HTTP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServer))
#define RYGEL_HTTP_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServerClass))
#define RYGEL_IS_HTTP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_SERVER))
#define RYGEL_IS_HTTP_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_SERVER))
#define RYGEL_HTTP_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServerClass))

typedef struct _RygelHTTPServer RygelHTTPServer;
typedef struct _RygelHTTPServerClass RygelHTTPServerClass;

#define RYGEL_TYPE_HTTP_ITEM_URI (rygel_http_item_uri_get_type ())
#define RYGEL_HTTP_ITEM_URI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURI))
#define RYGEL_HTTP_ITEM_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURIClass))
#define RYGEL_IS_HTTP_ITEM_URI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_ITEM_URI))
#define RYGEL_IS_HTTP_ITEM_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_ITEM_URI))
#define RYGEL_HTTP_ITEM_URI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURIClass))

typedef struct _RygelHTTPItemURI RygelHTTPItemURI;
typedef struct _RygelHTTPItemURIClass RygelHTTPItemURIClass;

#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
#define RYGEL_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObject))
#define RYGEL_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))
#define RYGEL_IS_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_IS_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_MEDIA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))

typedef struct _RygelMediaObject RygelMediaObject;
typedef struct _RygelMediaObjectClass RygelMediaObjectClass;

#define RYGEL_TYPE_MEDIA_ITEM (rygel_media_item_get_type ())
#define RYGEL_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItem))
#define RYGEL_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))
#define RYGEL_IS_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_IS_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_MEDIA_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))

typedef struct _RygelMediaItem RygelMediaItem;
typedef struct _RygelMediaItemClass RygelMediaItemClass;

#define RYGEL_TYPE_CLIENT_HACKS (rygel_client_hacks_get_type ())
#define RYGEL_CLIENT_HACKS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacks))
#define RYGEL_CLIENT_HACKS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacksClass))
#define RYGEL_IS_CLIENT_HACKS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_CLIENT_HACKS))
#define RYGEL_IS_CLIENT_HACKS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_CLIENT_HACKS))
#define RYGEL_CLIENT_HACKS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacksClass))

typedef struct _RygelClientHacks RygelClientHacks;
typedef struct _RygelClientHacksClass RygelClientHacksClass;

#define RYGEL_TYPE_HTTP_GET (rygel_http_get_get_type ())
#define RYGEL_HTTP_GET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_GET, RygelHTTPGet))
#define RYGEL_HTTP_GET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_GET, RygelHTTPGetClass))
#define RYGEL_IS_HTTP_GET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_GET))
#define RYGEL_IS_HTTP_GET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_GET))
#define RYGEL_HTTP_GET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_GET, RygelHTTPGetClass))

typedef struct _RygelHTTPGet RygelHTTPGet;
typedef struct _RygelHTTPGetClass RygelHTTPGetClass;
typedef struct _RygelHTTPGetPrivate RygelHTTPGetPrivate;

#define RYGEL_TYPE_THUMBNAIL (rygel_thumbnail_get_type ())
#define RYGEL_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_THUMBNAIL, RygelThumbnail))
#define RYGEL_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_THUMBNAIL, RygelThumbnailClass))
#define RYGEL_IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_THUMBNAIL))
#define RYGEL_IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_THUMBNAIL))
#define RYGEL_THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_THUMBNAIL, RygelThumbnailClass))

typedef struct _RygelThumbnail RygelThumbnail;
typedef struct _RygelThumbnailClass RygelThumbnailClass;

#define RYGEL_TYPE_SUBTITLE (rygel_subtitle_get_type ())
#define RYGEL_SUBTITLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_SUBTITLE, RygelSubtitle))
#define RYGEL_SUBTITLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_SUBTITLE, RygelSubtitleClass))
#define RYGEL_IS_SUBTITLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_SUBTITLE))
#define RYGEL_IS_SUBTITLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_SUBTITLE))
#define RYGEL_SUBTITLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_SUBTITLE, RygelSubtitleClass))

typedef struct _RygelSubtitle RygelSubtitle;
typedef struct _RygelSubtitleClass RygelSubtitleClass;

#define RYGEL_TYPE_HTTP_SEEK (rygel_http_seek_get_type ())
#define RYGEL_HTTP_SEEK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_SEEK, RygelHTTPSeek))
#define RYGEL_HTTP_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_SEEK, RygelHTTPSeekClass))
#define RYGEL_IS_HTTP_SEEK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_SEEK))
#define RYGEL_IS_HTTP_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_SEEK))
#define RYGEL_HTTP_SEEK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_SEEK, RygelHTTPSeekClass))

typedef struct _RygelHTTPSeek RygelHTTPSeek;
typedef struct _RygelHTTPSeekClass RygelHTTPSeekClass;

#define RYGEL_TYPE_HTTP_GET_HANDLER (rygel_http_get_handler_get_type ())
#define RYGEL_HTTP_GET_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_GET_HANDLER, RygelHTTPGetHandler))
#define RYGEL_HTTP_GET_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_GET_HANDLER, RygelHTTPGetHandlerClass))
#define RYGEL_IS_HTTP_GET_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_GET_HANDLER))
#define RYGEL_IS_HTTP_GET_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_GET_HANDLER))
#define RYGEL_HTTP_GET_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_GET_HANDLER, RygelHTTPGetHandlerClass))

typedef struct _RygelHTTPGetHandler RygelHTTPGetHandler;
typedef struct _RygelHTTPGetHandlerClass RygelHTTPGetHandlerClass;
#define _rygel_thumbnail_unref0(var) ((var == NULL) ? NULL : (var = (rygel_thumbnail_unref (var), NULL)))
#define _rygel_subtitle_unref0(var) ((var == NULL) ? NULL : (var = (rygel_subtitle_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _rygel_http_get_handler_unref0(var) ((var == NULL) ? NULL : (var = (rygel_http_get_handler_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _RygelHTTPItemURIPrivate RygelHTTPItemURIPrivate;

#define RYGEL_TYPE_TRANSCODER (rygel_transcoder_get_type ())
#define RYGEL_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_TRANSCODER, RygelTranscoder))
#define RYGEL_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_TRANSCODER, RygelTranscoderClass))
#define RYGEL_IS_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_TRANSCODER))
#define RYGEL_IS_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_TRANSCODER))
#define RYGEL_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_TRANSCODER, RygelTranscoderClass))

typedef struct _RygelTranscoder RygelTranscoder;
typedef struct _RygelTranscoderClass RygelTranscoderClass;

#define RYGEL_TYPE_HTTP_TRANSCODE_HANDLER (rygel_http_transcode_handler_get_type ())
#define RYGEL_HTTP_TRANSCODE_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_TRANSCODE_HANDLER, RygelHTTPTranscodeHandler))
#define RYGEL_HTTP_TRANSCODE_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_TRANSCODE_HANDLER, RygelHTTPTranscodeHandlerClass))
#define RYGEL_IS_HTTP_TRANSCODE_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_TRANSCODE_HANDLER))
#define RYGEL_IS_HTTP_TRANSCODE_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_TRANSCODE_HANDLER))
#define RYGEL_HTTP_TRANSCODE_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_TRANSCODE_HANDLER, RygelHTTPTranscodeHandlerClass))

typedef struct _RygelHTTPTranscodeHandler RygelHTTPTranscodeHandler;
typedef struct _RygelHTTPTranscodeHandlerClass RygelHTTPTranscodeHandlerClass;

#define RYGEL_TYPE_HTTP_IDENTITY_HANDLER (rygel_http_identity_handler_get_type ())
#define RYGEL_HTTP_IDENTITY_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_IDENTITY_HANDLER, RygelHTTPIdentityHandler))
#define RYGEL_HTTP_IDENTITY_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_IDENTITY_HANDLER, RygelHTTPIdentityHandlerClass))
#define RYGEL_IS_HTTP_IDENTITY_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_IDENTITY_HANDLER))
#define RYGEL_IS_HTTP_IDENTITY_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_IDENTITY_HANDLER))
#define RYGEL_HTTP_IDENTITY_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_IDENTITY_HANDLER, RygelHTTPIdentityHandlerClass))

typedef struct _RygelHTTPIdentityHandler RygelHTTPIdentityHandler;
typedef struct _RygelHTTPIdentityHandlerClass RygelHTTPIdentityHandlerClass;
typedef struct _RygelHttpGetHandleData RygelHttpGetHandleData;
typedef struct _RygelMediaObjectPrivate RygelMediaObjectPrivate;
typedef struct _RygelMediaItemPrivate RygelMediaItemPrivate;

#define RYGEL_TYPE_AUDIO_ITEM (rygel_audio_item_get_type ())
#define RYGEL_AUDIO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItem))
#define RYGEL_AUDIO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItemClass))
#define RYGEL_IS_AUDIO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_AUDIO_ITEM))
#define RYGEL_IS_AUDIO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_AUDIO_ITEM))
#define RYGEL_AUDIO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItemClass))

typedef struct _RygelAudioItem RygelAudioItem;
typedef struct _RygelAudioItemClass RygelAudioItemClass;

#define RYGEL_TYPE_MUSIC_ITEM (rygel_music_item_get_type ())
#define RYGEL_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItem))
#define RYGEL_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))
#define RYGEL_IS_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_IS_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_MUSIC_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))

typedef struct _RygelMusicItem RygelMusicItem;
typedef struct _RygelMusicItemClass RygelMusicItemClass;
typedef struct _RygelAudioItemPrivate RygelAudioItemPrivate;
typedef struct _RygelMusicItemPrivate RygelMusicItemPrivate;
#define _rygel_media_object_unref0(var) ((var == NULL) ? NULL : (var = (rygel_media_object_unref (var), NULL)))

#define RYGEL_TYPE_VISUAL_ITEM (rygel_visual_item_get_type ())
#define RYGEL_VISUAL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_VISUAL_ITEM, RygelVisualItem))
#define RYGEL_IS_VISUAL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_VISUAL_ITEM))
#define RYGEL_VISUAL_ITEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_TYPE_VISUAL_ITEM, RygelVisualItemIface))

typedef struct _RygelVisualItem RygelVisualItem;
typedef struct _RygelVisualItemIface RygelVisualItemIface;

#define RYGEL_TYPE_VIDEO_ITEM (rygel_video_item_get_type ())
#define RYGEL_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItem))
#define RYGEL_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItemClass))
#define RYGEL_IS_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_VIDEO_ITEM))
#define RYGEL_IS_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_VIDEO_ITEM))
#define RYGEL_VIDEO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItemClass))

typedef struct _RygelVideoItem RygelVideoItem;
typedef struct _RygelVideoItemClass RygelVideoItemClass;
typedef struct _RygelVideoItemPrivate RygelVideoItemPrivate;
typedef struct _RygelHttpGetFindItemData RygelHttpGetFindItemData;

#define RYGEL_TYPE_HTTP_TIME_SEEK (rygel_http_time_seek_get_type ())
#define RYGEL_HTTP_TIME_SEEK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_TIME_SEEK, RygelHTTPTimeSeek))
#define RYGEL_HTTP_TIME_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_TIME_SEEK, RygelHTTPTimeSeekClass))
#define RYGEL_IS_HTTP_TIME_SEEK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_TIME_SEEK))
#define RYGEL_IS_HTTP_TIME_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_TIME_SEEK))
#define RYGEL_HTTP_TIME_SEEK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_TIME_SEEK, RygelHTTPTimeSeekClass))

typedef struct _RygelHTTPTimeSeek RygelHTTPTimeSeek;
typedef struct _RygelHTTPTimeSeekClass RygelHTTPTimeSeekClass;

#define RYGEL_TYPE_HTTP_BYTE_SEEK (rygel_http_byte_seek_get_type ())
#define RYGEL_HTTP_BYTE_SEEK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_BYTE_SEEK, RygelHTTPByteSeek))
#define RYGEL_HTTP_BYTE_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_BYTE_SEEK, RygelHTTPByteSeekClass))
#define RYGEL_IS_HTTP_BYTE_SEEK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_BYTE_SEEK))
#define RYGEL_IS_HTTP_BYTE_SEEK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_BYTE_SEEK))
#define RYGEL_HTTP_BYTE_SEEK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_BYTE_SEEK, RygelHTTPByteSeekClass))

typedef struct _RygelHTTPByteSeek RygelHTTPByteSeek;
typedef struct _RygelHTTPByteSeekClass RygelHTTPByteSeekClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define RYGEL_TYPE_HTTP_RESPONSE (rygel_http_response_get_type ())
#define RYGEL_HTTP_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponse))
#define RYGEL_HTTP_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponseClass))
#define RYGEL_IS_HTTP_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_RESPONSE))
#define RYGEL_IS_HTTP_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_RESPONSE))
#define RYGEL_HTTP_RESPONSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponseClass))

typedef struct _RygelHTTPResponse RygelHTTPResponse;
typedef struct _RygelHTTPResponseClass RygelHTTPResponseClass;
typedef struct _RygelHttpGetHandleItemRequestData RygelHttpGetHandleItemRequestData;

struct _RygelStateMachineIface {
	GTypeInterface parent_iface;
	void (*run) (RygelStateMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*run_finish) (RygelStateMachine* self, GAsyncResult* _res_);
	GCancellable* (*get_cancellable) (RygelStateMachine* self);
	void (*set_cancellable) (RygelStateMachine* self, GCancellable* value);
};

struct _RygelHTTPRequest {
	GObject parent_instance;
	RygelHTTPRequestPrivate * priv;
	RygelHTTPServer* http_server;
	SoupServer* server;
	SoupMessage* msg;
	RygelHTTPItemURI* uri;
	RygelMediaItem* item;
	RygelClientHacks* hack;
};

struct _RygelHTTPRequestClass {
	GObjectClass parent_class;
	void (*handle) (RygelHTTPRequest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*handle_finish) (RygelHTTPRequest* self, GAsyncResult* _res_, GError** error);
	void (*find_item) (RygelHTTPRequest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*find_item_finish) (RygelHTTPRequest* self, GAsyncResult* _res_, GError** error);
};

struct _RygelHTTPGet {
	RygelHTTPRequest parent_instance;
	RygelHTTPGetPrivate * priv;
	RygelThumbnail* thumbnail;
	RygelSubtitle* subtitle;
	RygelHTTPSeek* seek;
	RygelHTTPGetHandler* handler;
};

struct _RygelHTTPGetClass {
	RygelHTTPRequestClass parent_class;
};

struct _RygelHTTPGetPrivate {
	gint thumbnail_index;
	gint subtitle_index;
};

typedef enum  {
	RYGEL_HTTP_REQUEST_ERROR_UNACCEPTABLE = SOUP_STATUS_NOT_ACCEPTABLE,
	RYGEL_HTTP_REQUEST_ERROR_BAD_REQUEST = SOUP_STATUS_BAD_REQUEST,
	RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND = SOUP_STATUS_NOT_FOUND,
	RYGEL_HTTP_REQUEST_ERROR_INTERNAL_SERVER_ERROR = SOUP_STATUS_INTERNAL_SERVER_ERROR
} RygelHTTPRequestError;
#define RYGEL_HTTP_REQUEST_ERROR rygel_http_request_error_quark ()
struct _RygelHTTPItemURI {
	GObject parent_instance;
	RygelHTTPItemURIPrivate * priv;
	gchar* item_id;
	gint thumbnail_index;
	gint subtitle_index;
	gchar* transcode_target;
	RygelHTTPServer* http_server;
};

struct _RygelHTTPItemURIClass {
	GObjectClass parent_class;
};

struct _RygelHttpGetHandleData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPGet* self;
	SoupMessage* _tmp0_;
	SoupMessageHeaders* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* header;
	gboolean _tmp4_;
	gboolean _tmp5_;
	SoupMessage* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gboolean _tmp10_;
	SoupMessage* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	gboolean _tmp19_;
	gboolean _tmp20_;
	const gchar* _tmp21_;
	GError* _tmp22_;
	RygelHTTPItemURI* _tmp23_;
	const gchar* _tmp24_;
	RygelHTTPServer* _tmp25_;
	RygelHTTPItemURI* _tmp26_;
	const gchar* _tmp27_;
	RygelTranscoder* _tmp28_;
	RygelTranscoder* transcoder;
	RygelTranscoder* _tmp29_;
	GCancellable* _tmp30_;
	GCancellable* _tmp31_;
	RygelHTTPTranscodeHandler* _tmp32_;
	RygelHTTPGetHandler* _tmp33_;
	GCancellable* _tmp34_;
	GCancellable* _tmp35_;
	RygelHTTPIdentityHandler* _tmp36_;
	GError * _inner_error_;
};

struct _RygelMediaObject {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelMediaObjectPrivate * priv;
	gchar* id;
	gchar* mime_type;
};

struct _RygelMediaObjectClass {
	GTypeClass parent_class;
	void (*finalize) (RygelMediaObject *self);
};

struct _RygelMediaItem {
	RygelMediaObject parent_instance;
	RygelMediaItemPrivate * priv;
	glong size;
	GeeArrayList* subtitles;
	GeeArrayList* thumbnails;
	GeeArrayList* uris;
	gboolean place_holder;
};

struct _RygelMediaItemClass {
	RygelMediaObjectClass parent_class;
};

struct _RygelAudioItem {
	RygelMediaItem parent_instance;
	RygelAudioItemPrivate * priv;
	gint64 duration;
};

struct _RygelAudioItemClass {
	RygelMediaItemClass parent_class;
};

struct _RygelMusicItem {
	RygelAudioItem parent_instance;
	RygelMusicItemPrivate * priv;
	RygelThumbnail* album_art;
};

struct _RygelMusicItemClass {
	RygelAudioItemClass parent_class;
};

struct _RygelVisualItemIface {
	GTypeInterface parent_iface;
	gint (*get_width) (RygelVisualItem* self);
	void (*set_width) (RygelVisualItem* self, gint value);
	gint (*get_height) (RygelVisualItem* self);
	void (*set_height) (RygelVisualItem* self, gint value);
	gint (*get_pixel_width) (RygelVisualItem* self);
	void (*set_pixel_width) (RygelVisualItem* self, gint value);
	gint (*get_pixel_height) (RygelVisualItem* self);
	void (*set_pixel_height) (RygelVisualItem* self, gint value);
	gint (*get_color_depth) (RygelVisualItem* self);
	void (*set_color_depth) (RygelVisualItem* self, gint value);
	GeeArrayList* (*get_thumbnails) (RygelVisualItem* self);
	void (*set_thumbnails) (RygelVisualItem* self, GeeArrayList* value);
};

struct _RygelVideoItem {
	RygelAudioItem parent_instance;
	RygelVideoItemPrivate * priv;
	GeeArrayList* subtitles;
};

struct _RygelVideoItemClass {
	RygelAudioItemClass parent_class;
};

struct _RygelHttpGetFindItemData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPGet* self;
	RygelMediaItem* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	RygelMediaItem* _tmp3_;
	const gchar* _tmp4_;
	GError* _tmp5_;
	RygelClientHacks* _tmp6_;
	RygelClientHacks* _tmp7_;
	RygelMediaItem* _tmp8_;
	RygelHTTPItemURI* _tmp9_;
	gint _tmp10_;
	RygelMediaItem* _tmp11_;
	RygelMediaItem* _tmp12_;
	RygelMusicItem* _tmp13_;
	RygelMusicItem* music;
	RygelMusicItem* _tmp14_;
	RygelThumbnail* _tmp15_;
	RygelThumbnail* _tmp16_;
	RygelMediaItem* _tmp17_;
	RygelMediaItem* _tmp18_;
	RygelVisualItem* _tmp19_;
	RygelVisualItem* visual;
	RygelHTTPItemURI* _tmp20_;
	gint _tmp21_;
	RygelVisualItem* _tmp22_;
	GeeArrayList* _tmp23_;
	GeeArrayList* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
	RygelVisualItem* _tmp27_;
	GeeArrayList* _tmp28_;
	GeeArrayList* _tmp29_;
	RygelHTTPItemURI* _tmp30_;
	gint _tmp31_;
	gpointer _tmp32_;
	RygelMediaItem* _tmp33_;
	const gchar* _tmp34_;
	GError* _tmp35_;
	gboolean _tmp36_;
	RygelHTTPItemURI* _tmp37_;
	gint _tmp38_;
	RygelMediaItem* _tmp39_;
	gboolean _tmp40_;
	RygelMediaItem* _tmp41_;
	RygelVideoItem* _tmp42_;
	RygelVideoItem* video;
	RygelHTTPItemURI* _tmp43_;
	gint _tmp44_;
	RygelVideoItem* _tmp45_;
	GeeArrayList* _tmp46_;
	gint _tmp47_;
	gint _tmp48_;
	RygelVideoItem* _tmp49_;
	GeeArrayList* _tmp50_;
	RygelHTTPItemURI* _tmp51_;
	gint _tmp52_;
	gpointer _tmp53_;
	RygelMediaItem* _tmp54_;
	const gchar* _tmp55_;
	GError* _tmp56_;
	GError * _inner_error_;
};

typedef enum  {
	RYGEL_HTTP_SEEK_ERROR_INVALID_RANGE = SOUP_STATUS_BAD_REQUEST,
	RYGEL_HTTP_SEEK_ERROR_OUT_OF_RANGE = SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE
} RygelHTTPSeekError;
#define RYGEL_HTTP_SEEK_ERROR rygel_http_seek_error_quark ()
struct _RygelHttpGetHandleItemRequestData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPGet* self;
	gboolean _tmp0_;
	gboolean need_time_seek;
	gboolean _tmp1_;
	gboolean need_byte_seek;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	gboolean _tmp10_;
	gboolean _tmp11_;
	GError* _tmp12_;
	gboolean _tmp13_;
	RygelHTTPTimeSeek* _tmp14_;
	RygelHTTPTimeSeek* _tmp15_;
	gboolean _tmp16_;
	RygelHTTPByteSeek* _tmp17_;
	RygelHTTPByteSeek* _tmp18_;
	GError* _error_;
	SoupServer* _tmp19_;
	SoupMessage* _tmp20_;
	GError* _tmp21_;
	GError* _tmp22_;
	GError* _tmp23_;
	GError* _tmp24_;
	RygelHTTPGetHandler* _tmp25_;
	SoupMessage* _tmp26_;
	SoupMessageHeaders* _tmp27_;
	const gchar* _tmp28_;
	SoupMessage* _tmp29_;
	SoupMessage* _tmp30_;
	gboolean _tmp31_;
	RygelHTTPSeek* _tmp32_;
	RygelHTTPSeek* _tmp33_;
	gboolean _tmp34_;
	SoupMessage* _tmp35_;
	SoupMessageHeaders* _tmp36_;
	SoupMessage* _tmp37_;
	SoupMessageHeaders* _tmp38_;
	SoupMessage* _tmp39_;
	SoupMessageHeaders* _tmp40_;
	SoupMessage* _tmp41_;
	gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	gboolean _tmp45_;
	SoupServer* _tmp46_;
	SoupMessage* _tmp47_;
	RygelHTTPGetHandler* _tmp48_;
	RygelHTTPResponse* _tmp49_;
	RygelHTTPResponse* response;
	RygelHTTPResponse* _tmp50_;
	GError * _inner_error_;
};


static gpointer rygel_http_get_parent_class = NULL;

GType rygel_state_machine_get_type (void) G_GNUC_CONST;
GType rygel_http_request_get_type (void) G_GNUC_CONST;
GType rygel_http_server_get_type (void) G_GNUC_CONST;
GType rygel_http_item_uri_get_type (void) G_GNUC_CONST;
gpointer rygel_media_object_ref (gpointer instance);
void rygel_media_object_unref (gpointer instance);
GParamSpec* rygel_param_spec_media_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_media_object (GValue* value, gpointer v_object);
void rygel_value_take_media_object (GValue* value, gpointer v_object);
gpointer rygel_value_get_media_object (const GValue* value);
GType rygel_media_object_get_type (void) G_GNUC_CONST;
GType rygel_media_item_get_type (void) G_GNUC_CONST;
gpointer rygel_client_hacks_ref (gpointer instance);
void rygel_client_hacks_unref (gpointer instance);
GParamSpec* rygel_param_spec_client_hacks (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_client_hacks (GValue* value, gpointer v_object);
void rygel_value_take_client_hacks (GValue* value, gpointer v_object);
gpointer rygel_value_get_client_hacks (const GValue* value);
GType rygel_client_hacks_get_type (void) G_GNUC_CONST;
GType rygel_http_get_get_type (void) G_GNUC_CONST;
gpointer rygel_thumbnail_ref (gpointer instance);
void rygel_thumbnail_unref (gpointer instance);
GParamSpec* rygel_param_spec_thumbnail (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_thumbnail (GValue* value, gpointer v_object);
void rygel_value_take_thumbnail (GValue* value, gpointer v_object);
gpointer rygel_value_get_thumbnail (const GValue* value);
GType rygel_thumbnail_get_type (void) G_GNUC_CONST;
gpointer rygel_subtitle_ref (gpointer instance);
void rygel_subtitle_unref (gpointer instance);
GParamSpec* rygel_param_spec_subtitle (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_subtitle (GValue* value, gpointer v_object);
void rygel_value_take_subtitle (GValue* value, gpointer v_object);
gpointer rygel_value_get_subtitle (const GValue* value);
GType rygel_subtitle_get_type (void) G_GNUC_CONST;
GType rygel_http_seek_get_type (void) G_GNUC_CONST;
gpointer rygel_http_get_handler_ref (gpointer instance);
void rygel_http_get_handler_unref (gpointer instance);
GParamSpec* rygel_param_spec_http_get_handler (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_http_get_handler (GValue* value, gpointer v_object);
void rygel_value_take_http_get_handler (GValue* value, gpointer v_object);
gpointer rygel_value_get_http_get_handler (const GValue* value);
GType rygel_http_get_handler_get_type (void) G_GNUC_CONST;
#define RYGEL_HTTP_GET_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_HTTP_GET, RygelHTTPGetPrivate))
enum  {
	RYGEL_HTTP_GET_DUMMY_PROPERTY
};
#define RYGEL_HTTP_GET_TRANSFER_MODE_HEADER "transferMode.dlna.org"
RygelHTTPGet* rygel_http_get_new (RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
RygelHTTPGet* rygel_http_get_construct (GType object_type, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
RygelHTTPRequest* rygel_http_request_construct (GType object_type, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
static void rygel_http_get_real_handle_data_free (gpointer _data);
static void rygel_http_get_real_handle (RygelHTTPRequest* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_http_get_real_handle_co (RygelHttpGetHandleData* _data_);
GQuark rygel_http_request_error_quark (void);
GType rygel_transcoder_get_type (void) G_GNUC_CONST;
RygelTranscoder* rygel_http_server_get_transcoder (RygelHTTPServer* self, const gchar* target, GError** error);
GCancellable* rygel_state_machine_get_cancellable (RygelStateMachine* self);
RygelHTTPTranscodeHandler* rygel_http_transcode_handler_new (RygelTranscoder* transcoder, GCancellable* cancellable);
RygelHTTPTranscodeHandler* rygel_http_transcode_handler_construct (GType object_type, RygelTranscoder* transcoder, GCancellable* cancellable);
GType rygel_http_transcode_handler_get_type (void) G_GNUC_CONST;
RygelHTTPIdentityHandler* rygel_http_identity_handler_new (GCancellable* cancellable);
RygelHTTPIdentityHandler* rygel_http_identity_handler_construct (GType object_type, GCancellable* cancellable);
GType rygel_http_identity_handler_get_type (void) G_GNUC_CONST;
static void rygel_http_get_ensure_correct_mode (RygelHTTPGet* self, GError** error);
static void rygel_http_get_handle_item_request (RygelHTTPGet* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void rygel_http_get_handle_item_request_finish (RygelHTTPGet* self, GAsyncResult* _res_, GError** error);
static void rygel_http_get_handle_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void rygel_http_get_real_find_item_data_free (gpointer _data);
static void rygel_http_get_real_find_item (RygelHTTPRequest* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_http_get_real_find_item_co (RygelHttpGetFindItemData* _data_);
void rygel_http_request_find_item (RygelHTTPRequest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void rygel_http_request_find_item_finish (RygelHTTPRequest* self, GAsyncResult* _res_, GError** error);
static void rygel_http_get_find_item_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void rygel_client_hacks_apply (RygelClientHacks* self, RygelMediaItem* item);
GType rygel_audio_item_get_type (void) G_GNUC_CONST;
GType rygel_music_item_get_type (void) G_GNUC_CONST;
GType rygel_visual_item_get_type (void) G_GNUC_CONST;
GeeArrayList* rygel_visual_item_get_thumbnails (RygelVisualItem* self);
GType rygel_video_item_get_type (void) G_GNUC_CONST;
static void rygel_http_get_handle_item_request_data_free (gpointer _data);
static gboolean rygel_http_get_handle_item_request_co (RygelHttpGetHandleItemRequestData* _data_);
gboolean rygel_http_time_seek_needed (RygelHTTPGet* request);
gboolean rygel_http_byte_seek_needed (RygelHTTPGet* request);
gboolean rygel_http_time_seek_requested (RygelHTTPGet* request);
gboolean rygel_http_byte_seek_requested (RygelHTTPGet* request);
GQuark rygel_http_seek_error_quark (void);
RygelHTTPTimeSeek* rygel_http_time_seek_new (RygelHTTPGet* request, GError** error);
RygelHTTPTimeSeek* rygel_http_time_seek_construct (GType object_type, RygelHTTPGet* request, GError** error);
GType rygel_http_time_seek_get_type (void) G_GNUC_CONST;
RygelHTTPByteSeek* rygel_http_byte_seek_new (RygelHTTPGet* request, GError** error);
RygelHTTPByteSeek* rygel_http_byte_seek_construct (GType object_type, RygelHTTPGet* request, GError** error);
GType rygel_http_byte_seek_get_type (void) G_GNUC_CONST;
void rygel_http_request_end (RygelHTTPRequest* self, guint status);
void rygel_http_get_handler_add_response_headers (RygelHTTPGetHandler* self, RygelHTTPGet* get_request);
static void __lambda4_ (RygelHTTPGet* self, const gchar* name, const gchar* value);
static void ___lambda4__soup_message_headers_foreach_func (const gchar* name, const gchar* value, gpointer self);
GType rygel_http_response_get_type (void) G_GNUC_CONST;
RygelHTTPResponse* rygel_http_get_handler_render_body (RygelHTTPGetHandler* self, RygelHTTPGet* get_request);
void rygel_state_machine_run (RygelStateMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void rygel_state_machine_run_finish (RygelStateMachine* self, GAsyncResult* _res_);
static void rygel_http_get_handle_item_request_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gboolean rygel_media_item_streamable (RygelMediaItem* self);
gboolean rygel_media_item_is_live_stream (RygelMediaItem* self);
static void rygel_http_get_finalize (GObject* obj);


RygelHTTPGet* rygel_http_get_construct (GType object_type, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg) {
	RygelHTTPGet * self = NULL;
	RygelHTTPServer* _tmp0_;
	SoupServer* _tmp1_;
	SoupMessage* _tmp2_;
#line 43 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_val_if_fail (http_server != NULL, NULL);
#line 43 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_val_if_fail (server != NULL, NULL);
#line 43 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 46 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = http_server;
#line 46 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp1_ = server;
#line 46 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp2_ = msg;
#line 46 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self = (RygelHTTPGet*) rygel_http_request_construct (object_type, _tmp0_, _tmp1_, _tmp2_);
#line 48 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self->priv->thumbnail_index = -1;
#line 49 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self->priv->subtitle_index = -1;
#line 43 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return self;
#line 733 "rygel-http-get.c"
}


RygelHTTPGet* rygel_http_get_new (RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg) {
#line 43 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return rygel_http_get_construct (RYGEL_TYPE_HTTP_GET, http_server, server, msg);
#line 740 "rygel-http-get.c"
}


static void rygel_http_get_real_handle_data_free (gpointer _data) {
	RygelHttpGetHandleData* _data_;
	_data_ = _data;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_object_unref0 (_data_->self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_slice_free (RygelHttpGetHandleData, _data_);
#line 751 "rygel-http-get.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return self ? g_object_ref (self) : NULL;
#line 758 "rygel-http-get.c"
}


static void rygel_http_get_real_handle (RygelHTTPRequest* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHTTPGet * self;
	RygelHttpGetHandleData* _data_;
	RygelHTTPGet* _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self = (RygelHTTPGet*) base;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_slice_new0 (RygelHttpGetHandleData);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_get_real_handle);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_get_real_handle_data_free);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->self = _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_real_handle_co (_data_);
#line 780 "rygel-http-get.c"
}


static void rygel_http_get_real_handle_finish (RygelHTTPRequest* base, GAsyncResult* _res_, GError** error) {
	RygelHttpGetHandleData* _data_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return;
#line 790 "rygel-http-get.c"
	}
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 794 "rygel-http-get.c"
}


static void rygel_http_get_handle_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelHttpGetHandleData* _data_;
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = _user_data_;
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_source_object_ = source_object;
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_res_ = _res_;
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_real_handle_co (_data_);
#line 808 "rygel-http-get.c"
}


static gboolean rygel_http_get_real_handle_co (RygelHttpGetHandleData* _data_) {
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	switch (_data_->_state_) {
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 0:
#line 817 "rygel-http-get.c"
		goto _state_0;
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 1:
#line 821 "rygel-http-get.c"
		goto _state_1;
		default:
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_assert_not_reached ();
#line 826 "rygel-http-get.c"
	}
	_state_0:
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp0_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp1_ = _data_->_tmp0_->request_headers;
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp2_ = NULL;
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp2_ = soup_message_headers_get_one (_data_->_tmp1_, "getcontentFeatures.dlna.org");
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp3_ = g_strdup (_data_->_tmp2_);
#line 53 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->header = _data_->_tmp3_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp6_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp7_ = NULL;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_object_get (_data_->_tmp6_, "method", &_data_->_tmp7_, NULL);
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp10_ = g_strcmp0 (_data_->_tmp9_, "HEAD") != 0;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_free0 (_data_->_tmp9_);
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp10_) {
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp11_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp12_ = NULL;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_get (_data_->_tmp11_, "method", &_data_->_tmp12_, NULL);
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp5_ = g_strcmp0 (_data_->_tmp14_, "GET") != 0;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_free0 (_data_->_tmp14_);
#line 871 "rygel-http-get.c"
	} else {
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp5_ = FALSE;
#line 875 "rygel-http-get.c"
	}
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp15_ = _data_->_tmp5_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp15_) {
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp4_ = TRUE;
#line 883 "rygel-http-get.c"
	} else {
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp17_ = _data_->header;
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_tmp17_ != NULL) {
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp18_ = _data_->header;
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp16_ = g_strcmp0 (_data_->_tmp18_, "1") != 0;
#line 893 "rygel-http-get.c"
		} else {
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp16_ = FALSE;
#line 897 "rygel-http-get.c"
		}
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp19_ = _data_->_tmp16_;
#line 58 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp4_ = _data_->_tmp19_;
#line 903 "rygel-http-get.c"
	}
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp20_ = _data_->_tmp4_;
#line 57 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp20_) {
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp21_ = NULL;
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp21_ = _ ("Invalid Request");
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp22_ = g_error_new_literal (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_BAD_REQUEST, _data_->_tmp21_);
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = _data_->_tmp22_;
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_free0 (_data_->header);
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 927 "rygel-http-get.c"
		} else {
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 931 "rygel-http-get.c"
		}
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 59 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 937 "rygel-http-get.c"
	}
#line 62 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp23_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 62 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp24_ = _data_->_tmp23_->transcode_target;
#line 62 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp24_ != NULL) {
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp25_ = ((RygelHTTPRequest*) _data_->self)->http_server;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp26_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp27_ = _data_->_tmp26_->transcode_target;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp28_ = NULL;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp28_ = rygel_http_server_get_transcoder (_data_->_tmp25_, _data_->_tmp27_, &_data_->_inner_error_);
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->transcoder = _data_->_tmp28_;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_inner_error_ != NULL) {
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_error_free (_data_->_inner_error_);
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_g_free0 (_data_->header);
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (_data_->_state_ == 0) {
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 969 "rygel-http-get.c"
			} else {
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 973 "rygel-http-get.c"
			}
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_object_unref (_data_->_async_result);
#line 63 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			return FALSE;
#line 979 "rygel-http-get.c"
		}
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp29_ = _data_->transcoder;
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp30_ = rygel_state_machine_get_cancellable ((RygelStateMachine*) _data_->self);
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp31_ = _data_->_tmp30_;
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp32_ = rygel_http_transcode_handler_new (_data_->_tmp29_, _data_->_tmp31_);
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_rygel_http_get_handler_unref0 (_data_->self->handler);
#line 65 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->self->handler = (RygelHTTPGetHandler*) _data_->_tmp32_;
#line 62 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_object_unref0 (_data_->transcoder);
#line 995 "rygel-http-get.c"
	}
#line 69 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp33_ = _data_->self->handler;
#line 69 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp33_ == NULL) {
#line 70 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp34_ = rygel_state_machine_get_cancellable ((RygelStateMachine*) _data_->self);
#line 70 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp35_ = _data_->_tmp34_;
#line 70 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp36_ = rygel_http_identity_handler_new (_data_->_tmp35_);
#line 70 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_rygel_http_get_handler_unref0 (_data_->self->handler);
#line 70 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->self->handler = (RygelHTTPGetHandler*) _data_->_tmp36_;
#line 1011 "rygel-http-get.c"
	}
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_ensure_correct_mode (_data_->self, &_data_->_inner_error_);
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_inner_error_ != NULL) {
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_free0 (_data_->header);
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1027 "rygel-http-get.c"
		} else {
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1031 "rygel-http-get.c"
		}
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 73 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1037 "rygel-http-get.c"
	}
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_state_ = 1;
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_handle_item_request (_data_->self, rygel_http_get_handle_ready, _data_);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 1045 "rygel-http-get.c"
	_state_1:
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_handle_item_request_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_inner_error_ != NULL) {
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_free0 (_data_->header);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1061 "rygel-http-get.c"
		} else {
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1065 "rygel-http-get.c"
		}
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1071 "rygel-http-get.c"
	}
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_free0 (_data_->header);
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_state_ == 0) {
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1079 "rygel-http-get.c"
	} else {
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1083 "rygel-http-get.c"
	}
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_object_unref (_data_->_async_result);
#line 52 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 1089 "rygel-http-get.c"
}


static void rygel_http_get_real_find_item_data_free (gpointer _data) {
	RygelHttpGetFindItemData* _data_;
	_data_ = _data;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_object_unref0 (_data_->self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_slice_free (RygelHttpGetFindItemData, _data_);
#line 1100 "rygel-http-get.c"
}


static void rygel_http_get_real_find_item (RygelHTTPRequest* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHTTPGet * self;
	RygelHttpGetFindItemData* _data_;
	RygelHTTPGet* _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self = (RygelHTTPGet*) base;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_slice_new0 (RygelHttpGetFindItemData);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_get_real_find_item);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_get_real_find_item_data_free);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->self = _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_real_find_item_co (_data_);
#line 1122 "rygel-http-get.c"
}


static void rygel_http_get_real_find_item_finish (RygelHTTPRequest* base, GAsyncResult* _res_, GError** error) {
	RygelHttpGetFindItemData* _data_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return;
#line 1132 "rygel-http-get.c"
	}
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1136 "rygel-http-get.c"
}


static void rygel_http_get_find_item_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelHttpGetFindItemData* _data_;
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = _user_data_;
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_source_object_ = source_object;
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_res_ = _res_;
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_real_find_item_co (_data_);
#line 1150 "rygel-http-get.c"
}


static gpointer _rygel_media_object_ref0 (gpointer self) {
#line 92 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return self ? rygel_media_object_ref (self) : NULL;
#line 1157 "rygel-http-get.c"
}


static gpointer _rygel_thumbnail_ref0 (gpointer self) {
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return self ? rygel_thumbnail_ref (self) : NULL;
#line 1164 "rygel-http-get.c"
}


static gboolean rygel_http_get_real_find_item_co (RygelHttpGetFindItemData* _data_) {
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	switch (_data_->_state_) {
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 0:
#line 1173 "rygel-http-get.c"
		goto _state_0;
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 1:
#line 1177 "rygel-http-get.c"
		goto _state_1;
		default:
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_assert_not_reached ();
#line 1182 "rygel-http-get.c"
	}
	_state_0:
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_state_ = 1;
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (rygel_http_get_parent_class)->find_item (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequest), rygel_http_get_find_item_ready, _data_);
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 1191 "rygel-http-get.c"
	_state_1:
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (rygel_http_get_parent_class)->find_item_finish (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequest), _data_->_res_, &_data_->_inner_error_);
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_inner_error_ != NULL) {
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1205 "rygel-http-get.c"
		} else {
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1209 "rygel-http-get.c"
		}
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 79 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1215 "rygel-http-get.c"
	}
#line 81 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp0_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp1_ = _data_->_tmp0_->place_holder;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp2_ = FALSE;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp2_ = G_UNLIKELY (_data_->_tmp1_);
#line 81 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp2_) {
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp3_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp4_ = ((RygelMediaObject*) _data_->_tmp3_)->id;
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp5_ = g_error_new (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND, "Item '%s' is empty", _data_->_tmp4_);
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = _data_->_tmp5_;
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1243 "rygel-http-get.c"
		} else {
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1247 "rygel-http-get.c"
		}
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 82 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1253 "rygel-http-get.c"
	}
#line 86 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp6_ = ((RygelHTTPRequest*) _data_->self)->hack;
#line 86 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp6_ != NULL) {
#line 87 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp7_ = ((RygelHTTPRequest*) _data_->self)->hack;
#line 87 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp8_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 87 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		rygel_client_hacks_apply (_data_->_tmp7_, _data_->_tmp8_);
#line 1265 "rygel-http-get.c"
	}
#line 90 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp9_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 90 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp10_ = _data_->_tmp9_->thumbnail_index;
#line 90 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp10_ >= 0) {
#line 91 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp11_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 91 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp11_, RYGEL_TYPE_MUSIC_ITEM)) {
#line 92 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp12_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 92 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp13_ = _rygel_media_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp12_, RYGEL_TYPE_MUSIC_ITEM) ? ((RygelMusicItem*) _data_->_tmp12_) : NULL);
#line 92 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->music = _data_->_tmp13_;
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp14_ = _data_->music;
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp15_ = _data_->_tmp14_->album_art;
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp16_ = _rygel_thumbnail_ref0 (_data_->_tmp15_);
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_rygel_thumbnail_unref0 (_data_->self->thumbnail);
#line 93 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->self->thumbnail = _data_->_tmp16_;
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_rygel_media_object_unref0 (_data_->music);
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (_data_->_state_ == 0) {
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1299 "rygel-http-get.c"
			} else {
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1303 "rygel-http-get.c"
			}
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_object_unref (_data_->_async_result);
#line 95 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			return FALSE;
#line 1309 "rygel-http-get.c"
		} else {
#line 96 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp17_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 96 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp17_, RYGEL_TYPE_VISUAL_ITEM)) {
#line 97 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp18_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 97 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp19_ = _rygel_media_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp18_, RYGEL_TYPE_VISUAL_ITEM) ? ((RygelVisualItem*) _data_->_tmp18_) : NULL);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->visual = _data_->_tmp19_;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp20_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp21_ = _data_->_tmp20_->thumbnail_index;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp22_ = _data_->visual;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp23_ = rygel_visual_item_get_thumbnails (_data_->_tmp22_);
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp24_ = _data_->_tmp23_;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp25_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp24_);
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp26_ = _data_->_tmp25_;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				if (_data_->_tmp21_ < _data_->_tmp26_) {
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp27_ = _data_->visual;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp28_ = rygel_visual_item_get_thumbnails (_data_->_tmp27_);
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp29_ = _data_->_tmp28_;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp30_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp31_ = _data_->_tmp30_->thumbnail_index;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp32_ = NULL;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->_tmp32_ = gee_abstract_list_get ((GeeAbstractList*) _data_->_tmp29_, _data_->_tmp31_);
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_rygel_thumbnail_unref0 (_data_->self->thumbnail);
#line 99 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_data_->self->thumbnail = (RygelThumbnail*) _data_->_tmp32_;
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_rygel_media_object_unref0 (_data_->visual);
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (_data_->_state_ == 0) {
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1361 "rygel-http-get.c"
					} else {
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						g_simple_async_result_complete (_data_->_async_result);
#line 1365 "rygel-http-get.c"
					}
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					g_object_unref (_data_->_async_result);
#line 102 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					return FALSE;
#line 1371 "rygel-http-get.c"
				}
#line 96 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_rygel_media_object_unref0 (_data_->visual);
#line 1375 "rygel-http-get.c"
			}
		}
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp33_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp34_ = ((RygelMediaObject*) _data_->_tmp33_)->id;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp35_ = g_error_new (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND, "No Thumbnail available for item '%s", _data_->_tmp34_);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = _data_->_tmp35_;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1394 "rygel-http-get.c"
		} else {
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1398 "rygel-http-get.c"
		}
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1404 "rygel-http-get.c"
	}
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp37_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp38_ = _data_->_tmp37_->subtitle_index;
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp38_ >= 0) {
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp39_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp36_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp39_, RYGEL_TYPE_VIDEO_ITEM);
#line 1416 "rygel-http-get.c"
	} else {
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp36_ = FALSE;
#line 1420 "rygel-http-get.c"
	}
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp40_ = _data_->_tmp36_;
#line 111 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp40_) {
#line 112 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp41_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 112 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp42_ = _rygel_media_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp41_, RYGEL_TYPE_VIDEO_ITEM) ? ((RygelVideoItem*) _data_->_tmp41_) : NULL);
#line 112 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->video = _data_->_tmp42_;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp43_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp44_ = _data_->_tmp43_->subtitle_index;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp45_ = _data_->video;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp46_ = _data_->_tmp45_->subtitles;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp47_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp46_);
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp48_ = _data_->_tmp47_;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_tmp44_ < _data_->_tmp48_) {
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp49_ = _data_->video;
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp50_ = _data_->_tmp49_->subtitles;
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp51_ = ((RygelHTTPRequest*) _data_->self)->uri;
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp52_ = _data_->_tmp51_->subtitle_index;
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp53_ = NULL;
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp53_ = gee_abstract_list_get ((GeeAbstractList*) _data_->_tmp50_, _data_->_tmp52_);
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_rygel_subtitle_unref0 (_data_->self->subtitle);
#line 115 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->self->subtitle = (RygelSubtitle*) _data_->_tmp53_;
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_rygel_media_object_unref0 (_data_->video);
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (_data_->_state_ == 0) {
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1468 "rygel-http-get.c"
			} else {
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1472 "rygel-http-get.c"
			}
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_object_unref (_data_->_async_result);
#line 117 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			return FALSE;
#line 1478 "rygel-http-get.c"
		}
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp54_ = ((RygelHTTPRequest*) _data_->self)->item;
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp55_ = ((RygelMediaObject*) _data_->_tmp54_)->id;
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp56_ = g_error_new (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND, "No subtitles available for item '%s", _data_->_tmp55_);
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = _data_->_tmp56_;
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_rygel_media_object_unref0 (_data_->video);
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1498 "rygel-http-get.c"
		} else {
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1502 "rygel-http-get.c"
		}
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 120 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1508 "rygel-http-get.c"
	}
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_state_ == 0) {
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1514 "rygel-http-get.c"
	} else {
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1518 "rygel-http-get.c"
	}
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_object_unref (_data_->_async_result);
#line 78 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 1524 "rygel-http-get.c"
}


static void rygel_http_get_handle_item_request_data_free (gpointer _data) {
	RygelHttpGetHandleItemRequestData* _data_;
	_data_ = _data;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_object_unref0 (_data_->self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_slice_free (RygelHttpGetHandleItemRequestData, _data_);
#line 1535 "rygel-http-get.c"
}


static void rygel_http_get_handle_item_request (RygelHTTPGet* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHttpGetHandleItemRequestData* _data_;
	RygelHTTPGet* _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_slice_new0 (RygelHttpGetHandleItemRequestData);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_get_handle_item_request);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_get_handle_item_request_data_free);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->self = _tmp0_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_handle_item_request_co (_data_);
#line 1554 "rygel-http-get.c"
}


static void rygel_http_get_handle_item_request_finish (RygelHTTPGet* self, GAsyncResult* _res_, GError** error) {
	RygelHttpGetHandleItemRequestData* _data_;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return;
#line 1564 "rygel-http-get.c"
	}
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1568 "rygel-http-get.c"
}


static gpointer _g_error_copy0 (gpointer self) {
#line 149 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return self ? g_error_copy (self) : NULL;
#line 1575 "rygel-http-get.c"
}


static void __lambda4_ (RygelHTTPGet* self, const gchar* name, const gchar* value) {
	const gchar* _tmp0_;
	const gchar* _tmp1_;
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_if_fail (name != NULL);
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_if_fail (value != NULL);
#line 173 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = name;
#line 173 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp1_ = value;
#line 173 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_debug ("rygel-http-get.vala:173: %s : %s", _tmp0_, _tmp1_);
#line 1592 "rygel-http-get.c"
}


static void ___lambda4__soup_message_headers_foreach_func (const gchar* name, const gchar* value, gpointer self) {
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	__lambda4_ (self, name, value);
#line 1599 "rygel-http-get.c"
}


static void rygel_http_get_handle_item_request_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelHttpGetHandleItemRequestData* _data_;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_ = _user_data_;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_source_object_ = source_object;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_res_ = _res_;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_handle_item_request_co (_data_);
#line 1613 "rygel-http-get.c"
}


static gboolean rygel_http_get_handle_item_request_co (RygelHttpGetHandleItemRequestData* _data_) {
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	switch (_data_->_state_) {
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 0:
#line 1622 "rygel-http-get.c"
		goto _state_0;
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		case 1:
#line 1626 "rygel-http-get.c"
		goto _state_1;
		default:
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_assert_not_reached ();
#line 1631 "rygel-http-get.c"
	}
	_state_0:
#line 127 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp0_ = FALSE;
#line 127 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp0_ = rygel_http_time_seek_needed (_data_->self);
#line 127 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->need_time_seek = _data_->_tmp0_;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp1_ = FALSE;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp1_ = rygel_http_byte_seek_needed (_data_->self);
#line 128 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->need_byte_seek = _data_->_tmp1_;
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp4_ = FALSE;
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp4_ = rygel_http_time_seek_requested (_data_->self);
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp4_) {
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp5_ = _data_->need_time_seek;
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp3_ = !_data_->_tmp5_;
#line 1656 "rygel-http-get.c"
	} else {
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp3_ = FALSE;
#line 1660 "rygel-http-get.c"
	}
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp6_ = _data_->_tmp3_;
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp6_) {
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp2_ = TRUE;
#line 1668 "rygel-http-get.c"
	} else {
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp8_ = FALSE;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp8_ = rygel_http_byte_seek_requested (_data_->self);
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_tmp8_) {
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp9_ = _data_->need_byte_seek;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp7_ = !_data_->_tmp9_;
#line 1680 "rygel-http-get.c"
		} else {
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp7_ = FALSE;
#line 1684 "rygel-http-get.c"
		}
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp10_ = _data_->_tmp7_;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp2_ = _data_->_tmp10_;
#line 1690 "rygel-http-get.c"
	}
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp11_ = _data_->_tmp2_;
#line 130 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp11_) {
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp12_ = g_error_new_literal (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_UNACCEPTABLE, "Invalid seek request");
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = _data_->_tmp12_;
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1708 "rygel-http-get.c"
		} else {
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1712 "rygel-http-get.c"
		}
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1718 "rygel-http-get.c"
	}
	{
#line 136 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp13_ = _data_->need_time_seek;
#line 136 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_tmp13_) {
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp14_ = rygel_http_time_seek_new (_data_->self, &_data_->_inner_error_);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp15_ = _data_->_tmp14_;
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (_data_->_inner_error_ != NULL) {
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				if (_data_->_inner_error_->domain == RYGEL_HTTP_SEEK_ERROR) {
#line 1733 "rygel-http-get.c"
					goto __catch3_rygel_http_seek_error;
				}
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				g_clear_error (&_data_->_inner_error_);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				return FALSE;
#line 1742 "rygel-http-get.c"
			}
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_g_object_unref0 (_data_->self->seek);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->self->seek = (RygelHTTPSeek*) _data_->_tmp15_;
#line 1748 "rygel-http-get.c"
		} else {
#line 138 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp16_ = _data_->need_byte_seek;
#line 138 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (_data_->_tmp16_) {
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp17_ = rygel_http_byte_seek_new (_data_->self, &_data_->_inner_error_);
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp18_ = _data_->_tmp17_;
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				if (_data_->_inner_error_ != NULL) {
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (_data_->_inner_error_->domain == RYGEL_HTTP_SEEK_ERROR) {
#line 1762 "rygel-http-get.c"
						goto __catch3_rygel_http_seek_error;
					}
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					g_clear_error (&_data_->_inner_error_);
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					return FALSE;
#line 1771 "rygel-http-get.c"
				}
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_g_object_unref0 (_data_->self->seek);
#line 139 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->self->seek = (RygelHTTPSeek*) _data_->_tmp18_;
#line 1777 "rygel-http-get.c"
			}
		}
	}
	goto __finally3;
	__catch3_rygel_http_seek_error:
	{
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_inner_error_ = NULL;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp19_ = ((RygelHTTPRequest*) _data_->self)->server;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp20_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_server_unpause_message (_data_->_tmp19_, _data_->_tmp20_);
#line 144 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp21_ = _data_->_error_;
#line 144 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (g_error_matches (_data_->_tmp21_, RYGEL_HTTP_SEEK_ERROR, RYGEL_HTTP_SEEK_ERROR_INVALID_RANGE)) {
#line 145 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			rygel_http_request_end ((RygelHTTPRequest*) _data_->self, (guint) SOUP_STATUS_BAD_REQUEST);
#line 1800 "rygel-http-get.c"
		} else {
#line 146 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_data_->_tmp22_ = _data_->_error_;
#line 146 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			if (g_error_matches (_data_->_tmp22_, RYGEL_HTTP_SEEK_ERROR, RYGEL_HTTP_SEEK_ERROR_OUT_OF_RANGE)) {
#line 147 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				rygel_http_request_end ((RygelHTTPRequest*) _data_->self, (guint) SOUP_STATUS_REQUESTED_RANGE_NOT_SATISFIABLE);
#line 1808 "rygel-http-get.c"
			} else {
#line 149 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp23_ = _data_->_error_;
#line 149 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_tmp24_ = _g_error_copy0 (_data_->_tmp23_);
#line 149 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_data_->_inner_error_ = _data_->_tmp24_;
#line 149 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_g_error_free0 (_data_->_error_);
#line 1818 "rygel-http-get.c"
				goto __finally3;
			}
		}
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_g_error_free0 (_data_->_error_);
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1828 "rygel-http-get.c"
		} else {
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1832 "rygel-http-get.c"
		}
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 152 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1838 "rygel-http-get.c"
	}
	__finally3:
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_inner_error_ != NULL) {
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_error_free (_data_->_inner_error_);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1851 "rygel-http-get.c"
		} else {
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1855 "rygel-http-get.c"
		}
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1861 "rygel-http-get.c"
	}
#line 156 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp25_ = _data_->self->handler;
#line 156 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_handler_add_response_headers (_data_->_tmp25_, _data_->self);
#line 159 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp26_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp27_ = _data_->_tmp26_->request_headers;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp28_ = NULL;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp28_ = soup_message_headers_get_one (_data_->_tmp27_, "Range");
#line 159 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp28_ != NULL) {
#line 160 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp29_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 160 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_message_set_status (_data_->_tmp29_, (guint) SOUP_STATUS_PARTIAL_CONTENT);
#line 1881 "rygel-http-get.c"
	} else {
#line 162 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp30_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 162 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_message_set_status (_data_->_tmp30_, (guint) SOUP_STATUS_OK);
#line 1887 "rygel-http-get.c"
	}
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp32_ = _data_->self->seek;
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp32_ != NULL) {
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp33_ = _data_->self->seek;
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp31_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp33_, RYGEL_TYPE_HTTP_BYTE_SEEK);
#line 1897 "rygel-http-get.c"
	} else {
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp31_ = FALSE;
#line 1901 "rygel-http-get.c"
	}
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp34_ = _data_->_tmp31_;
#line 165 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp34_) {
#line 166 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp35_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 166 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp36_ = _data_->_tmp35_->response_headers;
#line 166 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_message_headers_set_encoding (_data_->_tmp36_, SOUP_ENCODING_CONTENT_LENGTH);
#line 1913 "rygel-http-get.c"
	} else {
#line 168 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp37_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 168 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp38_ = _data_->_tmp37_->response_headers;
#line 168 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_message_headers_set_encoding (_data_->_tmp38_, SOUP_ENCODING_EOF);
#line 1921 "rygel-http-get.c"
	}
#line 171 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_debug ("rygel-http-get.vala:171: Following HTTP headers appended to response:");
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp39_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp40_ = _data_->_tmp39_->response_headers;
#line 172 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	soup_message_headers_foreach (_data_->_tmp40_, ___lambda4__soup_message_headers_foreach_func, _data_->self);
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp41_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp42_ = NULL;
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_object_get (_data_->_tmp41_, "method", &_data_->_tmp42_, NULL);
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp43_ = _data_->_tmp42_;
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp44_ = _data_->_tmp43_;
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp45_ = g_strcmp0 (_data_->_tmp44_, "HEAD") == 0;
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_free0 (_data_->_tmp44_);
#line 176 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_tmp45_) {
#line 178 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp46_ = ((RygelHTTPRequest*) _data_->self)->server;
#line 178 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_data_->_tmp47_ = ((RygelHTTPRequest*) _data_->self)->msg;
#line 178 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		soup_server_unpause_message (_data_->_tmp46_, _data_->_tmp47_);
#line 180 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_data_->_state_ == 0) {
#line 180 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1957 "rygel-http-get.c"
		} else {
#line 180 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1961 "rygel-http-get.c"
		}
#line 180 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_object_unref (_data_->_async_result);
#line 180 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		return FALSE;
#line 1967 "rygel-http-get.c"
	}
#line 183 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp48_ = _data_->self->handler;
#line 183 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp49_ = NULL;
#line 183 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp49_ = rygel_http_get_handler_render_body (_data_->_tmp48_, _data_->self);
#line 183 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->response = _data_->_tmp49_;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_tmp50_ = _data_->response;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_data_->_state_ = 1;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_state_machine_run ((RygelStateMachine*) _data_->_tmp50_, rygel_http_get_handle_item_request_ready, _data_);
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 1985 "rygel-http-get.c"
	_state_1:
#line 185 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_state_machine_run_finish ((RygelStateMachine*) _data_->_tmp50_, _data_->_res_);
#line 187 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_request_end ((RygelHTTPRequest*) _data_->self, (guint) SOUP_STATUS_NONE);
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_object_unref0 (_data_->response);
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_data_->_state_ == 0) {
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1997 "rygel-http-get.c"
	} else {
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2001 "rygel-http-get.c"
	}
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_object_unref (_data_->_async_result);
#line 126 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	return FALSE;
#line 2007 "rygel-http-get.c"
}


static void rygel_http_get_ensure_correct_mode (RygelHTTPGet* self, GError** error) {
	SoupMessage* _tmp0_;
	SoupMessageHeaders* _tmp1_;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_;
	gchar* mode;
	gboolean correct;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	GQuark _tmp7_ = 0U;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	static GQuark _tmp6_label0 = 0;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	static GQuark _tmp6_label1 = 0;
#line 2025 "rygel-http-get.c"
	gboolean _tmp34_;
	GError * _inner_error_ = NULL;
#line 190 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_return_if_fail (self != NULL);
#line 191 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp0_ = ((RygelHTTPRequest*) self)->msg;
#line 191 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp1_ = _tmp0_->request_headers;
#line 191 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp2_ = soup_message_headers_get_one (_tmp1_, RYGEL_HTTP_GET_TRANSFER_MODE_HEADER);
#line 191 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 191 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	mode = _tmp3_;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	correct = TRUE;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp4_ = mode;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp5_ = _tmp4_;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp7_ = (NULL == _tmp5_) ? 0 : g_quark_from_string (_tmp5_);
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (_tmp7_ == ((0 != _tmp6_label0) ? _tmp6_label0 : (_tmp6_label0 = g_quark_from_static_string ("Streaming")))) {
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		switch (0) {
#line 2052 "rygel-http-get.c"
			default:
			{
				gboolean _tmp8_ = FALSE;
				RygelHTTPGetHandler* _tmp9_;
				gboolean _tmp18_;
#line 196 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_tmp9_ = self->handler;
#line 196 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, RYGEL_TYPE_HTTP_TRANSCODE_HANDLER)) {
#line 196 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp8_ = TRUE;
#line 2064 "rygel-http-get.c"
				} else {
					gboolean _tmp10_ = FALSE;
					gboolean _tmp11_ = FALSE;
					RygelMediaItem* _tmp12_;
					gboolean _tmp13_ = FALSE;
					gboolean _tmp15_;
					gboolean _tmp17_;
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp12_ = ((RygelHTTPRequest*) self)->item;
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp13_ = rygel_media_item_streamable (_tmp12_);
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (_tmp13_) {
#line 2078 "rygel-http-get.c"
						RygelSubtitle* _tmp14_;
#line 198 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp14_ = self->subtitle;
#line 198 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp11_ = _tmp14_ == NULL;
#line 2084 "rygel-http-get.c"
					} else {
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp11_ = FALSE;
#line 2088 "rygel-http-get.c"
					}
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp15_ = _tmp11_;
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (_tmp15_) {
#line 2094 "rygel-http-get.c"
						RygelThumbnail* _tmp16_;
#line 199 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp16_ = self->thumbnail;
#line 199 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp10_ = _tmp16_ == NULL;
#line 2100 "rygel-http-get.c"
					} else {
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp10_ = FALSE;
#line 2104 "rygel-http-get.c"
					}
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp17_ = _tmp10_;
#line 197 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp8_ = _tmp17_;
#line 2110 "rygel-http-get.c"
				}
#line 196 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_tmp18_ = _tmp8_;
#line 196 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				correct = _tmp18_;
#line 201 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				break;
#line 2118 "rygel-http-get.c"
			}
		}
	} else if (_tmp7_ == ((0 != _tmp6_label1) ? _tmp6_label1 : (_tmp6_label1 = g_quark_from_static_string ("Interactive")))) {
#line 194 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		switch (0) {
#line 2124 "rygel-http-get.c"
			default:
			{
				gboolean _tmp19_ = FALSE;
				RygelHTTPGetHandler* _tmp20_;
				gboolean _tmp33_;
#line 203 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_tmp20_ = self->handler;
#line 203 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp20_, RYGEL_TYPE_HTTP_IDENTITY_HANDLER)) {
#line 2134 "rygel-http-get.c"
					gboolean _tmp21_ = FALSE;
					gboolean _tmp22_ = FALSE;
					RygelMediaItem* _tmp23_;
					gboolean _tmp24_ = FALSE;
					gboolean _tmp27_;
					gboolean _tmp32_;
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp23_ = ((RygelHTTPRequest*) self)->item;
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp24_ = rygel_media_item_is_live_stream (_tmp23_);
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (!_tmp24_) {
#line 2147 "rygel-http-get.c"
						RygelMediaItem* _tmp25_;
						gboolean _tmp26_ = FALSE;
#line 205 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp25_ = ((RygelHTTPRequest*) self)->item;
#line 205 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp26_ = rygel_media_item_streamable (_tmp25_);
#line 205 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp22_ = !_tmp26_;
#line 2156 "rygel-http-get.c"
					} else {
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp22_ = FALSE;
#line 2160 "rygel-http-get.c"
					}
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp27_ = _tmp22_;
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					if (_tmp27_) {
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp21_ = TRUE;
#line 2168 "rygel-http-get.c"
					} else {
						gboolean _tmp28_ = FALSE;
						RygelSubtitle* _tmp29_;
						gboolean _tmp31_;
#line 206 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp29_ = self->subtitle;
#line 206 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						if (_tmp29_ != NULL) {
#line 206 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
							_tmp28_ = TRUE;
#line 2179 "rygel-http-get.c"
						} else {
							RygelThumbnail* _tmp30_;
#line 207 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
							_tmp30_ = self->thumbnail;
#line 207 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
							_tmp28_ = _tmp30_ != NULL;
#line 2186 "rygel-http-get.c"
						}
#line 206 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp31_ = _tmp28_;
#line 206 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
						_tmp21_ = _tmp31_;
#line 2192 "rygel-http-get.c"
					}
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp32_ = _tmp21_;
#line 204 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp19_ = _tmp32_;
#line 2198 "rygel-http-get.c"
				} else {
#line 203 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
					_tmp19_ = FALSE;
#line 2202 "rygel-http-get.c"
				}
#line 203 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				_tmp33_ = _tmp19_;
#line 203 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				correct = _tmp33_;
#line 209 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
				break;
#line 2210 "rygel-http-get.c"
			}
		}
	}
#line 212 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_tmp34_ = correct;
#line 212 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	if (!_tmp34_) {
#line 2218 "rygel-http-get.c"
		const gchar* _tmp35_;
		RygelMediaItem* _tmp36_;
		const gchar* _tmp37_;
		GError* _tmp38_;
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_tmp35_ = mode;
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_tmp36_ = ((RygelHTTPRequest*) self)->item;
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_tmp37_ = ((RygelMediaObject*) _tmp36_)->id;
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_tmp38_ = g_error_new (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_UNACCEPTABLE, "%s mode not supported for '%s'", _tmp35_, _tmp37_);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		_inner_error_ = _tmp38_;
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
		if (_inner_error_->domain == RYGEL_HTTP_REQUEST_ERROR) {
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_propagate_error (error, _inner_error_);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_g_free0 (mode);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			return;
#line 2241 "rygel-http-get.c"
		} else {
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			_g_free0 (mode);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.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 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			g_clear_error (&_inner_error_);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
			return;
#line 2251 "rygel-http-get.c"
		}
	}
#line 190 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_free0 (mode);
#line 2256 "rygel-http-get.c"
}


static void rygel_http_get_class_init (RygelHTTPGetClass * klass) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	rygel_http_get_parent_class = g_type_class_peek_parent (klass);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	g_type_class_add_private (klass, sizeof (RygelHTTPGetPrivate));
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (klass)->handle = rygel_http_get_real_handle;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (klass)->handle_finish = rygel_http_get_real_handle_finish;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (klass)->find_item = rygel_http_get_real_find_item;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	RYGEL_HTTP_REQUEST_CLASS (klass)->find_item_finish = rygel_http_get_real_find_item_finish;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_http_get_finalize;
#line 2275 "rygel-http-get.c"
}


static void rygel_http_get_instance_init (RygelHTTPGet * self) {
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self->priv = RYGEL_HTTP_GET_GET_PRIVATE (self);
#line 2282 "rygel-http-get.c"
}


static void rygel_http_get_finalize (GObject* obj) {
	RygelHTTPGet * self;
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_HTTP_GET, RygelHTTPGet);
#line 34 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_rygel_thumbnail_unref0 (self->thumbnail);
#line 35 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_rygel_subtitle_unref0 (self->subtitle);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_g_object_unref0 (self->seek);
#line 41 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	_rygel_http_get_handler_unref0 (self->handler);
#line 31 "/home/jens/Source/rygel/tests/rygel-http-get.vala"
	G_OBJECT_CLASS (rygel_http_get_parent_class)->finalize (obj);
#line 2300 "rygel-http-get.c"
}


/**
 * Responsible for handling HTTP GET & HEAD client requests.
 */
GType rygel_http_get_get_type (void) {
	static volatile gsize rygel_http_get_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_http_get_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelHTTPGetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_http_get_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelHTTPGet), 0, (GInstanceInitFunc) rygel_http_get_instance_init, NULL };
		GType rygel_http_get_type_id;
		rygel_http_get_type_id = g_type_register_static (RYGEL_TYPE_HTTP_REQUEST, "RygelHTTPGet", &g_define_type_info, 0);
		g_once_init_leave (&rygel_http_get_type_id__volatile, rygel_http_get_type_id);
	}
	return rygel_http_get_type_id__volatile;
}



