summaryrefslogtreecommitdiff
path: root/src/VideoMetadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/VideoMetadata.c')
-rw-r--r--src/VideoMetadata.c3498
1 files changed, 1801 insertions, 1697 deletions
diff --git a/src/VideoMetadata.c b/src/VideoMetadata.c
index dbdd25c..0befb0a 100644
--- a/src/VideoMetadata.c
+++ b/src/VideoMetadata.c
@@ -1,4 +1,4 @@
-/* VideoMetadata.c generated by valac 0.36.6, the Vala compiler
+/* VideoMetadata.c generated by valac 0.40.4, the Vala compiler
* generated from VideoMetadata.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
@@ -235,48 +236,73 @@ static gpointer avi_chunk_parent_class = NULL;
gpointer media_metadata_ref (gpointer instance);
void media_metadata_unref (gpointer instance);
-GParamSpec* param_spec_media_metadata (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_media_metadata (GValue* value, gpointer v_object);
-void value_take_media_metadata (GValue* value, gpointer v_object);
+GParamSpec* param_spec_media_metadata (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_media_metadata (GValue* value,
+ gpointer v_object);
+void value_take_media_metadata (GValue* value,
+ gpointer v_object);
gpointer value_get_media_metadata (const GValue* value);
GType media_metadata_get_type (void) G_GNUC_CONST;
gpointer metadata_date_time_ref (gpointer instance);
void metadata_date_time_unref (gpointer instance);
-GParamSpec* param_spec_metadata_date_time (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_metadata_date_time (GValue* value, gpointer v_object);
-void value_take_metadata_date_time (GValue* value, gpointer v_object);
+GParamSpec* param_spec_metadata_date_time (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_metadata_date_time (GValue* value,
+ gpointer v_object);
+void value_take_metadata_date_time (GValue* value,
+ gpointer v_object);
gpointer value_get_metadata_date_time (const GValue* value);
GType metadata_date_time_get_type (void) G_GNUC_CONST;
GType video_metadata_get_type (void) G_GNUC_CONST;
#define VIDEO_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_METADATA, VideoMetadataPrivate))
-enum {
- VIDEO_METADATA_DUMMY_PROPERTY
-};
VideoMetadata* video_metadata_new (void);
VideoMetadata* video_metadata_construct (GType object_type);
MediaMetadata* media_metadata_construct (GType object_type);
-static void video_metadata_real_read_from_file (MediaMetadata* base, GFile* file, GError** error);
+static void video_metadata_real_read_from_file (MediaMetadata* base,
+ GFile* file,
+ GError** error);
gpointer quick_time_metadata_loader_ref (gpointer instance);
void quick_time_metadata_loader_unref (gpointer instance);
-GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_quick_time_metadata_loader (GValue* value, gpointer v_object);
-void value_take_quick_time_metadata_loader (GValue* value, gpointer v_object);
+GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_quick_time_metadata_loader (GValue* value,
+ gpointer v_object);
+void value_take_quick_time_metadata_loader (GValue* value,
+ gpointer v_object);
gpointer value_get_quick_time_metadata_loader (const GValue* value);
GType quick_time_metadata_loader_get_type (void) G_GNUC_CONST;
QuickTimeMetadataLoader* quick_time_metadata_loader_new (GFile* file);
-QuickTimeMetadataLoader* quick_time_metadata_loader_construct (GType object_type, GFile* file);
+QuickTimeMetadataLoader* quick_time_metadata_loader_construct (GType object_type,
+ GFile* file);
gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self);
MetadataDateTime* quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self);
gchar* quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self);
gpointer avi_metadata_loader_ref (gpointer instance);
void avi_metadata_loader_unref (gpointer instance);
-GParamSpec* param_spec_avi_metadata_loader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_avi_metadata_loader (GValue* value, gpointer v_object);
-void value_take_avi_metadata_loader (GValue* value, gpointer v_object);
+GParamSpec* param_spec_avi_metadata_loader (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_avi_metadata_loader (GValue* value,
+ gpointer v_object);
+void value_take_avi_metadata_loader (GValue* value,
+ gpointer v_object);
gpointer value_get_avi_metadata_loader (const GValue* value);
GType avi_metadata_loader_get_type (void) G_GNUC_CONST;
AVIMetadataLoader* avi_metadata_loader_new (GFile* file);
-AVIMetadataLoader* avi_metadata_loader_construct (GType object_type, GFile* file);
+AVIMetadataLoader* avi_metadata_loader_construct (GType object_type,
+ GFile* file);
gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self);
MetadataDateTime* avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self);
gchar* avi_metadata_loader_get_title (AVIMetadataLoader* self);
@@ -285,164 +311,205 @@ static gchar* video_metadata_real_get_title (MediaMetadata* base);
static gchar* video_metadata_real_get_comment (MediaMetadata* base);
static void video_metadata_finalize (MediaMetadata * obj);
#define QUICK_TIME_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoaderPrivate))
-enum {
- QUICK_TIME_METADATA_LOADER_DUMMY_PROPERTY
-};
#define QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT ((time_t) 2082844800)
static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self);
MetadataDateTime* metadata_date_time_new (time_t timestamp);
-MetadataDateTime* metadata_date_time_construct (GType object_type, time_t timestamp);
+MetadataDateTime* metadata_date_time_construct (GType object_type,
+ time_t timestamp);
gpointer quick_time_atom_ref (gpointer instance);
void quick_time_atom_unref (gpointer instance);
-GParamSpec* param_spec_quick_time_atom (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_quick_time_atom (GValue* value, gpointer v_object);
-void value_take_quick_time_atom (GValue* value, gpointer v_object);
+GParamSpec* param_spec_quick_time_atom (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_quick_time_atom (GValue* value,
+ gpointer v_object);
+void value_take_quick_time_atom (GValue* value,
+ gpointer v_object);
gpointer value_get_quick_time_atom (const GValue* value);
GType quick_time_atom_get_type (void) G_GNUC_CONST;
QuickTimeAtom* quick_time_atom_new (GFile* file);
-QuickTimeAtom* quick_time_atom_construct (GType object_type, GFile* file);
-void quick_time_atom_open_file (QuickTimeAtom* self, GError** error);
-void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error);
+QuickTimeAtom* quick_time_atom_construct (GType object_type,
+ GFile* file);
+void quick_time_atom_open_file (QuickTimeAtom* self,
+ GError** error);
+void quick_time_atom_read_atom (QuickTimeAtom* self,
+ GError** error);
gchar* quick_time_atom_get_current_atom_name (QuickTimeAtom* self);
-void quick_time_atom_next_atom (QuickTimeAtom* self, GError** error);
+void quick_time_atom_next_atom (QuickTimeAtom* self,
+ GError** error);
gboolean quick_time_atom_is_last_atom (QuickTimeAtom* self);
-void quick_time_atom_close_file (QuickTimeAtom* self, GError** error);
+void quick_time_atom_close_file (QuickTimeAtom* self,
+ GError** error);
QuickTimeAtom* quick_time_atom_get_first_child_atom (QuickTimeAtom* self);
guint64 quick_time_atom_section_size_remaining (QuickTimeAtom* self);
-guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self, GError** error);
+guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self,
+ GError** error);
static void quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj);
#define QUICK_TIME_ATOM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUICK_TIME_ATOM, QuickTimeAtomPrivate))
-enum {
- QUICK_TIME_ATOM_DUMMY_PROPERTY
-};
-static QuickTimeAtom* quick_time_atom_new_with_input_stream (GDataInputStream* input, QuickTimeAtom* parent);
-static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_type, GDataInputStream* input, QuickTimeAtom* parent);
-static void quick_time_atom_advance_section_offset (QuickTimeAtom* self, guint64 amount);
-guchar quick_time_atom_read_byte (QuickTimeAtom* self, GError** error);
-guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self, GError** error);
-static void quick_time_atom_skip (QuickTimeAtom* self, guint64 skip_amount, GError** error);
-void skip_uint64 (GInputStream* input, guint64 skip_amount, GError** error);
+static QuickTimeAtom* quick_time_atom_new_with_input_stream (GDataInputStream* input,
+ QuickTimeAtom* parent);
+static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_type,
+ GDataInputStream* input,
+ QuickTimeAtom* parent);
+static void quick_time_atom_advance_section_offset (QuickTimeAtom* self,
+ guint64 amount);
+guchar quick_time_atom_read_byte (QuickTimeAtom* self,
+ GError** error);
+guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self,
+ GError** error);
+static void quick_time_atom_skip (QuickTimeAtom* self,
+ guint64 skip_amount,
+ GError** error);
+void skip_uint64 (GInputStream* input,
+ guint64 skip_amount,
+ GError** error);
static void quick_time_atom_finalize (QuickTimeAtom * obj);
#define AVI_METADATA_LOADER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_METADATA_LOADER, AVIMetadataLoaderPrivate))
-enum {
- AVI_METADATA_LOADER_DUMMY_PROPERTY
-};
#define AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH 19
#define AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER ((guint16) 0x13)
#define AVI_METADATA_LOADER_MAX_STRD_LENGTH 100
static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self);
gpointer avi_chunk_ref (gpointer instance);
void avi_chunk_unref (gpointer instance);
-GParamSpec* param_spec_avi_chunk (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_avi_chunk (GValue* value, gpointer v_object);
-void value_take_avi_chunk (GValue* value, gpointer v_object);
+GParamSpec* param_spec_avi_chunk (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_avi_chunk (GValue* value,
+ gpointer v_object);
+void value_take_avi_chunk (GValue* value,
+ gpointer v_object);
gpointer value_get_avi_chunk (const GValue* value);
GType avi_chunk_get_type (void) G_GNUC_CONST;
AVIChunk* avi_chunk_new (GFile* file);
-AVIChunk* avi_chunk_construct (GType object_type, GFile* file);
-void avi_chunk_open_file (AVIChunk* self, GError** error);
-void avi_chunk_read_chunk (AVIChunk* self, GError** error);
+AVIChunk* avi_chunk_construct (GType object_type,
+ GFile* file);
+void avi_chunk_open_file (AVIChunk* self,
+ GError** error);
+void avi_chunk_read_chunk (AVIChunk* self,
+ GError** error);
gchar* avi_chunk_get_current_chunk_name (AVIChunk* self);
-gchar* avi_chunk_read_name (AVIChunk* self, GError** error);
-void avi_chunk_close_file (AVIChunk* self, GError** error);
-static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self, AVIChunk* chunk, GError** error);
+gchar* avi_chunk_read_name (AVIChunk* self,
+ GError** error);
+void avi_chunk_close_file (AVIChunk* self,
+ GError** error);
+static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error);
guint64 avi_chunk_section_size_remaining (AVIChunk* self);
-guint16 avi_chunk_read_uint16 (AVIChunk* self, GError** error);
-void avi_chunk_skip (AVIChunk* self, guint64 skip_amount, GError** error);
-guchar avi_chunk_read_byte (AVIChunk* self, GError** error);
-static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self, AVIChunk* chunk, GError** error);
-static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChunk* chunk, GError** error);
-gchar* avi_chunk_section_to_string (AVIChunk* self, GError** error);
+guint16 avi_chunk_read_uint16 (AVIChunk* self,
+ GError** error);
+void avi_chunk_skip (AVIChunk* self,
+ guint64 skip_amount,
+ GError** error);
+guchar avi_chunk_read_byte (AVIChunk* self,
+ GError** error);
+static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error);
+static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error);
+gchar* avi_chunk_section_to_string (AVIChunk* self,
+ GError** error);
AVIChunk* avi_chunk_get_first_child_chunk (AVIChunk* self);
gboolean avi_chunk_is_last_chunk (AVIChunk* self);
-void avi_chunk_next_chunk (AVIChunk* self, GError** error);
-static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self, const gchar* sdate);
-static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self, const gchar* s);
-void avi_chunk_nonsection_skip (AVIChunk* self, guint64 skip_amount, GError** error);
+void avi_chunk_next_chunk (AVIChunk* self,
+ GError** error);
+static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self,
+ const gchar* sdate);
+static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self,
+ const gchar* s);
+void avi_chunk_nonsection_skip (AVIChunk* self,
+ guint64 skip_amount,
+ GError** error);
static void avi_metadata_loader_finalize (AVIMetadataLoader * obj);
#define AVI_CHUNK_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AVI_CHUNK, AVIChunkPrivate))
-enum {
- AVI_CHUNK_DUMMY_PROPERTY
-};
#define AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH 1024
-static AVIChunk* avi_chunk_new_with_input_stream (GDataInputStream* input, AVIChunk* parent);
-static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type, GDataInputStream* input, AVIChunk* parent);
-static void avi_chunk_advance_section_offset (AVIChunk* self, guint64 amount);
+static AVIChunk* avi_chunk_new_with_input_stream (GDataInputStream* input,
+ AVIChunk* parent);
+static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type,
+ GDataInputStream* input,
+ AVIChunk* parent);
+static void avi_chunk_advance_section_offset (AVIChunk* self,
+ guint64 amount);
static void avi_chunk_finalize (AVIChunk * obj);
-VideoMetadata* video_metadata_construct (GType object_type) {
+VideoMetadata*
+video_metadata_construct (GType object_type)
+{
VideoMetadata* self = NULL;
#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (VideoMetadata*) media_metadata_construct (object_type);
#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 381 "VideoMetadata.c"
+#line 451 "VideoMetadata.c"
}
-VideoMetadata* video_metadata_new (void) {
+VideoMetadata*
+video_metadata_new (void)
+{
#line 13 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return video_metadata_construct (TYPE_VIDEO_METADATA);
-#line 388 "VideoMetadata.c"
+#line 460 "VideoMetadata.c"
}
-static void video_metadata_real_read_from_file (MediaMetadata* base, GFile* file, GError** error) {
+static void
+video_metadata_real_read_from_file (MediaMetadata* base,
+ GFile* file,
+ GError** error)
+{
VideoMetadata * self;
QuickTimeMetadataLoader* quicktime = NULL;
- GFile* _tmp0_;
+ QuickTimeMetadataLoader* _tmp0_;
QuickTimeMetadataLoader* _tmp1_;
- QuickTimeMetadataLoader* _tmp2_;
- gboolean _tmp3_;
AVIMetadataLoader* avi = NULL;
- GFile* _tmp8_;
- AVIMetadataLoader* _tmp9_;
- AVIMetadataLoader* _tmp10_;
- gboolean _tmp11_;
- GFile* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
- GError* _tmp20_;
+ AVIMetadataLoader* _tmp6_;
+ AVIMetadataLoader* _tmp7_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ GError* _tmp14_;
+ GError* _tmp15_;
GError * _inner_error_ = NULL;
#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_METADATA, VideoMetadata);
#line 19 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_IS_FILE (file));
#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = file;
-#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quick_time_metadata_loader_new (_tmp0_);
+ _tmp0_ = quick_time_metadata_loader_new (file);
#line 20 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quicktime = _tmp1_;
+ quicktime = _tmp0_;
#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = quicktime;
+ _tmp1_ = quicktime;
#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = quick_time_metadata_loader_is_supported (_tmp2_);
-#line 21 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp3_) {
-#line 426 "VideoMetadata.c"
+ if (quick_time_metadata_loader_is_supported (_tmp1_)) {
+#line 493 "VideoMetadata.c"
+ QuickTimeMetadataLoader* _tmp2_;
+ MetadataDateTime* _tmp3_;
QuickTimeMetadataLoader* _tmp4_;
- MetadataDateTime* _tmp5_;
- QuickTimeMetadataLoader* _tmp6_;
- gchar* _tmp7_;
+ gchar* _tmp5_;
#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = quicktime;
+ _tmp2_ = quicktime;
#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = quick_time_metadata_loader_get_creation_date_time (_tmp4_);
+ _tmp3_ = quick_time_metadata_loader_get_creation_date_time (_tmp2_);
#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_metadata_date_time_unref0 (self->priv->timestamp);
#line 22 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->timestamp = _tmp5_;
+ self->priv->timestamp = _tmp3_;
#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = quicktime;
+ _tmp4_ = quicktime;
#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = quick_time_metadata_loader_get_title (_tmp6_);
+ _tmp5_ = quick_time_metadata_loader_get_title (_tmp4_);
#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->title);
#line 23 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->title = _tmp7_;
+ self->priv->title = _tmp5_;
#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->comment);
#line 25 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -451,41 +518,37 @@ static void video_metadata_real_read_from_file (MediaMetadata* base, GFile* file
_quick_time_metadata_loader_unref0 (quicktime);
#line 26 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 455 "VideoMetadata.c"
+#line 522 "VideoMetadata.c"
}
#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = file;
-#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = avi_metadata_loader_new (_tmp8_);
+ _tmp6_ = avi_metadata_loader_new (file);
#line 28 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi = _tmp9_;
+ avi = _tmp6_;
#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = avi;
+ _tmp7_ = avi;
#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_metadata_loader_is_supported (_tmp10_);
-#line 29 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp11_) {
-#line 469 "VideoMetadata.c"
- AVIMetadataLoader* _tmp12_;
- MetadataDateTime* _tmp13_;
- AVIMetadataLoader* _tmp14_;
- gchar* _tmp15_;
+ if (avi_metadata_loader_is_supported (_tmp7_)) {
+#line 532 "VideoMetadata.c"
+ AVIMetadataLoader* _tmp8_;
+ MetadataDateTime* _tmp9_;
+ AVIMetadataLoader* _tmp10_;
+ gchar* _tmp11_;
#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = avi;
+ _tmp8_ = avi;
#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = avi_metadata_loader_get_creation_date_time (_tmp12_);
+ _tmp9_ = avi_metadata_loader_get_creation_date_time (_tmp8_);
#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_metadata_date_time_unref0 (self->priv->timestamp);
#line 30 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->timestamp = _tmp13_;
+ self->priv->timestamp = _tmp9_;
#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = avi;
+ _tmp10_ = avi;
#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = avi_metadata_loader_get_title (_tmp14_);
+ _tmp11_ = avi_metadata_loader_get_title (_tmp10_);
#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->title);
#line 31 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->title = _tmp15_;
+ self->priv->title = _tmp11_;
#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->comment);
#line 32 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -496,22 +559,20 @@ static void video_metadata_real_read_from_file (MediaMetadata* base, GFile* file
_quick_time_metadata_loader_unref0 (quicktime);
#line 33 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 500 "VideoMetadata.c"
+#line 563 "VideoMetadata.c"
}
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = file;
-#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = g_file_get_path (_tmp16_);
+ _tmp12_ = g_file_get_path (file);
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_;
+ _tmp13_ = _tmp12_;
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "File %s is not a supported video format", _tmp18_);
+ _tmp14_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "File %s is not a supported video format", _tmp13_);
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _tmp19_;
+ _tmp15_ = _tmp14_;
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp18_);
+ _g_free0 (_tmp13_);
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp20_;
+ _inner_error_ = _tmp15_;
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -520,18 +581,22 @@ static void video_metadata_real_read_from_file (MediaMetadata* base, GFile* file
_quick_time_metadata_loader_unref0 (quicktime);
#line 36 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 524 "VideoMetadata.c"
+#line 585 "VideoMetadata.c"
}
-static gpointer _metadata_date_time_ref0 (gpointer self) {
+static gpointer
+_metadata_date_time_ref0 (gpointer self)
+{
#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self ? metadata_date_time_ref (self) : NULL;
-#line 531 "VideoMetadata.c"
+#line 594 "VideoMetadata.c"
}
-static MetadataDateTime* video_metadata_real_get_creation_date_time (MediaMetadata* base) {
+static MetadataDateTime*
+video_metadata_real_get_creation_date_time (MediaMetadata* base)
+{
VideoMetadata * self;
MetadataDateTime* result = NULL;
MetadataDateTime* _tmp0_;
@@ -546,11 +611,13 @@ static MetadataDateTime* video_metadata_real_get_creation_date_time (MediaMetada
result = _tmp1_;
#line 40 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 550 "VideoMetadata.c"
+#line 615 "VideoMetadata.c"
}
-static gchar* video_metadata_real_get_title (MediaMetadata* base) {
+static gchar*
+video_metadata_real_get_title (MediaMetadata* base)
+{
VideoMetadata * self;
gchar* result = NULL;
const gchar* _tmp0_;
@@ -565,11 +632,13 @@ static gchar* video_metadata_real_get_title (MediaMetadata* base) {
result = _tmp1_;
#line 44 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 569 "VideoMetadata.c"
+#line 636 "VideoMetadata.c"
}
-static gchar* video_metadata_real_get_comment (MediaMetadata* base) {
+static gchar*
+video_metadata_real_get_comment (MediaMetadata* base)
+{
VideoMetadata * self;
gchar* result = NULL;
const gchar* _tmp0_;
@@ -584,11 +653,13 @@ static gchar* video_metadata_real_get_comment (MediaMetadata* base) {
result = _tmp1_;
#line 48 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 588 "VideoMetadata.c"
+#line 657 "VideoMetadata.c"
}
-static void video_metadata_class_init (VideoMetadataClass * klass) {
+static void
+video_metadata_class_init (VideoMetadataClass * klass)
+{
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
video_metadata_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -603,11 +674,13 @@ static void video_metadata_class_init (VideoMetadataClass * klass) {
((MediaMetadataClass *) klass)->get_title = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_title;
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
((MediaMetadataClass *) klass)->get_comment = (gchar* (*) (MediaMetadata *)) video_metadata_real_get_comment;
-#line 607 "VideoMetadata.c"
+#line 678 "VideoMetadata.c"
}
-static void video_metadata_instance_init (VideoMetadata * self) {
+static void
+video_metadata_instance_init (VideoMetadata * self)
+{
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv = VIDEO_METADATA_GET_PRIVATE (self);
#line 9 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -616,11 +689,13 @@ static void video_metadata_instance_init (VideoMetadata * self) {
self->priv->title = NULL;
#line 11 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->comment = NULL;
-#line 620 "VideoMetadata.c"
+#line 693 "VideoMetadata.c"
}
-static void video_metadata_finalize (MediaMetadata * obj) {
+static void
+video_metadata_finalize (MediaMetadata * obj)
+{
VideoMetadata * self;
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_METADATA, VideoMetadata);
@@ -632,11 +707,13 @@ static void video_metadata_finalize (MediaMetadata * obj) {
_g_free0 (self->priv->comment);
#line 7 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
MEDIA_METADATA_CLASS (video_metadata_parent_class)->finalize (obj);
-#line 636 "VideoMetadata.c"
+#line 711 "VideoMetadata.c"
}
-GType video_metadata_get_type (void) {
+GType
+video_metadata_get_type (void)
+{
static volatile gsize video_metadata_type_id__volatile = 0;
if (g_once_init_enter (&video_metadata_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (VideoMetadataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_metadata_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMetadata), 0, (GInstanceInitFunc) video_metadata_instance_init, NULL };
@@ -648,61 +725,66 @@ GType video_metadata_get_type (void) {
}
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self ? g_object_ref (self) : NULL;
-#line 655 "VideoMetadata.c"
+#line 734 "VideoMetadata.c"
}
-QuickTimeMetadataLoader* quick_time_metadata_loader_construct (GType object_type, GFile* file) {
+QuickTimeMetadataLoader*
+quick_time_metadata_loader_construct (GType object_type,
+ GFile* file)
+{
QuickTimeMetadataLoader* self = NULL;
GFile* _tmp0_;
- GFile* _tmp1_;
#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (QuickTimeMetadataLoader*) g_type_create_instance (object_type);
#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = file;
-#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (file);
#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
#line 62 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp1_;
+ self->priv->file = _tmp0_;
#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 677 "VideoMetadata.c"
+#line 756 "VideoMetadata.c"
}
-QuickTimeMetadataLoader* quick_time_metadata_loader_new (GFile* file) {
+QuickTimeMetadataLoader*
+quick_time_metadata_loader_new (GFile* file)
+{
#line 61 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return quick_time_metadata_loader_construct (TYPE_QUICK_TIME_METADATA_LOADER, file);
-#line 684 "VideoMetadata.c"
+#line 765 "VideoMetadata.c"
}
-MetadataDateTime* quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self) {
+MetadataDateTime*
+quick_time_metadata_loader_get_creation_date_time (QuickTimeMetadataLoader* self)
+{
MetadataDateTime* result = NULL;
- gulong _tmp0_;
- MetadataDateTime* _tmp1_;
+ MetadataDateTime* _tmp0_;
#line 65 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL);
#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = quick_time_metadata_loader_get_creation_date_time_for_quicktime (self);
+ _tmp0_ = metadata_date_time_new ((time_t) quick_time_metadata_loader_get_creation_date_time_for_quicktime (self));
#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = metadata_date_time_new ((time_t) _tmp0_);
-#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
+ result = _tmp0_;
#line 66 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 702 "VideoMetadata.c"
+#line 782 "VideoMetadata.c"
}
-gchar* quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self) {
+gchar*
+quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self)
+{
gchar* result = NULL;
#line 69 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), NULL);
@@ -710,11 +792,13 @@ gchar* quick_time_metadata_loader_get_title (QuickTimeMetadataLoader* self) {
result = NULL;
#line 71 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 714 "VideoMetadata.c"
+#line 796 "VideoMetadata.c"
}
-gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self) {
+gboolean
+quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
+{
gboolean result = FALSE;
QuickTimeAtom* test = NULL;
GFile* _tmp0_;
@@ -731,7 +815,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
test = _tmp1_;
#line 78 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
ret = FALSE;
-#line 735 "VideoMetadata.c"
+#line 819 "VideoMetadata.c"
{
QuickTimeAtom* _tmp2_;
QuickTimeAtom* _tmp3_;
@@ -745,7 +829,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
quick_time_atom_open_file (_tmp2_, &_inner_error_);
#line 80 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 749 "VideoMetadata.c"
+#line 833 "VideoMetadata.c"
goto __catch586_g_error;
}
#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -754,7 +838,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
quick_time_atom_read_atom (_tmp3_, &_inner_error_);
#line 81 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 758 "VideoMetadata.c"
+#line 842 "VideoMetadata.c"
goto __catch586_g_error;
}
#line 84 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -771,11 +855,11 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
if (_tmp7_) {
#line 85 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
ret = TRUE;
-#line 775 "VideoMetadata.c"
+#line 859 "VideoMetadata.c"
} else {
#line 90 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 779 "VideoMetadata.c"
+#line 863 "VideoMetadata.c"
QuickTimeAtom* _tmp8_;
gchar* _tmp9_;
gchar* _tmp10_;
@@ -783,7 +867,6 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
QuickTimeAtom* _tmp12_;
QuickTimeAtom* _tmp13_;
QuickTimeAtom* _tmp14_;
- gboolean _tmp15_;
#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp8_ = test;
#line 91 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -800,7 +883,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
ret = TRUE;
#line 93 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 804 "VideoMetadata.c"
+#line 887 "VideoMetadata.c"
}
#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp12_ = test;
@@ -808,7 +891,7 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
quick_time_atom_next_atom (_tmp12_, &_inner_error_);
#line 95 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 812 "VideoMetadata.c"
+#line 895 "VideoMetadata.c"
goto __catch586_g_error;
}
#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -817,18 +900,16 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
quick_time_atom_read_atom (_tmp13_, &_inner_error_);
#line 96 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 821 "VideoMetadata.c"
+#line 904 "VideoMetadata.c"
goto __catch586_g_error;
}
#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp14_ = test;
#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = quick_time_atom_is_last_atom (_tmp14_);
-#line 97 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp15_) {
+ if (quick_time_atom_is_last_atom (_tmp14_)) {
#line 98 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 832 "VideoMetadata.c"
+#line 913 "VideoMetadata.c"
}
}
}
@@ -837,39 +918,39 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
__catch586_g_error:
{
GError* e = NULL;
- GFile* _tmp16_;
+ GFile* _tmp15_;
+ gchar* _tmp16_;
gchar* _tmp17_;
- gchar* _tmp18_;
- GError* _tmp19_;
- const gchar* _tmp20_;
+ GError* _tmp18_;
+ const gchar* _tmp19_;
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = self->priv->file;
+ _tmp15_ = self->priv->file;
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = g_file_get_path (_tmp16_);
+ _tmp16_ = g_file_get_path (_tmp15_);
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_;
+ _tmp17_ = _tmp16_;
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = e;
+ _tmp18_ = e;
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _tmp19_->message;
+ _tmp19_ = _tmp18_->message;
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_debug ("VideoMetadata.vala:103: Error while testing for QuickTime file for %s:" \
-" %s", _tmp18_, _tmp20_);
+" %s", _tmp17_, _tmp19_);
#line 103 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp18_);
+ _g_free0 (_tmp17_);
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 866 "VideoMetadata.c"
+#line 947 "VideoMetadata.c"
}
__finally586:
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 871 "VideoMetadata.c"
- gboolean _tmp21_ = FALSE;
+#line 952 "VideoMetadata.c"
+ gboolean _tmp20_ = FALSE;
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (test);
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -877,18 +958,18 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 79 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp21_;
-#line 881 "VideoMetadata.c"
+ return _tmp20_;
+#line 962 "VideoMetadata.c"
}
{
- QuickTimeAtom* _tmp22_;
+ QuickTimeAtom* _tmp21_;
#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = test;
+ _tmp21_ = test;
#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_close_file (_tmp22_, &_inner_error_);
+ quick_time_atom_close_file (_tmp21_, &_inner_error_);
#line 107 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 891 "VideoMetadata.c"
+#line 972 "VideoMetadata.c"
goto __catch587_g_error;
}
}
@@ -896,27 +977,27 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
__catch587_g_error:
{
GError* e = NULL;
- GError* _tmp23_;
- const gchar* _tmp24_;
+ GError* _tmp22_;
+ const gchar* _tmp23_;
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = e;
+ _tmp22_ = e;
#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = _tmp23_->message;
+ _tmp23_ = _tmp22_->message;
#line 109 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:109: Error while closing Quicktime file: %s", _tmp24_);
+ g_debug ("VideoMetadata.vala:109: Error while closing Quicktime file: %s", _tmp23_);
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 913 "VideoMetadata.c"
+#line 994 "VideoMetadata.c"
}
__finally587:
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 918 "VideoMetadata.c"
- gboolean _tmp25_ = FALSE;
+#line 999 "VideoMetadata.c"
+ gboolean _tmp24_ = FALSE;
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (test);
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -924,8 +1005,8 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 106 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp25_;
-#line 928 "VideoMetadata.c"
+ return _tmp24_;
+#line 1009 "VideoMetadata.c"
}
#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = ret;
@@ -933,18 +1014,20 @@ gboolean quick_time_metadata_loader_is_supported (QuickTimeMetadataLoader* self)
_quick_time_atom_unref0 (test);
#line 111 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 936 "VideoMetadata.c"
+#line 1017 "VideoMetadata.c"
}
-static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self) {
+static gulong
+quick_time_metadata_loader_get_creation_date_time_for_quicktime (QuickTimeMetadataLoader* self)
+{
gulong result = 0UL;
QuickTimeAtom* test = NULL;
GFile* _tmp0_;
QuickTimeAtom* _tmp1_;
time_t timestamp = 0;
- time_t _tmp37_;
- time_t _tmp39_;
+ time_t _tmp33_;
+ time_t _tmp35_;
GError * _inner_error_ = NULL;
#line 114 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_METADATA_LOADER (self), 0UL);
@@ -956,7 +1039,7 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
test = _tmp1_;
#line 116 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
timestamp = (time_t) 0;
-#line 959 "VideoMetadata.c"
+#line 1042 "VideoMetadata.c"
{
QuickTimeAtom* _tmp2_;
gboolean done = FALSE;
@@ -966,30 +1049,29 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
quick_time_atom_open_file (_tmp2_, &_inner_error_);
#line 119 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 969 "VideoMetadata.c"
+#line 1052 "VideoMetadata.c"
goto __catch588_g_error;
}
#line 120 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
done = FALSE;
#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 976 "VideoMetadata.c"
+#line 1059 "VideoMetadata.c"
gboolean _tmp3_;
QuickTimeAtom* _tmp4_;
QuickTimeAtom* _tmp5_;
- gboolean _tmp6_;
- QuickTimeAtom* _tmp7_;
+ QuickTimeAtom* _tmp6_;
+ gchar* _tmp7_;
gchar* _tmp8_;
- gchar* _tmp9_;
- gboolean _tmp10_;
- QuickTimeAtom* _tmp29_;
+ gboolean _tmp9_;
+ QuickTimeAtom* _tmp25_;
#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp3_ = done;
#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!(!_tmp3_)) {
#line 121 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 992 "VideoMetadata.c"
+#line 1074 "VideoMetadata.c"
}
#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp4_ = test;
@@ -997,173 +1079,162 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
quick_time_atom_read_atom (_tmp4_, &_inner_error_);
#line 123 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1000 "VideoMetadata.c"
+#line 1082 "VideoMetadata.c"
goto __catch588_g_error;
}
#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp5_ = test;
#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = quick_time_atom_is_last_atom (_tmp5_);
-#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp6_) {
+ if (quick_time_atom_is_last_atom (_tmp5_)) {
#line 124 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 1011 "VideoMetadata.c"
+#line 1091 "VideoMetadata.c"
}
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = test;
+ _tmp6_ = test;
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = quick_time_atom_get_current_atom_name (_tmp7_);
+ _tmp7_ = quick_time_atom_get_current_atom_name (_tmp6_);
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = g_strcmp0 ("moov", _tmp9_) == 0;
+ _tmp9_ = g_strcmp0 ("moov", _tmp8_) == 0;
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp8_);
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp10_) {
-#line 1025 "VideoMetadata.c"
+ if (_tmp9_) {
+#line 1105 "VideoMetadata.c"
QuickTimeAtom* child = NULL;
+ QuickTimeAtom* _tmp10_;
QuickTimeAtom* _tmp11_;
- QuickTimeAtom* _tmp12_;
#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = test;
+ _tmp10_ = test;
#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = quick_time_atom_get_first_child_atom (_tmp11_);
+ _tmp11_ = quick_time_atom_get_first_child_atom (_tmp10_);
#line 126 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- child = _tmp12_;
+ child = _tmp11_;
#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 1037 "VideoMetadata.c"
- gboolean _tmp13_;
- QuickTimeAtom* _tmp14_;
- gboolean _tmp15_ = FALSE;
- QuickTimeAtom* _tmp16_;
- gboolean _tmp17_;
- QuickTimeAtom* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- gboolean _tmp23_;
- QuickTimeAtom* _tmp28_;
+#line 1117 "VideoMetadata.c"
+ gboolean _tmp12_;
+ QuickTimeAtom* _tmp13_;
+ gboolean _tmp14_ = FALSE;
+ QuickTimeAtom* _tmp15_;
+ QuickTimeAtom* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ gboolean _tmp20_;
+ QuickTimeAtom* _tmp24_;
#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = done;
+ _tmp12_ = done;
#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(!_tmp13_)) {
+ if (!(!_tmp12_)) {
#line 127 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 1054 "VideoMetadata.c"
+#line 1133 "VideoMetadata.c"
}
#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = child;
+ _tmp13_ = child;
#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_atom (_tmp14_, &_inner_error_);
+ quick_time_atom_read_atom (_tmp13_, &_inner_error_);
#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 129 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (child);
-#line 1064 "VideoMetadata.c"
+#line 1143 "VideoMetadata.c"
goto __catch588_g_error;
}
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = child;
+ _tmp15_ = child;
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = quick_time_atom_is_last_atom (_tmp16_);
+ if (quick_time_atom_is_last_atom (_tmp15_)) {
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp17_) {
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = TRUE;
-#line 1075 "VideoMetadata.c"
+ _tmp14_ = TRUE;
+#line 1152 "VideoMetadata.c"
} else {
- QuickTimeAtom* _tmp18_;
- guint64 _tmp19_;
-#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = child;
+ QuickTimeAtom* _tmp16_;
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = quick_time_atom_section_size_remaining (_tmp18_);
+ _tmp16_ = child;
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = ((guint64) 0) == _tmp19_;
-#line 1085 "VideoMetadata.c"
+ _tmp14_ = ((guint64) 0) == quick_time_atom_section_size_remaining (_tmp16_);
+#line 1159 "VideoMetadata.c"
}
#line 130 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp15_) {
+ if (_tmp14_) {
#line 131 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
done = TRUE;
#line 132 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 1093 "VideoMetadata.c"
+#line 1167 "VideoMetadata.c"
}
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = child;
+ _tmp17_ = child;
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = quick_time_atom_get_current_atom_name (_tmp20_);
+ _tmp18_ = quick_time_atom_get_current_atom_name (_tmp17_);
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = _tmp21_;
+ _tmp19_ = _tmp18_;
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = g_strcmp0 ("mvhd", _tmp22_) == 0;
+ _tmp20_ = g_strcmp0 ("mvhd", _tmp19_) == 0;
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp22_);
+ _g_free0 (_tmp19_);
#line 135 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp23_) {
-#line 1107 "VideoMetadata.c"
- QuickTimeAtom* _tmp24_;
- guint32 _tmp25_ = 0U;
- QuickTimeAtom* _tmp26_;
- guint32 _tmp27_;
+ if (_tmp20_) {
+#line 1181 "VideoMetadata.c"
+ QuickTimeAtom* _tmp21_;
+ guint32 _tmp22_ = 0U;
+ QuickTimeAtom* _tmp23_;
#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = child;
+ _tmp21_ = child;
#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_read_uint32 (_tmp24_, &_inner_error_);
+ quick_time_atom_read_uint32 (_tmp21_, &_inner_error_);
#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 137 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (child);
-#line 1120 "VideoMetadata.c"
+#line 1193 "VideoMetadata.c"
goto __catch588_g_error;
}
#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = child;
+ _tmp23_ = child;
#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = quick_time_atom_read_uint32 (_tmp26_, &_inner_error_);
-#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = _tmp27_;
+ _tmp22_ = quick_time_atom_read_uint32 (_tmp23_, &_inner_error_);
#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (child);
-#line 1133 "VideoMetadata.c"
+#line 1204 "VideoMetadata.c"
goto __catch588_g_error;
}
#line 139 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = _tmp25_ - QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
+ timestamp = _tmp22_ - QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
#line 140 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
done = TRUE;
#line 141 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 1142 "VideoMetadata.c"
+#line 1213 "VideoMetadata.c"
}
#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = child;
+ _tmp24_ = child;
#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_next_atom (_tmp28_, &_inner_error_);
+ quick_time_atom_next_atom (_tmp24_, &_inner_error_);
#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (child);
-#line 1152 "VideoMetadata.c"
+#line 1223 "VideoMetadata.c"
goto __catch588_g_error;
}
}
#line 125 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (child);
-#line 1158 "VideoMetadata.c"
+#line 1229 "VideoMetadata.c"
}
#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = test;
+ _tmp25_ = test;
#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_next_atom (_tmp29_, &_inner_error_);
+ quick_time_atom_next_atom (_tmp25_, &_inner_error_);
#line 146 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1166 "VideoMetadata.c"
+#line 1237 "VideoMetadata.c"
goto __catch588_g_error;
}
}
@@ -1172,27 +1243,27 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
__catch588_g_error:
{
GError* e = NULL;
- GError* _tmp30_;
- const gchar* _tmp31_;
+ GError* _tmp26_;
+ const gchar* _tmp27_;
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = e;
+ _tmp26_ = e;
#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = _tmp30_->message;
+ _tmp27_ = _tmp26_->message;
#line 149 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:149: Error while testing for QuickTime file: %s", _tmp31_);
+ g_debug ("VideoMetadata.vala:149: Error while testing for QuickTime file: %s", _tmp27_);
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 1189 "VideoMetadata.c"
+#line 1260 "VideoMetadata.c"
}
__finally588:
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1194 "VideoMetadata.c"
- gulong _tmp32_ = 0UL;
+#line 1265 "VideoMetadata.c"
+ gulong _tmp28_ = 0UL;
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (test);
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1200,18 +1271,18 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 118 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp32_;
-#line 1204 "VideoMetadata.c"
+ return _tmp28_;
+#line 1275 "VideoMetadata.c"
}
{
- QuickTimeAtom* _tmp33_;
+ QuickTimeAtom* _tmp29_;
#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp33_ = test;
+ _tmp29_ = test;
#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_close_file (_tmp33_, &_inner_error_);
+ quick_time_atom_close_file (_tmp29_, &_inner_error_);
#line 153 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1214 "VideoMetadata.c"
+#line 1285 "VideoMetadata.c"
goto __catch589_g_error;
}
}
@@ -1219,27 +1290,27 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
__catch589_g_error:
{
GError* e = NULL;
- GError* _tmp34_;
- const gchar* _tmp35_;
+ GError* _tmp30_;
+ const gchar* _tmp31_;
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp34_ = e;
+ _tmp30_ = e;
#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp35_ = _tmp34_->message;
+ _tmp31_ = _tmp30_->message;
#line 155 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:155: Error while closing Quicktime file: %s", _tmp35_);
+ g_debug ("VideoMetadata.vala:155: Error while closing Quicktime file: %s", _tmp31_);
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 1236 "VideoMetadata.c"
+#line 1307 "VideoMetadata.c"
}
__finally589:
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1241 "VideoMetadata.c"
- gulong _tmp36_ = 0UL;
+#line 1312 "VideoMetadata.c"
+ gulong _tmp32_ = 0UL;
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (test);
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1247,131 +1318,156 @@ static gulong quick_time_metadata_loader_get_creation_date_time_for_quicktime (Q
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 152 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp36_;
-#line 1251 "VideoMetadata.c"
+ return _tmp32_;
+#line 1322 "VideoMetadata.c"
}
#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp37_ = timestamp;
+ _tmp33_ = timestamp;
#line 166 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp37_ < ((time_t) 0)) {
-#line 1257 "VideoMetadata.c"
- time_t _tmp38_;
+ if (_tmp33_ < ((time_t) 0)) {
+#line 1328 "VideoMetadata.c"
+ time_t _tmp34_;
#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp38_ = timestamp;
+ _tmp34_ = timestamp;
#line 167 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = _tmp38_ + QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
-#line 1263 "VideoMetadata.c"
+ timestamp = _tmp34_ + QUICK_TIME_METADATA_LOADER_QUICKTIME_EPOCH_ADJUSTMENT;
+#line 1334 "VideoMetadata.c"
}
#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp39_ = timestamp;
+ _tmp35_ = timestamp;
#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = (gulong) _tmp39_;
+ result = (gulong) _tmp35_;
#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (test);
#line 169 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 1273 "VideoMetadata.c"
+#line 1344 "VideoMetadata.c"
}
-static void value_quick_time_metadata_loader_init (GValue* value) {
+static void
+value_quick_time_metadata_loader_init (GValue* value)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1280 "VideoMetadata.c"
+#line 1353 "VideoMetadata.c"
}
-static void value_quick_time_metadata_loader_free_value (GValue* value) {
+static void
+value_quick_time_metadata_loader_free_value (GValue* value)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (value->data[0].v_pointer) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_metadata_loader_unref (value->data[0].v_pointer);
-#line 1289 "VideoMetadata.c"
+#line 1364 "VideoMetadata.c"
}
}
-static void value_quick_time_metadata_loader_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_quick_time_metadata_loader_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = quick_time_metadata_loader_ref (src_value->data[0].v_pointer);
-#line 1299 "VideoMetadata.c"
+#line 1377 "VideoMetadata.c"
} else {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1303 "VideoMetadata.c"
+#line 1381 "VideoMetadata.c"
}
}
-static gpointer value_quick_time_metadata_loader_peek_pointer (const GValue* value) {
+static gpointer
+value_quick_time_metadata_loader_peek_pointer (const GValue* value)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 1311 "VideoMetadata.c"
+#line 1391 "VideoMetadata.c"
}
-static gchar* value_quick_time_metadata_loader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_quick_time_metadata_loader_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 1318 "VideoMetadata.c"
+#line 1403 "VideoMetadata.c"
QuickTimeMetadataLoader * object;
object = collect_values[0].v_pointer;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1325 "VideoMetadata.c"
+#line 1410 "VideoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1329 "VideoMetadata.c"
+#line 1414 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = quick_time_metadata_loader_ref (object);
-#line 1333 "VideoMetadata.c"
+#line 1418 "VideoMetadata.c"
} else {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1337 "VideoMetadata.c"
+#line 1422 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 1341 "VideoMetadata.c"
+#line 1426 "VideoMetadata.c"
}
-static gchar* value_quick_time_metadata_loader_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_quick_time_metadata_loader_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
QuickTimeMetadataLoader ** object_p;
object_p = collect_values[0].v_pointer;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!object_p) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1352 "VideoMetadata.c"
+#line 1442 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = NULL;
-#line 1358 "VideoMetadata.c"
+#line 1448 "VideoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 1362 "VideoMetadata.c"
+#line 1452 "VideoMetadata.c"
} else {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = quick_time_metadata_loader_ref (value->data[0].v_pointer);
-#line 1366 "VideoMetadata.c"
+#line 1456 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 1370 "VideoMetadata.c"
+#line 1460 "VideoMetadata.c"
}
-GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_quick_time_metadata_loader (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecQuickTimeMetadataLoader* spec;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_METADATA_LOADER), NULL);
@@ -1381,20 +1477,25 @@ GParamSpec* param_spec_quick_time_metadata_loader (const gchar* name, const gcha
G_PARAM_SPEC (spec)->value_type = object_type;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 1384 "VideoMetadata.c"
+#line 1480 "VideoMetadata.c"
}
-gpointer value_get_quick_time_metadata_loader (const GValue* value) {
+gpointer
+value_get_quick_time_metadata_loader (const GValue* value)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER), NULL);
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 1393 "VideoMetadata.c"
+#line 1491 "VideoMetadata.c"
}
-void value_set_quick_time_metadata_loader (GValue* value, gpointer v_object) {
+void
+value_set_quick_time_metadata_loader (GValue* value,
+ gpointer v_object)
+{
QuickTimeMetadataLoader * old;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER));
@@ -1410,22 +1511,25 @@ void value_set_quick_time_metadata_loader (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_metadata_loader_ref (value->data[0].v_pointer);
-#line 1413 "VideoMetadata.c"
+#line 1514 "VideoMetadata.c"
} else {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1417 "VideoMetadata.c"
+#line 1518 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_metadata_loader_unref (old);
-#line 1423 "VideoMetadata.c"
+#line 1524 "VideoMetadata.c"
}
}
-void value_take_quick_time_metadata_loader (GValue* value, gpointer v_object) {
+void
+value_take_quick_time_metadata_loader (GValue* value,
+ gpointer v_object)
+{
QuickTimeMetadataLoader * old;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_METADATA_LOADER));
@@ -1439,44 +1543,50 @@ void value_take_quick_time_metadata_loader (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 1442 "VideoMetadata.c"
+#line 1546 "VideoMetadata.c"
} else {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 1446 "VideoMetadata.c"
+#line 1550 "VideoMetadata.c"
}
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_metadata_loader_unref (old);
-#line 1452 "VideoMetadata.c"
+#line 1556 "VideoMetadata.c"
}
}
-static void quick_time_metadata_loader_class_init (QuickTimeMetadataLoaderClass * klass) {
+static void
+quick_time_metadata_loader_class_init (QuickTimeMetadataLoaderClass * klass)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_metadata_loader_parent_class = g_type_class_peek_parent (klass);
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
((QuickTimeMetadataLoaderClass *) klass)->finalize = quick_time_metadata_loader_finalize;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_class_add_private (klass, sizeof (QuickTimeMetadataLoaderPrivate));
-#line 1464 "VideoMetadata.c"
+#line 1570 "VideoMetadata.c"
}
-static void quick_time_metadata_loader_instance_init (QuickTimeMetadataLoader * self) {
+static void
+quick_time_metadata_loader_instance_init (QuickTimeMetadataLoader * self)
+{
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv = QUICK_TIME_METADATA_LOADER_GET_PRIVATE (self);
#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->file = NULL;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->ref_count = 1;
-#line 1475 "VideoMetadata.c"
+#line 1583 "VideoMetadata.c"
}
-static void quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj) {
+static void
+quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj)
+{
QuickTimeMetadataLoader * self;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_METADATA_LOADER, QuickTimeMetadataLoader);
@@ -1484,11 +1594,13 @@ static void quick_time_metadata_loader_finalize (QuickTimeMetadataLoader * obj)
g_signal_handlers_destroy (self);
#line 59 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
-#line 1487 "VideoMetadata.c"
+#line 1597 "VideoMetadata.c"
}
-GType quick_time_metadata_loader_get_type (void) {
+GType
+quick_time_metadata_loader_get_type (void)
+{
static volatile gsize quick_time_metadata_loader_type_id__volatile = 0;
if (g_once_init_enter (&quick_time_metadata_loader_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_quick_time_metadata_loader_init, value_quick_time_metadata_loader_free_value, value_quick_time_metadata_loader_copy_value, value_quick_time_metadata_loader_peek_pointer, "p", value_quick_time_metadata_loader_collect_value, "p", value_quick_time_metadata_loader_lcopy_value };
@@ -1502,18 +1614,22 @@ GType quick_time_metadata_loader_get_type (void) {
}
-gpointer quick_time_metadata_loader_ref (gpointer instance) {
+gpointer
+quick_time_metadata_loader_ref (gpointer instance)
+{
QuickTimeMetadataLoader * self;
self = instance;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return instance;
-#line 1512 "VideoMetadata.c"
+#line 1626 "VideoMetadata.c"
}
-void quick_time_metadata_loader_unref (gpointer instance) {
+void
+quick_time_metadata_loader_unref (gpointer instance)
+{
QuickTimeMetadataLoader * self;
self = instance;
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1522,53 +1638,59 @@ void quick_time_metadata_loader_unref (gpointer instance) {
QUICK_TIME_METADATA_LOADER_GET_CLASS (self)->finalize (self);
#line 53 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1525 "VideoMetadata.c"
+#line 1641 "VideoMetadata.c"
}
}
-QuickTimeAtom* quick_time_atom_construct (GType object_type, GFile* file) {
+QuickTimeAtom*
+quick_time_atom_construct (GType object_type,
+ GFile* file)
+{
QuickTimeAtom* self = NULL;
GFile* _tmp0_;
- GFile* _tmp1_;
#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (QuickTimeAtom*) g_type_create_instance (object_type);
#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = file;
-#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (file);
#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
#line 182 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp1_;
+ self->priv->file = _tmp0_;
#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 1548 "VideoMetadata.c"
+#line 1664 "VideoMetadata.c"
}
-QuickTimeAtom* quick_time_atom_new (GFile* file) {
+QuickTimeAtom*
+quick_time_atom_new (GFile* file)
+{
#line 181 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return quick_time_atom_construct (TYPE_QUICK_TIME_ATOM, file);
-#line 1555 "VideoMetadata.c"
+#line 1673 "VideoMetadata.c"
}
-static gpointer _quick_time_atom_ref0 (gpointer self) {
+static gpointer
+_quick_time_atom_ref0 (gpointer self)
+{
#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self ? quick_time_atom_ref (self) : NULL;
-#line 1562 "VideoMetadata.c"
+#line 1682 "VideoMetadata.c"
}
-static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_type, GDataInputStream* input, QuickTimeAtom* parent) {
+static QuickTimeAtom*
+quick_time_atom_construct_with_input_stream (GType object_type,
+ GDataInputStream* input,
+ QuickTimeAtom* parent)
+{
QuickTimeAtom* self = NULL;
GDataInputStream* _tmp0_;
- GDataInputStream* _tmp1_;
- QuickTimeAtom* _tmp2_;
- QuickTimeAtom* _tmp3_;
+ QuickTimeAtom* _tmp1_;
#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL);
#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1576,35 +1698,37 @@ static QuickTimeAtom* quick_time_atom_construct_with_input_stream (GType object_
#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (QuickTimeAtom*) g_type_create_instance (object_type);
#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = input;
-#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (input);
#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->input);
#line 186 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = _tmp1_;
-#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = parent;
+ self->priv->input = _tmp0_;
#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = _quick_time_atom_ref0 (_tmp2_);
+ _tmp1_ = _quick_time_atom_ref0 (parent);
#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (self->priv->parent);
#line 187 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = _tmp3_;
+ self->priv->parent = _tmp1_;
#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 1596 "VideoMetadata.c"
+#line 1714 "VideoMetadata.c"
}
-static QuickTimeAtom* quick_time_atom_new_with_input_stream (GDataInputStream* input, QuickTimeAtom* parent) {
+static QuickTimeAtom*
+quick_time_atom_new_with_input_stream (GDataInputStream* input,
+ QuickTimeAtom* parent)
+{
#line 185 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return quick_time_atom_construct_with_input_stream (TYPE_QUICK_TIME_ATOM, input, parent);
-#line 1603 "VideoMetadata.c"
+#line 1724 "VideoMetadata.c"
}
-void quick_time_atom_open_file (QuickTimeAtom* self, GError** error) {
+void
+quick_time_atom_open_file (QuickTimeAtom* self,
+ GError** error)
+{
GFileInputStream* _tmp0_ = NULL;
GFile* _tmp1_;
GFileInputStream* _tmp2_;
@@ -1622,7 +1746,7 @@ void quick_time_atom_open_file (QuickTimeAtom* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 191 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1625 "VideoMetadata.c"
+#line 1749 "VideoMetadata.c"
}
#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->file;
@@ -1636,7 +1760,7 @@ void quick_time_atom_open_file (QuickTimeAtom* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1639 "VideoMetadata.c"
+#line 1763 "VideoMetadata.c"
}
#line 192 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream));
@@ -1660,11 +1784,14 @@ void quick_time_atom_open_file (QuickTimeAtom* self, GError** error) {
self->priv->section_name = _tmp5_;
#line 190 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (_tmp0_);
-#line 1663 "VideoMetadata.c"
+#line 1787 "VideoMetadata.c"
}
-void quick_time_atom_close_file (QuickTimeAtom* self, GError** error) {
+void
+quick_time_atom_close_file (QuickTimeAtom* self,
+ GError** error)
+{
GDataInputStream* _tmp0_;
GError * _inner_error_ = NULL;
#line 199 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1673,7 +1800,7 @@ void quick_time_atom_close_file (QuickTimeAtom* self, GError** error) {
_tmp0_ = self->priv->input;
#line 200 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (NULL != _tmp0_) {
-#line 1676 "VideoMetadata.c"
+#line 1803 "VideoMetadata.c"
GDataInputStream* _tmp1_;
#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
@@ -1685,48 +1812,47 @@ void quick_time_atom_close_file (QuickTimeAtom* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 201 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1688 "VideoMetadata.c"
+#line 1815 "VideoMetadata.c"
}
#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->input);
#line 202 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->input = NULL;
-#line 1694 "VideoMetadata.c"
+#line 1821 "VideoMetadata.c"
}
}
-static void quick_time_atom_advance_section_offset (QuickTimeAtom* self, guint64 amount) {
+static void
+quick_time_atom_advance_section_offset (QuickTimeAtom* self,
+ guint64 amount)
+{
guint64 _tmp0_;
- guint64 _tmp1_;
- QuickTimeAtom* _tmp2_;
+ QuickTimeAtom* _tmp1_;
#line 206 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_QUICK_TIME_ATOM (self));
#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp0_ = self->priv->section_offset;
#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = amount;
-#line 207 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = _tmp0_ + _tmp1_;
+ self->priv->section_offset = _tmp0_ + amount;
#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->parent;
+ _tmp1_ = self->priv->parent;
#line 208 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp2_) {
-#line 1715 "VideoMetadata.c"
- QuickTimeAtom* _tmp3_;
- guint64 _tmp4_;
-#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = self->priv->parent;
+ if (NULL != _tmp1_) {
+#line 1842 "VideoMetadata.c"
+ QuickTimeAtom* _tmp2_;
#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = amount;
+ _tmp2_ = self->priv->parent;
#line 209 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_advance_section_offset (_tmp3_, _tmp4_);
-#line 1724 "VideoMetadata.c"
+ quick_time_atom_advance_section_offset (_tmp2_, amount);
+#line 1848 "VideoMetadata.c"
}
}
-QuickTimeAtom* quick_time_atom_get_first_child_atom (QuickTimeAtom* self) {
+QuickTimeAtom*
+quick_time_atom_get_first_child_atom (QuickTimeAtom* self)
+{
QuickTimeAtom* result = NULL;
GDataInputStream* _tmp0_;
QuickTimeAtom* _tmp1_;
@@ -1740,15 +1866,17 @@ QuickTimeAtom* quick_time_atom_get_first_child_atom (QuickTimeAtom* self) {
result = _tmp1_;
#line 219 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 1743 "VideoMetadata.c"
+#line 1869 "VideoMetadata.c"
}
-guchar quick_time_atom_read_byte (QuickTimeAtom* self, GError** error) {
+guchar
+quick_time_atom_read_byte (QuickTimeAtom* self,
+ GError** error)
+{
guchar result = '\0';
guint8 _tmp0_ = 0U;
GDataInputStream* _tmp1_;
- guint8 _tmp2_;
GError * _inner_error_ = NULL;
#line 222 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), '\0');
@@ -1757,32 +1885,32 @@ guchar quick_time_atom_read_byte (QuickTimeAtom* self, GError** error) {
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
-#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
+ _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1765 "VideoMetadata.c"
- guchar _tmp3_ = '\0';
+#line 1891 "VideoMetadata.c"
+ guchar _tmp2_ = '\0';
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp3_;
-#line 1771 "VideoMetadata.c"
+ return _tmp2_;
+#line 1897 "VideoMetadata.c"
}
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (guchar) _tmp0_;
#line 224 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 1777 "VideoMetadata.c"
+#line 1903 "VideoMetadata.c"
}
-guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self, GError** error) {
+guint32
+quick_time_atom_read_uint32 (QuickTimeAtom* self,
+ GError** error)
+{
guint32 result = 0U;
guint32 _tmp0_ = 0U;
GDataInputStream* _tmp1_;
- guint32 _tmp2_;
GError * _inner_error_ = NULL;
#line 227 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0U);
@@ -1791,32 +1919,32 @@ guint32 quick_time_atom_read_uint32 (QuickTimeAtom* self, GError** error) {
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_data_input_stream_read_uint32 (_tmp1_, NULL, &_inner_error_);
-#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
+ _tmp0_ = g_data_input_stream_read_uint32 (_tmp1_, NULL, &_inner_error_);
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1799 "VideoMetadata.c"
- guint32 _tmp3_ = 0U;
+#line 1925 "VideoMetadata.c"
+ guint32 _tmp2_ = 0U;
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp3_;
-#line 1805 "VideoMetadata.c"
+ return _tmp2_;
+#line 1931 "VideoMetadata.c"
}
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = _tmp0_;
#line 229 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 1811 "VideoMetadata.c"
+#line 1937 "VideoMetadata.c"
}
-guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self, GError** error) {
+guint64
+quick_time_atom_read_uint64 (QuickTimeAtom* self,
+ GError** error)
+{
guint64 result = 0ULL;
guint64 _tmp0_ = 0ULL;
GDataInputStream* _tmp1_;
- guint64 _tmp2_;
GError * _inner_error_ = NULL;
#line 232 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_QUICK_TIME_ATOM (self), 0ULL);
@@ -1825,94 +1953,86 @@ guint64 quick_time_atom_read_uint64 (QuickTimeAtom* self, GError** error) {
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_data_input_stream_read_uint64 (_tmp1_, NULL, &_inner_error_);
-#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
+ _tmp0_ = g_data_input_stream_read_uint64 (_tmp1_, NULL, &_inner_error_);
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 1833 "VideoMetadata.c"
- guint64 _tmp3_ = 0ULL;
+#line 1959 "VideoMetadata.c"
+ guint64 _tmp2_ = 0ULL;
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp3_;
-#line 1839 "VideoMetadata.c"
+ return _tmp2_;
+#line 1965 "VideoMetadata.c"
}
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = _tmp0_;
#line 234 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 1845 "VideoMetadata.c"
+#line 1971 "VideoMetadata.c"
}
-static gchar string_get (const gchar* self, glong index) {
+static gchar
+string_get (const gchar* self,
+ glong index)
+{
gchar result = '\0';
- glong _tmp0_;
- gchar _tmp1_;
-#line 1110 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar _tmp0_;
+#line 1124 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = index;
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = ((gchar*) self)[_tmp0_];
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp1_;
-#line 1111 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = ((gchar*) self)[index];
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp0_;
+#line 1125 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 1863 "VideoMetadata.c"
+#line 1989 "VideoMetadata.c"
}
-void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
+void
+quick_time_atom_read_atom (QuickTimeAtom* self,
+ GError** error)
+{
guint32 _tmp0_ = 0U;
- guint32 _tmp1_;
GString* sb = NULL;
- GString* _tmp2_;
- guchar _tmp3_ = '\0';
- guchar _tmp4_;
+ GString* _tmp1_;
+ guchar _tmp2_ = '\0';
+ GString* _tmp3_;
+ guchar _tmp4_ = '\0';
GString* _tmp5_;
guchar _tmp6_ = '\0';
- guchar _tmp7_;
- GString* _tmp8_;
- guchar _tmp9_ = '\0';
- guchar _tmp10_;
- GString* _tmp11_;
- guchar _tmp12_ = '\0';
- guchar _tmp13_;
- GString* _tmp14_;
- GString* _tmp15_;
- const gchar* _tmp16_;
- gchar* _tmp17_;
- const gchar* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- guint64 _tmp41_;
+ GString* _tmp7_;
+ guchar _tmp8_ = '\0';
+ GString* _tmp9_;
+ GString* _tmp10_;
+ const gchar* _tmp11_;
+ gchar* _tmp12_;
+ const gchar* _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ guint64 _tmp34_;
GError * _inner_error_ = NULL;
#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_QUICK_TIME_ATOM (self));
#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = quick_time_atom_read_uint32 (self, &_inner_error_);
-#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp1_;
+ _tmp0_ = quick_time_atom_read_uint32 (self, &_inner_error_);
#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1904 "VideoMetadata.c"
+#line 2026 "VideoMetadata.c"
}
#line 239 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_size = (guint64) _tmp0_;
#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_string_new ("");
+ _tmp1_ = g_string_new ("");
#line 242 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp2_;
+ sb = _tmp1_;
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = _tmp4_;
+ _tmp2_ = quick_time_atom_read_byte (self, &_inner_error_);
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1921,16 +2041,14 @@ void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
_g_string_free0 (sb);
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1924 "VideoMetadata.c"
+#line 2044 "VideoMetadata.c"
}
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = sb;
+ _tmp3_ = sb;
#line 243 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp5_, (gchar) _tmp3_);
-#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = quick_time_atom_read_byte (self, &_inner_error_);
+ g_string_append_c (_tmp3_, (gchar) _tmp2_);
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = _tmp7_;
+ _tmp4_ = quick_time_atom_read_byte (self, &_inner_error_);
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1939,16 +2057,14 @@ void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
_g_string_free0 (sb);
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1942 "VideoMetadata.c"
+#line 2060 "VideoMetadata.c"
}
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = sb;
+ _tmp5_ = sb;
#line 244 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp8_, (gchar) _tmp6_);
-#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = quick_time_atom_read_byte (self, &_inner_error_);
+ g_string_append_c (_tmp5_, (gchar) _tmp4_);
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp10_;
+ _tmp6_ = quick_time_atom_read_byte (self, &_inner_error_);
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1957,16 +2073,14 @@ void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
_g_string_free0 (sb);
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1960 "VideoMetadata.c"
+#line 2076 "VideoMetadata.c"
}
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = sb;
+ _tmp7_ = sb;
#line 245 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp11_, (gchar) _tmp9_);
+ g_string_append_c (_tmp7_, (gchar) _tmp6_);
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = quick_time_atom_read_byte (self, &_inner_error_);
-#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = _tmp13_;
+ _tmp8_ = quick_time_atom_read_byte (self, &_inner_error_);
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -1975,156 +2089,147 @@ void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
_g_string_free0 (sb);
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 1978 "VideoMetadata.c"
+#line 2092 "VideoMetadata.c"
}
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = sb;
+ _tmp9_ = sb;
#line 246 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp14_, (gchar) _tmp12_);
+ g_string_append_c (_tmp9_, (gchar) _tmp8_);
#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = sb;
+ _tmp10_ = sb;
#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = _tmp15_->str;
+ _tmp11_ = _tmp10_->str;
#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = g_strdup (_tmp16_);
+ _tmp12_ = g_strdup (_tmp11_);
#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->section_name);
#line 247 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp17_;
+ self->priv->section_name = _tmp12_;
#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = self->priv->section_name;
+ _tmp13_ = self->priv->section_name;
#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = strlen (_tmp18_);
+ _tmp14_ = strlen (_tmp13_);
#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _tmp19_;
+ _tmp15_ = _tmp14_;
#line 250 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp20_ != 4) {
-#line 2002 "VideoMetadata.c"
- GFile* _tmp21_;
- gchar* _tmp22_;
- gchar* _tmp23_;
- GError* _tmp24_;
- GError* _tmp25_;
+ if (_tmp15_ != 4) {
+#line 2116 "VideoMetadata.c"
+ GFile* _tmp16_;
+ gchar* _tmp17_;
+ gchar* _tmp18_;
+ GError* _tmp19_;
+ GError* _tmp20_;
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = self->priv->file;
+ _tmp16_ = self->priv->file;
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = g_file_get_path (_tmp21_);
+ _tmp17_ = g_file_get_path (_tmp16_);
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = _tmp22_;
+ _tmp18_ = _tmp17_;
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "QuickTime atom name length is invalid for %s", _tmp23_);
+ _tmp19_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "QuickTime atom name length is invalid for %s", _tmp18_);
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = _tmp24_;
+ _tmp20_ = _tmp19_;
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp23_);
+ _g_free0 (_tmp18_);
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp25_;
+ _inner_error_ = _tmp20_;
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 251 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 2028 "VideoMetadata.c"
+#line 2142 "VideoMetadata.c"
}
{
gint i = 0;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
i = 0;
-#line 2034 "VideoMetadata.c"
+#line 2148 "VideoMetadata.c"
{
- gboolean _tmp26_ = FALSE;
+ gboolean _tmp21_ = FALSE;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = TRUE;
+ _tmp21_ = TRUE;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 2041 "VideoMetadata.c"
+#line 2155 "VideoMetadata.c"
+ gint _tmp23_;
+ const gchar* _tmp24_;
+ gint _tmp25_;
+ gint _tmp26_;
+ const gchar* _tmp27_;
gint _tmp28_;
- const gchar* _tmp29_;
- gint _tmp30_;
- gint _tmp31_;
- const gchar* _tmp32_;
- gint _tmp33_;
- gchar _tmp34_;
- gboolean _tmp35_;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp26_) {
-#line 2052 "VideoMetadata.c"
- gint _tmp27_;
+ if (!_tmp21_) {
+#line 2164 "VideoMetadata.c"
+ gint _tmp22_;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = i;
+ _tmp22_ = i;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = _tmp27_ + 1;
-#line 2058 "VideoMetadata.c"
+ i = _tmp22_ + 1;
+#line 2170 "VideoMetadata.c"
}
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = FALSE;
+ _tmp21_ = FALSE;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = i;
+ _tmp23_ = i;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = self->priv->section_name;
+ _tmp24_ = self->priv->section_name;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = strlen (_tmp29_);
+ _tmp25_ = strlen (_tmp24_);
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = _tmp30_;
+ _tmp26_ = _tmp25_;
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp28_ < _tmp31_)) {
+ if (!(_tmp23_ < _tmp26_)) {
#line 254 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 2074 "VideoMetadata.c"
+#line 2186 "VideoMetadata.c"
}
#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp32_ = self->priv->section_name;
-#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp33_ = i;
+ _tmp27_ = self->priv->section_name;
#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp34_ = string_get (_tmp32_, (glong) _tmp33_);
-#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp35_ = g_ascii_isprint (_tmp34_);
+ _tmp28_ = i;
#line 255 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp35_) {
-#line 2086 "VideoMetadata.c"
- GFile* _tmp36_;
- gchar* _tmp37_;
- gchar* _tmp38_;
- GError* _tmp39_;
- GError* _tmp40_;
+ if (!g_ascii_isprint (string_get (_tmp27_, (glong) _tmp28_))) {
+#line 2194 "VideoMetadata.c"
+ GFile* _tmp29_;
+ gchar* _tmp30_;
+ gchar* _tmp31_;
+ GError* _tmp32_;
+ GError* _tmp33_;
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp36_ = self->priv->file;
+ _tmp29_ = self->priv->file;
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp37_ = g_file_get_path (_tmp36_);
+ _tmp30_ = g_file_get_path (_tmp29_);
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp38_ = _tmp37_;
+ _tmp31_ = _tmp30_;
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp39_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Bad QuickTime atom in file %s", _tmp38_);
+ _tmp32_ = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, "Bad QuickTime atom in file %s", _tmp31_);
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp40_ = _tmp39_;
+ _tmp33_ = _tmp32_;
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp38_);
+ _g_free0 (_tmp31_);
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _inner_error_ = _tmp40_;
+ _inner_error_ = _tmp33_;
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 256 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 2112 "VideoMetadata.c"
+#line 2220 "VideoMetadata.c"
}
}
}
}
#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp41_ = self->priv->section_size;
+ _tmp34_ = self->priv->section_size;
#line 260 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (((guint64) 1) == _tmp41_) {
-#line 2121 "VideoMetadata.c"
- guint64 _tmp42_ = 0ULL;
- guint64 _tmp43_;
-#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp43_ = quick_time_atom_read_uint64 (self, &_inner_error_);
+ if (((guint64) 1) == _tmp34_) {
+#line 2229 "VideoMetadata.c"
+ guint64 _tmp35_ = 0ULL;
#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp42_ = _tmp43_;
+ _tmp35_ = quick_time_atom_read_uint64 (self, &_inner_error_);
#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2133,42 +2238,45 @@ void quick_time_atom_read_atom (QuickTimeAtom* self, GError** error) {
_g_string_free0 (sb);
#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 2136 "VideoMetadata.c"
+#line 2241 "VideoMetadata.c"
}
#line 263 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = _tmp42_;
-#line 2140 "VideoMetadata.c"
+ self->priv->section_size = _tmp35_;
+#line 2245 "VideoMetadata.c"
}
#line 237 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
-#line 2144 "VideoMetadata.c"
+#line 2249 "VideoMetadata.c"
}
-static void quick_time_atom_skip (QuickTimeAtom* self, guint64 skip_amount, GError** error) {
+static void
+quick_time_atom_skip (QuickTimeAtom* self,
+ guint64 skip_amount,
+ GError** error)
+{
GDataInputStream* _tmp0_;
- guint64 _tmp1_;
GError * _inner_error_ = NULL;
#line 267 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_QUICK_TIME_ATOM (self));
#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp0_ = self->priv->input;
#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = skip_amount;
-#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), _tmp1_, &_inner_error_);
+ skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_);
#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 268 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 2166 "VideoMetadata.c"
+#line 2272 "VideoMetadata.c"
}
}
-guint64 quick_time_atom_section_size_remaining (QuickTimeAtom* self) {
+guint64
+quick_time_atom_section_size_remaining (QuickTimeAtom* self)
+{
guint64 result = 0ULL;
guint64 _tmp0_;
guint64 _tmp1_;
@@ -2190,36 +2298,38 @@ guint64 quick_time_atom_section_size_remaining (QuickTimeAtom* self) {
result = _tmp2_ - _tmp3_;
#line 273 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2193 "VideoMetadata.c"
+#line 2301 "VideoMetadata.c"
}
-void quick_time_atom_next_atom (QuickTimeAtom* self, GError** error) {
- guint64 _tmp0_;
+void
+quick_time_atom_next_atom (QuickTimeAtom* self,
+ GError** error)
+{
GError * _inner_error_ = NULL;
#line 276 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_QUICK_TIME_ATOM (self));
#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = quick_time_atom_section_size_remaining (self);
-#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- quick_time_atom_skip (self, _tmp0_, &_inner_error_);
+ quick_time_atom_skip (self, quick_time_atom_section_size_remaining (self), &_inner_error_);
#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 277 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 2212 "VideoMetadata.c"
+#line 2320 "VideoMetadata.c"
}
#line 278 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_size = (guint64) 0;
#line 279 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_offset = (guint64) 0;
-#line 2218 "VideoMetadata.c"
+#line 2326 "VideoMetadata.c"
}
-gchar* quick_time_atom_get_current_atom_name (QuickTimeAtom* self) {
+gchar*
+quick_time_atom_get_current_atom_name (QuickTimeAtom* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
@@ -2233,11 +2343,13 @@ gchar* quick_time_atom_get_current_atom_name (QuickTimeAtom* self) {
result = _tmp1_;
#line 283 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2236 "VideoMetadata.c"
+#line 2346 "VideoMetadata.c"
}
-gboolean quick_time_atom_is_last_atom (QuickTimeAtom* self) {
+gboolean
+quick_time_atom_is_last_atom (QuickTimeAtom* self)
+{
gboolean result = FALSE;
guint64 _tmp0_;
#line 286 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2248,108 +2360,133 @@ gboolean quick_time_atom_is_last_atom (QuickTimeAtom* self) {
result = ((guint64) 0) == _tmp0_;
#line 287 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2251 "VideoMetadata.c"
+#line 2363 "VideoMetadata.c"
}
-static void value_quick_time_atom_init (GValue* value) {
+static void
+value_quick_time_atom_init (GValue* value)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2258 "VideoMetadata.c"
+#line 2372 "VideoMetadata.c"
}
-static void value_quick_time_atom_free_value (GValue* value) {
+static void
+value_quick_time_atom_free_value (GValue* value)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (value->data[0].v_pointer) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_atom_unref (value->data[0].v_pointer);
-#line 2267 "VideoMetadata.c"
+#line 2383 "VideoMetadata.c"
}
}
-static void value_quick_time_atom_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_quick_time_atom_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = quick_time_atom_ref (src_value->data[0].v_pointer);
-#line 2277 "VideoMetadata.c"
+#line 2396 "VideoMetadata.c"
} else {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 2281 "VideoMetadata.c"
+#line 2400 "VideoMetadata.c"
}
}
-static gpointer value_quick_time_atom_peek_pointer (const GValue* value) {
+static gpointer
+value_quick_time_atom_peek_pointer (const GValue* value)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 2289 "VideoMetadata.c"
+#line 2410 "VideoMetadata.c"
}
-static gchar* value_quick_time_atom_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_quick_time_atom_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 2296 "VideoMetadata.c"
+#line 2422 "VideoMetadata.c"
QuickTimeAtom * object;
object = collect_values[0].v_pointer;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2303 "VideoMetadata.c"
+#line 2429 "VideoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 2307 "VideoMetadata.c"
+#line 2433 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = quick_time_atom_ref (object);
-#line 2311 "VideoMetadata.c"
+#line 2437 "VideoMetadata.c"
} else {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2315 "VideoMetadata.c"
+#line 2441 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2319 "VideoMetadata.c"
+#line 2445 "VideoMetadata.c"
}
-static gchar* value_quick_time_atom_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_quick_time_atom_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
QuickTimeAtom ** object_p;
object_p = collect_values[0].v_pointer;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!object_p) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 2330 "VideoMetadata.c"
+#line 2461 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = NULL;
-#line 2336 "VideoMetadata.c"
+#line 2467 "VideoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 2340 "VideoMetadata.c"
+#line 2471 "VideoMetadata.c"
} else {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = quick_time_atom_ref (value->data[0].v_pointer);
-#line 2344 "VideoMetadata.c"
+#line 2475 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2348 "VideoMetadata.c"
+#line 2479 "VideoMetadata.c"
}
-GParamSpec* param_spec_quick_time_atom (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_quick_time_atom (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecQuickTimeAtom* spec;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_QUICK_TIME_ATOM), NULL);
@@ -2359,20 +2496,25 @@ GParamSpec* param_spec_quick_time_atom (const gchar* name, const gchar* nick, co
G_PARAM_SPEC (spec)->value_type = object_type;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 2362 "VideoMetadata.c"
+#line 2499 "VideoMetadata.c"
}
-gpointer value_get_quick_time_atom (const GValue* value) {
+gpointer
+value_get_quick_time_atom (const GValue* value)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM), NULL);
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 2371 "VideoMetadata.c"
+#line 2510 "VideoMetadata.c"
}
-void value_set_quick_time_atom (GValue* value, gpointer v_object) {
+void
+value_set_quick_time_atom (GValue* value,
+ gpointer v_object)
+{
QuickTimeAtom * old;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM));
@@ -2388,22 +2530,25 @@ void value_set_quick_time_atom (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_atom_ref (value->data[0].v_pointer);
-#line 2391 "VideoMetadata.c"
+#line 2533 "VideoMetadata.c"
} else {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2395 "VideoMetadata.c"
+#line 2537 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_atom_unref (old);
-#line 2401 "VideoMetadata.c"
+#line 2543 "VideoMetadata.c"
}
}
-void value_take_quick_time_atom (GValue* value, gpointer v_object) {
+void
+value_take_quick_time_atom (GValue* value,
+ gpointer v_object)
+{
QuickTimeAtom * old;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_QUICK_TIME_ATOM));
@@ -2417,33 +2562,37 @@ void value_take_quick_time_atom (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 2420 "VideoMetadata.c"
+#line 2565 "VideoMetadata.c"
} else {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 2424 "VideoMetadata.c"
+#line 2569 "VideoMetadata.c"
}
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_atom_unref (old);
-#line 2430 "VideoMetadata.c"
+#line 2575 "VideoMetadata.c"
}
}
-static void quick_time_atom_class_init (QuickTimeAtomClass * klass) {
+static void
+quick_time_atom_class_init (QuickTimeAtomClass * klass)
+{
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
quick_time_atom_parent_class = g_type_class_peek_parent (klass);
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
((QuickTimeAtomClass *) klass)->finalize = quick_time_atom_finalize;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_class_add_private (klass, sizeof (QuickTimeAtomPrivate));
-#line 2442 "VideoMetadata.c"
+#line 2589 "VideoMetadata.c"
}
-static void quick_time_atom_instance_init (QuickTimeAtom * self) {
+static void
+quick_time_atom_instance_init (QuickTimeAtom * self)
+{
gchar* _tmp0_;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv = QUICK_TIME_ATOM_GET_PRIVATE (self);
@@ -2463,11 +2612,13 @@ static void quick_time_atom_instance_init (QuickTimeAtom * self) {
self->priv->parent = NULL;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->ref_count = 1;
-#line 2466 "VideoMetadata.c"
+#line 2615 "VideoMetadata.c"
}
-static void quick_time_atom_finalize (QuickTimeAtom * obj) {
+static void
+quick_time_atom_finalize (QuickTimeAtom * obj)
+{
QuickTimeAtom * self;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUICK_TIME_ATOM, QuickTimeAtom);
@@ -2481,11 +2632,13 @@ static void quick_time_atom_finalize (QuickTimeAtom * obj) {
_g_object_unref0 (self->priv->input);
#line 179 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_quick_time_atom_unref0 (self->priv->parent);
-#line 2484 "VideoMetadata.c"
+#line 2635 "VideoMetadata.c"
}
-GType quick_time_atom_get_type (void) {
+GType
+quick_time_atom_get_type (void)
+{
static volatile gsize quick_time_atom_type_id__volatile = 0;
if (g_once_init_enter (&quick_time_atom_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_quick_time_atom_init, value_quick_time_atom_free_value, value_quick_time_atom_copy_value, value_quick_time_atom_peek_pointer, "p", value_quick_time_atom_collect_value, "p", value_quick_time_atom_lcopy_value };
@@ -2499,18 +2652,22 @@ GType quick_time_atom_get_type (void) {
}
-gpointer quick_time_atom_ref (gpointer instance) {
+gpointer
+quick_time_atom_ref (gpointer instance)
+{
QuickTimeAtom * self;
self = instance;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return instance;
-#line 2509 "VideoMetadata.c"
+#line 2664 "VideoMetadata.c"
}
-void quick_time_atom_unref (gpointer instance) {
+void
+quick_time_atom_unref (gpointer instance)
+{
QuickTimeAtom * self;
self = instance;
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2519,59 +2676,62 @@ void quick_time_atom_unref (gpointer instance) {
QUICK_TIME_ATOM_GET_CLASS (self)->finalize (self);
#line 173 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 2522 "VideoMetadata.c"
+#line 2679 "VideoMetadata.c"
}
}
-AVIMetadataLoader* avi_metadata_loader_construct (GType object_type, GFile* file) {
+AVIMetadataLoader*
+avi_metadata_loader_construct (GType object_type,
+ GFile* file)
+{
AVIMetadataLoader* self = NULL;
GFile* _tmp0_;
- GFile* _tmp1_;
#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (AVIMetadataLoader*) g_type_create_instance (object_type);
#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = file;
-#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (file);
#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
#line 306 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp1_;
+ self->priv->file = _tmp0_;
#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 2545 "VideoMetadata.c"
+#line 2702 "VideoMetadata.c"
}
-AVIMetadataLoader* avi_metadata_loader_new (GFile* file) {
+AVIMetadataLoader*
+avi_metadata_loader_new (GFile* file)
+{
#line 305 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return avi_metadata_loader_construct (TYPE_AVI_METADATA_LOADER, file);
-#line 2552 "VideoMetadata.c"
+#line 2711 "VideoMetadata.c"
}
-MetadataDateTime* avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self) {
+MetadataDateTime*
+avi_metadata_loader_get_creation_date_time (AVIMetadataLoader* self)
+{
MetadataDateTime* result = NULL;
- gulong _tmp0_;
- MetadataDateTime* _tmp1_;
+ MetadataDateTime* _tmp0_;
#line 309 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = avi_metadata_loader_get_creation_date_time_for_avi (self);
-#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = metadata_date_time_new ((time_t) _tmp0_);
+ _tmp0_ = metadata_date_time_new ((time_t) avi_metadata_loader_get_creation_date_time_for_avi (self));
#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp1_;
+ result = _tmp0_;
#line 310 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2570 "VideoMetadata.c"
+#line 2728 "VideoMetadata.c"
}
-gchar* avi_metadata_loader_get_title (AVIMetadataLoader* self) {
+gchar*
+avi_metadata_loader_get_title (AVIMetadataLoader* self)
+{
gchar* result = NULL;
#line 313 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
@@ -2579,11 +2739,13 @@ gchar* avi_metadata_loader_get_title (AVIMetadataLoader* self) {
result = NULL;
#line 315 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2582 "VideoMetadata.c"
+#line 2742 "VideoMetadata.c"
}
-gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
+gboolean
+avi_metadata_loader_is_supported (AVIMetadataLoader* self)
+{
gboolean result = FALSE;
AVIChunk* chunk = NULL;
GFile* _tmp0_;
@@ -2600,7 +2762,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
chunk = _tmp1_;
#line 321 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
ret = FALSE;
-#line 2603 "VideoMetadata.c"
+#line 2765 "VideoMetadata.c"
{
AVIChunk* _tmp2_;
AVIChunk* _tmp3_;
@@ -2615,7 +2777,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
avi_chunk_open_file (_tmp2_, &_inner_error_);
#line 323 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2618 "VideoMetadata.c"
+#line 2780 "VideoMetadata.c"
goto __catch590_g_error;
}
#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2624,7 +2786,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
avi_chunk_read_chunk (_tmp3_, &_inner_error_);
#line 324 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2627 "VideoMetadata.c"
+#line 2789 "VideoMetadata.c"
goto __catch590_g_error;
}
#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2639,7 +2801,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
_g_free0 (_tmp7_);
#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (_tmp8_) {
-#line 2642 "VideoMetadata.c"
+#line 2804 "VideoMetadata.c"
gchar* _tmp9_ = NULL;
AVIChunk* _tmp10_;
gchar* _tmp11_;
@@ -2651,24 +2813,24 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
_tmp9_ = _tmp11_;
#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2654 "VideoMetadata.c"
+#line 2816 "VideoMetadata.c"
goto __catch590_g_error;
}
#line 327 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp4_ = g_strcmp0 ("AVI ", _tmp9_) == 0;
#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (_tmp9_);
-#line 2661 "VideoMetadata.c"
+#line 2823 "VideoMetadata.c"
} else {
#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp4_ = FALSE;
-#line 2665 "VideoMetadata.c"
+#line 2827 "VideoMetadata.c"
}
#line 326 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (_tmp4_) {
#line 328 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
ret = TRUE;
-#line 2671 "VideoMetadata.c"
+#line 2833 "VideoMetadata.c"
}
}
goto __finally590;
@@ -2689,12 +2851,12 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
g_debug ("VideoMetadata.vala:331: Error while testing for AVI file: %s", _tmp13_);
#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 2692 "VideoMetadata.c"
+#line 2854 "VideoMetadata.c"
}
__finally590:
#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2697 "VideoMetadata.c"
+#line 2859 "VideoMetadata.c"
gboolean _tmp14_ = FALSE;
#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (chunk);
@@ -2704,7 +2866,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
g_clear_error (&_inner_error_);
#line 322 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return _tmp14_;
-#line 2707 "VideoMetadata.c"
+#line 2869 "VideoMetadata.c"
}
{
AVIChunk* _tmp15_;
@@ -2714,7 +2876,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
avi_chunk_close_file (_tmp15_, &_inner_error_);
#line 335 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2717 "VideoMetadata.c"
+#line 2879 "VideoMetadata.c"
goto __catch591_g_error;
}
}
@@ -2736,12 +2898,12 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
g_debug ("VideoMetadata.vala:337: Error while closing AVI file: %s", _tmp17_);
#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 2739 "VideoMetadata.c"
+#line 2901 "VideoMetadata.c"
}
__finally591:
#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2744 "VideoMetadata.c"
+#line 2906 "VideoMetadata.c"
gboolean _tmp18_ = FALSE;
#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (chunk);
@@ -2751,7 +2913,7 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
g_clear_error (&_inner_error_);
#line 334 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return _tmp18_;
-#line 2754 "VideoMetadata.c"
+#line 2916 "VideoMetadata.c"
}
#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = ret;
@@ -2759,15 +2921,19 @@ gboolean avi_metadata_loader_is_supported (AVIMetadataLoader* self) {
_avi_chunk_unref0 (chunk);
#line 339 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2762 "VideoMetadata.c"
+#line 2924 "VideoMetadata.c"
}
-static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self, AVIChunk* chunk, GError** error) {
+static gchar*
+avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error)
+{
gchar* result = NULL;
gboolean found_date = FALSE;
- gboolean _tmp9_;
- gchar* _tmp21_;
+ gboolean _tmp2_;
+ gchar* _tmp12_;
GError * _inner_error_ = NULL;
#line 343 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
@@ -2777,139 +2943,112 @@ static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
found_date = FALSE;
#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 2780 "VideoMetadata.c"
- AVIChunk* _tmp0_;
- guint64 _tmp1_;
+#line 2946 "VideoMetadata.c"
guint16 tag = 0U;
- AVIChunk* _tmp2_;
- guint16 _tmp3_;
guint16 size = 0U;
- AVIChunk* _tmp4_;
- guint16 _tmp5_;
- guint16 _tmp6_;
- AVIChunk* _tmp7_;
- guint16 _tmp8_;
+ guint16 _tmp0_;
+ guint16 _tmp1_;
#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = chunk;
-#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = avi_chunk_section_size_remaining (_tmp0_);
-#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp1_ > ((guint64) (sizeof (guint16) * 2)))) {
+ if (!(avi_chunk_section_size_remaining (chunk) > ((guint64) (sizeof (guint16) * 2)))) {
#line 345 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 2800 "VideoMetadata.c"
+#line 2955 "VideoMetadata.c"
}
#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = chunk;
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = avi_chunk_read_uint16 (_tmp2_, &_inner_error_);
-#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tag = _tmp3_;
+ tag = avi_chunk_read_uint16 (chunk, &_inner_error_);
#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 346 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2814 "VideoMetadata.c"
+#line 2965 "VideoMetadata.c"
}
#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = chunk;
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = avi_chunk_read_uint16 (_tmp4_, &_inner_error_);
-#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- size = _tmp5_;
+ size = avi_chunk_read_uint16 (chunk, &_inner_error_);
#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 347 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2828 "VideoMetadata.c"
+#line 2975 "VideoMetadata.c"
}
#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = tag;
+ _tmp0_ = tag;
#line 348 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER == _tmp6_) {
+ if (AVI_METADATA_LOADER_NIKON_NCTG_TIMESTAMP_MARKER == _tmp0_) {
#line 349 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
found_date = TRUE;
#line 350 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 2838 "VideoMetadata.c"
+#line 2985 "VideoMetadata.c"
}
#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = chunk;
-#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = size;
+ _tmp1_ = size;
#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (_tmp7_, (guint64) _tmp8_, &_inner_error_);
+ avi_chunk_skip (chunk, (guint64) _tmp1_, &_inner_error_);
#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 352 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2852 "VideoMetadata.c"
+#line 2997 "VideoMetadata.c"
}
}
#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = found_date;
+ _tmp2_ = found_date;
#line 355 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp9_) {
-#line 2859 "VideoMetadata.c"
+ if (_tmp2_) {
+#line 3004 "VideoMetadata.c"
GString* sb = NULL;
- GString* _tmp10_;
- GString* _tmp18_;
- const gchar* _tmp19_;
- gchar* _tmp20_;
+ GString* _tmp3_;
+ GString* _tmp9_;
+ const gchar* _tmp10_;
+ gchar* _tmp11_;
#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = g_string_new ("");
+ _tmp3_ = g_string_new ("");
#line 357 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp10_;
-#line 2869 "VideoMetadata.c"
+ sb = _tmp3_;
+#line 3014 "VideoMetadata.c"
{
gint i = 0;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
i = 0;
-#line 2874 "VideoMetadata.c"
+#line 3019 "VideoMetadata.c"
{
- gboolean _tmp11_ = FALSE;
+ gboolean _tmp4_ = FALSE;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = TRUE;
+ _tmp4_ = TRUE;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 2881 "VideoMetadata.c"
- gint _tmp13_;
- guchar _tmp14_ = '\0';
- AVIChunk* _tmp15_;
- guchar _tmp16_;
- GString* _tmp17_;
+#line 3026 "VideoMetadata.c"
+ gint _tmp6_;
+ guchar _tmp7_ = '\0';
+ GString* _tmp8_;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp11_) {
-#line 2889 "VideoMetadata.c"
- gint _tmp12_;
+ if (!_tmp4_) {
+#line 3032 "VideoMetadata.c"
+ gint _tmp5_;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = i;
+ _tmp5_ = i;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- i = _tmp12_ + 1;
-#line 2895 "VideoMetadata.c"
+ i = _tmp5_ + 1;
+#line 3038 "VideoMetadata.c"
}
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = FALSE;
+ _tmp4_ = FALSE;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = i;
+ _tmp6_ = i;
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!(_tmp13_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH)) {
+ if (!(_tmp6_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH)) {
#line 358 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 2905 "VideoMetadata.c"
+#line 3048 "VideoMetadata.c"
}
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = chunk;
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = avi_chunk_read_byte (_tmp15_, &_inner_error_);
-#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = _tmp16_;
+ _tmp7_ = avi_chunk_read_byte (chunk, &_inner_error_);
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -2918,307 +3057,245 @@ static gchar* avi_metadata_loader_read_nikon_nctg_tag (AVIMetadataLoader* self,
_g_string_free0 (sb);
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 2921 "VideoMetadata.c"
+#line 3060 "VideoMetadata.c"
}
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = sb;
+ _tmp8_ = sb;
#line 359 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp17_, (gchar) _tmp14_);
-#line 2927 "VideoMetadata.c"
+ g_string_append_c (_tmp8_, (gchar) _tmp7_);
+#line 3066 "VideoMetadata.c"
}
}
}
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = sb;
+ _tmp9_ = sb;
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = _tmp18_->str;
+ _tmp10_ = _tmp9_->str;
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = g_strdup (_tmp19_);
+ _tmp11_ = g_strdup (_tmp10_);
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp20_;
+ result = _tmp11_;
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 361 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2943 "VideoMetadata.c"
+#line 3082 "VideoMetadata.c"
}
#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = g_strdup ("");
+ _tmp12_ = g_strdup ("");
#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp21_;
+ result = _tmp12_;
#line 363 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 2951 "VideoMetadata.c"
+#line 3090 "VideoMetadata.c"
}
-static glong string_strnlen (gchar* str, glong maxlen) {
+static glong
+string_strnlen (gchar* str,
+ glong maxlen)
+{
glong result = 0L;
gchar* end = NULL;
gchar* _tmp0_;
- glong _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = str;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = maxlen;
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
-#line 1322 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- end = _tmp2_;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = end;
-#line 1323 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp3_ == NULL) {
-#line 2974 "VideoMetadata.c"
- glong _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = maxlen;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp4_;
-#line 1324 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp1_;
+#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = memchr (str, 0, (gsize) maxlen);
+#line 1336 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ end = _tmp0_;
+#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = end;
+#line 1337 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (_tmp1_ == NULL) {
+#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = maxlen;
+#line 1338 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 2982 "VideoMetadata.c"
+#line 3114 "VideoMetadata.c"
} else {
- gchar* _tmp5_;
- gchar* _tmp6_;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = end;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = str;
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = (glong) (_tmp5_ - _tmp6_);
-#line 1326 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ gchar* _tmp2_;
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = end;
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = (glong) (_tmp2_ - str);
+#line 1340 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 2994 "VideoMetadata.c"
+#line 3123 "VideoMetadata.c"
}
}
-static gchar* string_substring (const gchar* self, glong offset, glong len) {
+static gchar*
+string_substring (const gchar* self,
+ glong offset,
+ glong len)
+{
gchar* result = NULL;
glong string_length = 0L;
gboolean _tmp0_ = FALSE;
- glong _tmp1_;
- glong _tmp8_;
- glong _tmp14_;
- glong _tmp17_;
- glong _tmp18_;
- glong _tmp19_;
- glong _tmp20_;
- glong _tmp21_;
- gchar* _tmp22_;
-#line 1333 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+ glong _tmp6_;
+ gchar* _tmp7_;
+#line 1347 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp1_ = offset;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp1_ >= ((glong) 0)) {
-#line 3018 "VideoMetadata.c"
- glong _tmp2_;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp2_ = len;
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp0_ = _tmp2_ >= ((glong) 0);
-#line 3024 "VideoMetadata.c"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset >= ((glong) 0)) {
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp0_ = len >= ((glong) 0);
+#line 3144 "VideoMetadata.c"
} else {
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = FALSE;
-#line 3028 "VideoMetadata.c"
+#line 3148 "VideoMetadata.c"
}
-#line 1335 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1349 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
if (_tmp0_) {
-#line 3032 "VideoMetadata.c"
- glong _tmp3_;
- glong _tmp4_;
- glong _tmp5_;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp3_ = offset;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp4_ = len;
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
-#line 1337 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = _tmp5_;
-#line 3044 "VideoMetadata.c"
+#line 1351 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = string_strnlen ((gchar*) self, offset + len);
+#line 3154 "VideoMetadata.c"
} else {
- gint _tmp6_;
- gint _tmp7_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp6_ = strlen (self);
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp7_ = _tmp6_;
-#line 1339 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- string_length = (glong) _tmp7_;
-#line 3054 "VideoMetadata.c"
+ gint _tmp1_;
+ gint _tmp2_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp1_ = strlen (self);
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp2_ = _tmp1_;
+#line 1353 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ string_length = (glong) _tmp2_;
+#line 3164 "VideoMetadata.c"
}
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp8_ = offset;
-#line 1342 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp8_ < ((glong) 0)) {
-#line 3060 "VideoMetadata.c"
- glong _tmp9_;
- glong _tmp10_;
- glong _tmp11_;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp9_ = string_length;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp10_ = offset;
-#line 1343 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- offset = _tmp9_ + _tmp10_;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp11_ = offset;
-#line 1344 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
-#line 3074 "VideoMetadata.c"
+#line 1356 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (offset < ((glong) 0)) {
+#line 3168 "VideoMetadata.c"
+ glong _tmp3_;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp3_ = string_length;
+#line 1357 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ offset = _tmp3_ + offset;
+#line 1358 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset >= ((glong) 0), NULL);
+#line 3176 "VideoMetadata.c"
} else {
- glong _tmp12_;
- glong _tmp13_;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp12_ = offset;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp13_ = string_length;
-#line 1346 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
-#line 3084 "VideoMetadata.c"
+ glong _tmp4_;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp4_ = string_length;
+#line 1360 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail (offset <= _tmp4_, NULL);
+#line 3183 "VideoMetadata.c"
}
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp14_ = len;
-#line 1348 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- if (_tmp14_ < ((glong) 0)) {
-#line 3090 "VideoMetadata.c"
- glong _tmp15_;
- glong _tmp16_;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp15_ = string_length;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp16_ = offset;
-#line 1349 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- len = _tmp15_ - _tmp16_;
-#line 3099 "VideoMetadata.c"
+#line 1362 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ if (len < ((glong) 0)) {
+#line 3187 "VideoMetadata.c"
+ glong _tmp5_;
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp5_ = string_length;
+#line 1363 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ len = _tmp5_ - offset;
+#line 3193 "VideoMetadata.c"
}
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp17_ = offset;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp18_ = len;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp19_ = string_length;
-#line 1351 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp20_ = offset;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp21_ = len;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
- result = _tmp22_;
-#line 1352 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp6_ = string_length;
+#line 1365 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
+ result = _tmp7_;
+#line 1366 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 3119 "VideoMetadata.c"
+#line 3205 "VideoMetadata.c"
}
-static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self, AVIChunk* chunk, GError** error) {
+static gchar*
+avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error)
+{
gchar* result = NULL;
- AVIChunk* _tmp0_;
- AVIChunk* _tmp1_;
gint colons = 0;
gint post_colons = 0;
GString* sb = NULL;
- GString* _tmp2_;
+ GString* _tmp0_;
+ GString* _tmp15_;
+ const gchar* _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
GString* _tmp20_;
const gchar* _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- GString* _tmp25_;
- const gchar* _tmp26_;
- GString* _tmp27_;
- const gchar* _tmp28_;
- gint _tmp29_;
- gint _tmp30_;
- gchar* _tmp31_;
+ GString* _tmp22_;
+ const gchar* _tmp23_;
+ gint _tmp24_;
+ gint _tmp25_;
+ gchar* _tmp26_;
GError * _inner_error_ = NULL;
#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), NULL);
#line 368 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL);
#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = chunk;
-#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (_tmp0_, (guint64) 98, &_inner_error_);
+ avi_chunk_skip (chunk, (guint64) 98, &_inner_error_);
#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 369 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3157 "VideoMetadata.c"
+#line 3243 "VideoMetadata.c"
}
#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = chunk;
-#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (_tmp1_, (guint64) 8, &_inner_error_);
+ avi_chunk_skip (chunk, (guint64) 8, &_inner_error_);
#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 370 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3169 "VideoMetadata.c"
+#line 3253 "VideoMetadata.c"
}
#line 372 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
colons = 0;
#line 373 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
post_colons = 0;
#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_string_new ("");
+ _tmp0_ = g_string_new ("");
#line 374 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- sb = _tmp2_;
+ sb = _tmp0_;
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 3181 "VideoMetadata.c"
- gboolean _tmp3_ = FALSE;
- gint _tmp4_;
- guchar _tmp6_ = '\0';
- AVIChunk* _tmp7_;
- guchar _tmp8_;
+#line 3265 "VideoMetadata.c"
+ gboolean _tmp1_ = FALSE;
+ gint _tmp2_;
+ guchar _tmp4_ = '\0';
gchar c = '\0';
- gint _tmp9_;
- gchar _tmp11_;
- gchar _tmp13_;
- gboolean _tmp14_;
- GString* _tmp17_;
- gssize _tmp18_;
+ gint _tmp5_;
+ gchar _tmp7_;
+ gchar _tmp9_;
+ GString* _tmp12_;
+ gssize _tmp13_;
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = colons;
+ _tmp2_ = colons;
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp4_ <= 4) {
-#line 3198 "VideoMetadata.c"
- gint _tmp5_;
+ if (_tmp2_ <= 4) {
+#line 3279 "VideoMetadata.c"
+ gint _tmp3_;
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = post_colons;
+ _tmp3_ = post_colons;
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = _tmp5_ < 2;
-#line 3204 "VideoMetadata.c"
+ _tmp1_ = _tmp3_ < 2;
+#line 3285 "VideoMetadata.c"
} else {
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = FALSE;
-#line 3208 "VideoMetadata.c"
+ _tmp1_ = FALSE;
+#line 3289 "VideoMetadata.c"
}
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (!_tmp3_) {
+ if (!_tmp1_) {
#line 376 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 3214 "VideoMetadata.c"
+#line 3295 "VideoMetadata.c"
}
#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = chunk;
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = avi_chunk_read_byte (_tmp7_, &_inner_error_);
-#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = _tmp8_;
+ _tmp4_ = avi_chunk_read_byte (chunk, &_inner_error_);
#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3227,117 +3304,119 @@ static gchar* avi_metadata_loader_read_fuji_strd_tag (AVIMetadataLoader* self, A
_g_string_free0 (sb);
#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3230 "VideoMetadata.c"
+#line 3307 "VideoMetadata.c"
}
#line 377 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- c = (gchar) _tmp6_;
+ c = (gchar) _tmp4_;
#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = colons;
+ _tmp5_ = colons;
#line 378 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (4 == _tmp9_) {
-#line 3238 "VideoMetadata.c"
- gint _tmp10_;
+ if (4 == _tmp5_) {
+#line 3315 "VideoMetadata.c"
+ gint _tmp6_;
#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = post_colons;
+ _tmp6_ = post_colons;
#line 379 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- post_colons = _tmp10_ + 1;
-#line 3244 "VideoMetadata.c"
+ post_colons = _tmp6_ + 1;
+#line 3321 "VideoMetadata.c"
}
#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = c;
+ _tmp7_ = c;
#line 381 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (':' == _tmp11_) {
-#line 3250 "VideoMetadata.c"
- gint _tmp12_;
+ if (':' == _tmp7_) {
+#line 3327 "VideoMetadata.c"
+ gint _tmp8_;
#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = colons;
+ _tmp8_ = colons;
#line 382 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- colons = _tmp12_ + 1;
-#line 3256 "VideoMetadata.c"
+ colons = _tmp8_ + 1;
+#line 3333 "VideoMetadata.c"
}
#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = c;
-#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = g_ascii_isprint (_tmp13_);
+ _tmp9_ = c;
#line 384 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp14_) {
-#line 3264 "VideoMetadata.c"
- GString* _tmp15_;
- gchar _tmp16_;
+ if (g_ascii_isprint (_tmp9_)) {
+#line 3339 "VideoMetadata.c"
+ GString* _tmp10_;
+ gchar _tmp11_;
#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = sb;
+ _tmp10_ = sb;
#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = c;
+ _tmp11_ = c;
#line 385 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp15_, _tmp16_);
-#line 3273 "VideoMetadata.c"
+ g_string_append_c (_tmp10_, _tmp11_);
+#line 3348 "VideoMetadata.c"
}
#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = sb;
+ _tmp12_ = sb;
#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_->len;
+ _tmp13_ = _tmp12_->len;
#line 387 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp18_ > ((gssize) AVI_METADATA_LOADER_MAX_STRD_LENGTH)) {
-#line 3281 "VideoMetadata.c"
- gchar* _tmp19_;
+ if (_tmp13_ > ((gssize) AVI_METADATA_LOADER_MAX_STRD_LENGTH)) {
+#line 3356 "VideoMetadata.c"
+ gchar* _tmp14_;
#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = g_strdup ("");
+ _tmp14_ = g_strdup ("");
#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp19_;
+ result = _tmp14_;
#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 388 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3291 "VideoMetadata.c"
+#line 3366 "VideoMetadata.c"
}
}
#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = sb;
+ _tmp15_ = sb;
#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = _tmp20_->str;
+ _tmp16_ = _tmp15_->str;
#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = strlen (_tmp21_);
+ _tmp17_ = strlen (_tmp16_);
#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = _tmp22_;
+ _tmp18_ = _tmp17_;
#line 392 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp23_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH) {
-#line 3304 "VideoMetadata.c"
- gchar* _tmp24_;
+ if (_tmp18_ < AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH) {
+#line 3379 "VideoMetadata.c"
+ gchar* _tmp19_;
#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = g_strdup ("");
+ _tmp19_ = g_strdup ("");
#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp24_;
+ result = _tmp19_;
#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 393 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3314 "VideoMetadata.c"
+#line 3389 "VideoMetadata.c"
}
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = sb;
+ _tmp20_ = sb;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = _tmp25_->str;
+ _tmp21_ = _tmp20_->str;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = sb;
+ _tmp22_ = sb;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = _tmp27_->str;
+ _tmp23_ = _tmp22_->str;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = strlen (_tmp28_);
+ _tmp24_ = strlen (_tmp23_);
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = _tmp29_;
+ _tmp25_ = _tmp24_;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = string_substring (_tmp26_, (glong) (_tmp30_ - AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH), (glong) -1);
+ _tmp26_ = string_substring (_tmp21_, (glong) (_tmp25_ - AVI_METADATA_LOADER_NUMERICAL_DATE_LENGTH), (glong) -1);
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp31_;
+ result = _tmp26_;
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 396 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3336 "VideoMetadata.c"
+#line 3411 "VideoMetadata.c"
}
-static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChunk* chunk, GError** error) {
+static gchar*
+avi_metadata_loader_read_section (AVIMetadataLoader* self,
+ AVIChunk* chunk,
+ GError** error)
+{
gchar* result = NULL;
GError * _inner_error_ = NULL;
#line 400 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3346,49 +3425,37 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
g_return_val_if_fail (IS_AVI_CHUNK (chunk), NULL);
#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 3349 "VideoMetadata.c"
- AVIChunk* _tmp0_;
+#line 3428 "VideoMetadata.c"
gchar* name = NULL;
- AVIChunk* _tmp1_;
- gchar* _tmp2_;
- const gchar* _tmp3_;
- const gchar* _tmp18_;
- AVIChunk* _tmp28_;
- gboolean _tmp29_;
- AVIChunk* _tmp30_;
-#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = chunk;
+ gchar* _tmp0_;
+ const gchar* _tmp1_;
+ const gchar* _tmp13_;
#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_read_chunk (_tmp0_, &_inner_error_);
+ avi_chunk_read_chunk (chunk, &_inner_error_);
#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 402 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3369 "VideoMetadata.c"
+#line 3441 "VideoMetadata.c"
}
#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = chunk;
-#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = avi_chunk_get_current_chunk_name (_tmp1_);
+ _tmp0_ = avi_chunk_get_current_chunk_name (chunk);
#line 403 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- name = _tmp2_;
+ name = _tmp0_;
#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = name;
+ _tmp1_ = name;
#line 404 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("IDIT", _tmp3_) == 0) {
-#line 3381 "VideoMetadata.c"
- gchar* _tmp4_ = NULL;
- AVIChunk* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
+ if (g_strcmp0 ("IDIT", _tmp1_) == 0) {
+#line 3451 "VideoMetadata.c"
+ gchar* _tmp2_ = NULL;
+ gchar* _tmp3_;
+ gchar* _tmp4_;
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = chunk;
+ _tmp3_ = avi_chunk_section_to_string (chunk, &_inner_error_);
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = avi_chunk_section_to_string (_tmp5_, &_inner_error_);
-#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = _tmp6_;
+ _tmp2_ = _tmp3_;
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3397,38 +3464,35 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3400 "VideoMetadata.c"
+#line 3467 "VideoMetadata.c"
}
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = _tmp4_;
+ _tmp4_ = _tmp2_;
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = NULL;
+ _tmp2_ = NULL;
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp7_;
+ result = _tmp4_;
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp4_);
+ _g_free0 (_tmp2_);
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
#line 405 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3414 "VideoMetadata.c"
+#line 3481 "VideoMetadata.c"
} else {
- const gchar* _tmp8_;
+ const gchar* _tmp5_;
#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = name;
+ _tmp5_ = name;
#line 406 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("nctg", _tmp8_) == 0) {
-#line 3421 "VideoMetadata.c"
- gchar* _tmp9_ = NULL;
- AVIChunk* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
-#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = chunk;
+ if (g_strcmp0 ("nctg", _tmp5_) == 0) {
+#line 3488 "VideoMetadata.c"
+ gchar* _tmp6_ = NULL;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_metadata_loader_read_nikon_nctg_tag (self, _tmp10_, &_inner_error_);
+ _tmp7_ = avi_metadata_loader_read_nikon_nctg_tag (self, chunk, &_inner_error_);
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp11_;
+ _tmp6_ = _tmp7_;
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3437,38 +3501,35 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3440 "VideoMetadata.c"
+#line 3504 "VideoMetadata.c"
}
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = _tmp9_;
+ _tmp8_ = _tmp6_;
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = NULL;
+ _tmp6_ = NULL;
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp12_;
+ result = _tmp8_;
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp6_);
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
#line 407 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3454 "VideoMetadata.c"
+#line 3518 "VideoMetadata.c"
} else {
- const gchar* _tmp13_;
+ const gchar* _tmp9_;
#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = name;
+ _tmp9_ = name;
#line 408 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("strd", _tmp13_) == 0) {
-#line 3461 "VideoMetadata.c"
- gchar* _tmp14_ = NULL;
- AVIChunk* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
+ if (g_strcmp0 ("strd", _tmp9_) == 0) {
+#line 3525 "VideoMetadata.c"
+ gchar* _tmp10_ = NULL;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = chunk;
+ _tmp11_ = avi_metadata_loader_read_fuji_strd_tag (self, chunk, &_inner_error_);
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = avi_metadata_loader_read_fuji_strd_tag (self, _tmp15_, &_inner_error_);
-#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = _tmp16_;
+ _tmp10_ = _tmp11_;
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3477,47 +3538,43 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3480 "VideoMetadata.c"
+#line 3541 "VideoMetadata.c"
}
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = _tmp14_;
+ _tmp12_ = _tmp10_;
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = NULL;
+ _tmp10_ = NULL;
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp17_;
+ result = _tmp12_;
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp14_);
+ _g_free0 (_tmp10_);
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
#line 409 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3494 "VideoMetadata.c"
+#line 3555 "VideoMetadata.c"
}
}
}
#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = name;
+ _tmp13_ = name;
#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (g_strcmp0 ("LIST", _tmp18_) == 0) {
-#line 3502 "VideoMetadata.c"
- AVIChunk* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
+ if (g_strcmp0 ("LIST", _tmp13_) == 0) {
+#line 3563 "VideoMetadata.c"
+ gchar* _tmp14_;
+ gchar* _tmp15_;
gchar* _result_ = NULL;
- AVIChunk* _tmp22_;
- AVIChunk* _tmp23_;
- AVIChunk* _tmp24_;
- gchar* _tmp25_;
- gchar* _tmp26_;
- const gchar* _tmp27_;
-#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = chunk;
+ AVIChunk* _tmp16_;
+ AVIChunk* _tmp17_;
+ gchar* _tmp18_;
+ gchar* _tmp19_;
+ const gchar* _tmp20_;
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = avi_chunk_read_name (_tmp19_, &_inner_error_);
+ _tmp14_ = avi_chunk_read_name (chunk, &_inner_error_);
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = _tmp20_;
+ _tmp15_ = _tmp14_;
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp21_);
+ _g_free0 (_tmp15_);
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3526,22 +3583,20 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 413 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3529 "VideoMetadata.c"
+#line 3586 "VideoMetadata.c"
}
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = chunk;
+ _tmp16_ = avi_chunk_get_first_child_chunk (chunk);
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = avi_chunk_get_first_child_chunk (_tmp22_);
+ _tmp17_ = _tmp16_;
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = _tmp23_;
+ _tmp18_ = avi_metadata_loader_read_section (self, _tmp17_, &_inner_error_);
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = avi_metadata_loader_read_section (self, _tmp24_, &_inner_error_);
+ _tmp19_ = _tmp18_;
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp26_ = _tmp25_;
+ _avi_chunk_unref0 (_tmp17_);
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _avi_chunk_unref0 (_tmp24_);
-#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = _tmp26_;
+ _result_ = _tmp19_;
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3550,40 +3605,34 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 414 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3553 "VideoMetadata.c"
+#line 3608 "VideoMetadata.c"
}
#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = _result_;
+ _tmp20_ = _result_;
#line 415 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp27_) {
+ if (NULL != _tmp20_) {
#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = _result_;
#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
#line 416 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3565 "VideoMetadata.c"
+#line 3620 "VideoMetadata.c"
}
#line 412 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (_result_);
-#line 3569 "VideoMetadata.c"
+#line 3624 "VideoMetadata.c"
}
#line 420 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = chunk;
-#line 420 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = avi_chunk_is_last_chunk (_tmp28_);
-#line 420 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp29_) {
+ if (avi_chunk_is_last_chunk (chunk)) {
#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
#line 421 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 3581 "VideoMetadata.c"
+#line 3632 "VideoMetadata.c"
}
#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = chunk;
-#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_next_chunk (_tmp30_, &_inner_error_);
+ avi_chunk_next_chunk (chunk, &_inner_error_);
#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -3592,25 +3641,27 @@ static gchar* avi_metadata_loader_read_section (AVIMetadataLoader* self, AVIChun
_g_free0 (name);
#line 423 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 3595 "VideoMetadata.c"
+#line 3644 "VideoMetadata.c"
}
#line 401 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (name);
-#line 3599 "VideoMetadata.c"
+#line 3648 "VideoMetadata.c"
}
#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = NULL;
#line 425 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3605 "VideoMetadata.c"
+#line 3654 "VideoMetadata.c"
}
-static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self, const gchar* sdate) {
+static gulong
+avi_metadata_loader_parse_date (AVIMetadataLoader* self,
+ const gchar* sdate)
+{
gulong result = 0UL;
- const gchar* _tmp0_;
+ gint _tmp0_;
gint _tmp1_;
- gint _tmp2_;
GDate date = {0};
guint seconds = 0U;
gint year = 0;
@@ -3621,400 +3672,371 @@ static gulong avi_metadata_loader_parse_date (AVIMetadataLoader* self, const gch
gint sec = 0;
gchar weekday[4] = {0};
gchar monthstr[4] = {0};
- const gchar* _tmp3_;
- gchar _tmp4_;
- gboolean _tmp5_;
struct tm time = {0};
- struct tm _tmp26_ = {0};
+ struct tm _tmp17_ = {0};
time_t tm = 0;
- time_t _tmp27_;
gulong _result_ = 0UL;
- time_t _tmp28_;
- guint _tmp29_;
- gulong _tmp30_;
- time_t _tmp31_;
+ time_t _tmp18_;
+ guint _tmp19_;
+ gulong _tmp20_;
+ time_t _tmp21_;
#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0UL);
#line 432 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (sdate != NULL, 0UL);
#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = sdate;
-#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = strlen (_tmp0_);
+ _tmp0_ = strlen (sdate);
#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 433 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp2_ == 0) {
+ if (_tmp1_ == 0) {
#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (gulong) 0;
#line 434 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3652 "VideoMetadata.c"
+#line 3697 "VideoMetadata.c"
}
#line 437 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
memset (&date, 0, sizeof (GDate));
#line 438 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
seconds = (guint) 0;
#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = sdate;
-#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = string_get (_tmp3_, (glong) 0);
-#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = g_ascii_isdigit (_tmp4_);
-#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp5_) {
-#line 3666 "VideoMetadata.c"
+ if (g_ascii_isdigit (string_get (sdate, (glong) 0))) {
+#line 3705 "VideoMetadata.c"
gchar* tmp = NULL;
- const gchar* _tmp6_;
- gchar* _tmp7_;
- const gchar* _tmp8_;
+ gchar* _tmp2_;
+ const gchar* _tmp3_;
gint _result_ = 0;
- const gchar* _tmp9_;
+ const gchar* _tmp4_;
+ gint _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
+ gint _tmp9_;
gint _tmp10_;
gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gint _tmp16_;
- gint _tmp17_;
#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sdate;
-#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = g_strdup (_tmp6_);
+ _tmp2_ = g_strdup (sdate);
#line 447 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tmp = _tmp7_;
+ tmp = _tmp2_;
#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = tmp;
+ _tmp3_ = tmp;
#line 448 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_strcanon (_tmp8_, "0123456789 ", ' ');
+ g_strcanon (_tmp3_, "0123456789 ", ' ');
#line 449 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
sec = 0;
#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = tmp;
-#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = sscanf (_tmp9_, "%d %d %d %d %d %d", &year, &month, &day, &hour, &min, &sec);
+ _tmp4_ = tmp;
#line 450 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = _tmp10_;
+ _result_ = sscanf (_tmp4_, "%d %d %d %d %d %d", &year, &month, &day, &hour, &min, &sec);
#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = _result_;
+ _tmp5_ = _result_;
#line 451 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp11_ < 5) {
+ if (_tmp5_ < 5) {
#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (gulong) 0;
#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (tmp);
#line 452 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3709 "VideoMetadata.c"
+#line 3742 "VideoMetadata.c"
}
#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = day;
+ _tmp6_ = day;
#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = month;
+ _tmp7_ = month;
#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = year;
+ _tmp8_ = year;
#line 454 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_set_dmy (&date, (GDateDay) _tmp12_, (gint) ((GDateMonth) _tmp13_), (GDateYear) _tmp14_);
+ g_date_set_dmy (&date, (GDateDay) _tmp6_, (gint) ((GDateMonth) _tmp7_), (GDateYear) _tmp8_);
#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = sec;
+ _tmp9_ = sec;
#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = min;
+ _tmp10_ = min;
#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = hour;
+ _tmp11_ = hour;
#line 455 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- seconds = (guint) ((_tmp15_ + (_tmp16_ * 60)) + (_tmp17_ * 3600));
+ seconds = (guint) ((_tmp9_ + (_tmp10_ * 60)) + (_tmp11_ * 3600));
#line 443 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (tmp);
-#line 3729 "VideoMetadata.c"
+#line 3762 "VideoMetadata.c"
} else {
- const gchar* _tmp18_;
- gint _tmp19_;
- gint _tmp20_;
- GDateMonth _tmp21_;
- gint _tmp22_;
- gint _tmp23_;
- gint _tmp24_;
- gint _tmp25_;
-#line 458 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = sdate;
-#line 458 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = sscanf (_tmp18_, "%3s %3s %d %d:%d:%d %d", weekday, monthstr, &day, &hour, &min, &sec, &year);
+ gint _tmp12_;
+ gint _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
#line 458 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (7 != _tmp19_) {
+ if (7 != sscanf (sdate, "%3s %3s %d %d:%d:%d %d", weekday, monthstr, &day, &hour, &min, &sec, &year)) {
#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (gulong) 0;
#line 460 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3749 "VideoMetadata.c"
+#line 3775 "VideoMetadata.c"
}
#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = day;
-#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = avi_metadata_loader_month_from_string (self, (const gchar*) monthstr);
+ _tmp12_ = day;
#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = year;
+ _tmp13_ = year;
#line 462 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_set_dmy (&date, (GDateDay) _tmp20_, (gint) _tmp21_, (GDateYear) _tmp22_);
+ g_date_set_dmy (&date, (GDateDay) _tmp12_, (gint) avi_metadata_loader_month_from_string (self, (const gchar*) monthstr), (GDateYear) _tmp13_);
#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp23_ = sec;
+ _tmp14_ = sec;
#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp24_ = min;
+ _tmp15_ = min;
#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp25_ = hour;
+ _tmp16_ = hour;
#line 463 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- seconds = (guint) ((_tmp23_ + (_tmp24_ * 60)) + (_tmp25_ * 3600));
-#line 3767 "VideoMetadata.c"
+ seconds = (guint) ((_tmp14_ + (_tmp15_ * 60)) + (_tmp16_ * 3600));
+#line 3791 "VideoMetadata.c"
}
#line 466 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
memset (&time, 0, sizeof (struct tm));
#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_date_to_struct_tm (&date, &_tmp26_);
+ g_date_to_struct_tm (&date, &_tmp17_);
#line 467 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- time = _tmp26_;
-#line 470 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp27_ = mktime (&time);
+ time = _tmp17_;
#line 470 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- tm = _tmp27_;
+ tm = mktime (&time);
#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp28_ = tm;
+ _tmp18_ = tm;
#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp29_ = seconds;
+ _tmp19_ = seconds;
#line 471 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _result_ = (gulong) (_tmp28_ + _tmp29_);
+ _result_ = (gulong) (_tmp18_ + _tmp19_);
#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp30_ = _result_;
+ _tmp20_ = _result_;
#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp31_ = tm;
+ _tmp21_ = tm;
#line 472 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp30_ < ((gulong) _tmp31_)) {
-#line 3791 "VideoMetadata.c"
- GFile* _tmp32_;
- gchar* _tmp33_;
- gchar* _tmp34_;
+ if (_tmp20_ < ((gulong) _tmp21_)) {
+#line 3813 "VideoMetadata.c"
+ GFile* _tmp22_;
+ gchar* _tmp23_;
+ gchar* _tmp24_;
#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp32_ = self->priv->file;
+ _tmp22_ = self->priv->file;
#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp33_ = g_file_get_path (_tmp32_);
+ _tmp23_ = g_file_get_path (_tmp22_);
#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp34_ = _tmp33_;
+ _tmp24_ = _tmp23_;
#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:473: Overflow for timestamp in video file %s", _tmp34_);
+ g_debug ("VideoMetadata.vala:473: Overflow for timestamp in video file %s", _tmp24_);
#line 473 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _g_free0 (_tmp34_);
+ _g_free0 (_tmp24_);
#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (gulong) 0;
#line 475 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3809 "VideoMetadata.c"
+#line 3831 "VideoMetadata.c"
}
#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = _result_;
#line 478 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3815 "VideoMetadata.c"
+#line 3837 "VideoMetadata.c"
}
-static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self, const gchar* s) {
+static GDateMonth
+avi_metadata_loader_month_from_string (AVIMetadataLoader* self,
+ const gchar* s)
+{
GDateMonth result = 0;
- const gchar* _tmp0_;
+ gchar* _tmp0_;
gchar* _tmp1_;
- gchar* _tmp2_;
- GQuark _tmp4_ = 0U;
+ GQuark _tmp3_ = 0U;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label0 = 0;
+ static GQuark _tmp2_label0 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label1 = 0;
+ static GQuark _tmp2_label1 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label2 = 0;
+ static GQuark _tmp2_label2 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label3 = 0;
+ static GQuark _tmp2_label3 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label4 = 0;
+ static GQuark _tmp2_label4 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label5 = 0;
+ static GQuark _tmp2_label5 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label6 = 0;
+ static GQuark _tmp2_label6 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label7 = 0;
+ static GQuark _tmp2_label7 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label8 = 0;
+ static GQuark _tmp2_label8 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label9 = 0;
+ static GQuark _tmp2_label9 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label10 = 0;
+ static GQuark _tmp2_label10 = 0;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- static GQuark _tmp3_label11 = 0;
+ static GQuark _tmp2_label11 = 0;
#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_METADATA_LOADER (self), 0);
#line 481 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (s != NULL, 0);
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = s;
-#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = g_utf8_strdown (_tmp0_, (gssize) -1);
+ _tmp0_ = g_utf8_strdown (s, (gssize) -1);
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
+ _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_free (_tmp2_);
+ g_free (_tmp1_);
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("jan")))) {
+ if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("jan")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3867 "VideoMetadata.c"
+#line 3889 "VideoMetadata.c"
default:
{
#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_JANUARY;
#line 484 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3874 "VideoMetadata.c"
+#line 3896 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("feb")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("feb")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3880 "VideoMetadata.c"
+#line 3902 "VideoMetadata.c"
default:
{
#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_FEBRUARY;
#line 486 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3887 "VideoMetadata.c"
+#line 3909 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label2) ? _tmp3_label2 : (_tmp3_label2 = g_quark_from_static_string ("mar")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("mar")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3893 "VideoMetadata.c"
+#line 3915 "VideoMetadata.c"
default:
{
#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_MARCH;
#line 488 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3900 "VideoMetadata.c"
+#line 3922 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label3) ? _tmp3_label3 : (_tmp3_label3 = g_quark_from_static_string ("apr")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("apr")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3906 "VideoMetadata.c"
+#line 3928 "VideoMetadata.c"
default:
{
#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_APRIL;
#line 490 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3913 "VideoMetadata.c"
+#line 3935 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label4) ? _tmp3_label4 : (_tmp3_label4 = g_quark_from_static_string ("may")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("may")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3919 "VideoMetadata.c"
+#line 3941 "VideoMetadata.c"
default:
{
#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_MAY;
#line 492 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3926 "VideoMetadata.c"
+#line 3948 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label5) ? _tmp3_label5 : (_tmp3_label5 = g_quark_from_static_string ("jun")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("jun")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3932 "VideoMetadata.c"
+#line 3954 "VideoMetadata.c"
default:
{
#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_JUNE;
#line 494 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3939 "VideoMetadata.c"
+#line 3961 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label6) ? _tmp3_label6 : (_tmp3_label6 = g_quark_from_static_string ("jul")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label6) ? _tmp2_label6 : (_tmp2_label6 = g_quark_from_static_string ("jul")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3945 "VideoMetadata.c"
+#line 3967 "VideoMetadata.c"
default:
{
#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_JULY;
#line 496 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3952 "VideoMetadata.c"
+#line 3974 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label7) ? _tmp3_label7 : (_tmp3_label7 = g_quark_from_static_string ("aug")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label7) ? _tmp2_label7 : (_tmp2_label7 = g_quark_from_static_string ("aug")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3958 "VideoMetadata.c"
+#line 3980 "VideoMetadata.c"
default:
{
#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_AUGUST;
#line 498 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3965 "VideoMetadata.c"
+#line 3987 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label8) ? _tmp3_label8 : (_tmp3_label8 = g_quark_from_static_string ("sep")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label8) ? _tmp2_label8 : (_tmp2_label8 = g_quark_from_static_string ("sep")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3971 "VideoMetadata.c"
+#line 3993 "VideoMetadata.c"
default:
{
#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_SEPTEMBER;
#line 500 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3978 "VideoMetadata.c"
+#line 4000 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label9) ? _tmp3_label9 : (_tmp3_label9 = g_quark_from_static_string ("oct")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label9) ? _tmp2_label9 : (_tmp2_label9 = g_quark_from_static_string ("oct")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3984 "VideoMetadata.c"
+#line 4006 "VideoMetadata.c"
default:
{
#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_OCTOBER;
#line 502 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 3991 "VideoMetadata.c"
+#line 4013 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label10) ? _tmp3_label10 : (_tmp3_label10 = g_quark_from_static_string ("nov")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label10) ? _tmp2_label10 : (_tmp2_label10 = g_quark_from_static_string ("nov")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 3997 "VideoMetadata.c"
+#line 4019 "VideoMetadata.c"
default:
{
#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_NOVEMBER;
#line 504 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4004 "VideoMetadata.c"
+#line 4026 "VideoMetadata.c"
}
}
- } else if (_tmp4_ == ((0 != _tmp3_label11) ? _tmp3_label11 : (_tmp3_label11 = g_quark_from_static_string ("dec")))) {
+ } else if (_tmp3_ == ((0 != _tmp2_label11) ? _tmp2_label11 : (_tmp2_label11 = g_quark_from_static_string ("dec")))) {
#line 482 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
switch (0) {
-#line 4010 "VideoMetadata.c"
+#line 4032 "VideoMetadata.c"
default:
{
#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = G_DATE_DECEMBER;
#line 506 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4017 "VideoMetadata.c"
+#line 4039 "VideoMetadata.c"
}
}
}
@@ -4022,34 +4044,38 @@ static GDateMonth avi_metadata_loader_month_from_string (AVIMetadataLoader* self
result = G_DATE_BAD_MONTH;
#line 508 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4025 "VideoMetadata.c"
+#line 4047 "VideoMetadata.c"
}
-static gchar* string_strip (const gchar* self) {
+static gchar*
+string_strip (const gchar* self)
+{
gchar* result = NULL;
gchar* _result_ = NULL;
gchar* _tmp0_;
const gchar* _tmp1_;
-#line 1234 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1248 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp0_ = g_strdup (self);
-#line 1235 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1249 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_result_ = _tmp0_;
-#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
_tmp1_ = _result_;
-#line 1236 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1250 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
g_strstrip (_tmp1_);
-#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
result = _result_;
-#line 1237 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
+#line 1251 "/usr/share/vala-0.40/vapi/glib-2.0.vapi"
return result;
-#line 4048 "VideoMetadata.c"
+#line 4072 "VideoMetadata.c"
}
-static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self) {
+static gulong
+avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoader* self)
+{
gulong result = 0UL;
AVIChunk* chunk = NULL;
GFile* _tmp0_;
@@ -4066,7 +4092,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
chunk = _tmp1_;
#line 513 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
timestamp = (gulong) 0;
-#line 4069 "VideoMetadata.c"
+#line 4095 "VideoMetadata.c"
{
AVIChunk* _tmp2_;
AVIChunk* _tmp3_;
@@ -4080,7 +4106,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
avi_chunk_open_file (_tmp2_, &_inner_error_);
#line 515 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4083 "VideoMetadata.c"
+#line 4109 "VideoMetadata.c"
goto __catch592_g_error;
}
#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4089,7 +4115,7 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
avi_chunk_nonsection_skip (_tmp3_, (guint64) 12, &_inner_error_);
#line 516 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4092 "VideoMetadata.c"
+#line 4118 "VideoMetadata.c"
goto __catch592_g_error;
}
#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4100,18 +4126,17 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
sdate = _tmp5_;
#line 517 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4103 "VideoMetadata.c"
+#line 4129 "VideoMetadata.c"
goto __catch592_g_error;
}
#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp6_ = sdate;
#line 518 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (NULL != _tmp6_) {
-#line 4110 "VideoMetadata.c"
+#line 4136 "VideoMetadata.c"
const gchar* _tmp7_;
gchar* _tmp8_;
gchar* _tmp9_;
- gulong _tmp10_;
#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp7_ = sdate;
#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4119,42 +4144,40 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp9_ = _tmp8_;
#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = avi_metadata_loader_parse_date (self, _tmp9_);
-#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- timestamp = _tmp10_;
+ timestamp = avi_metadata_loader_parse_date (self, _tmp9_);
#line 519 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (_tmp9_);
-#line 4127 "VideoMetadata.c"
+#line 4150 "VideoMetadata.c"
}
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (sdate);
-#line 4131 "VideoMetadata.c"
+#line 4154 "VideoMetadata.c"
}
goto __finally592;
__catch592_g_error:
{
GError* e = NULL;
- GError* _tmp11_;
- const gchar* _tmp12_;
+ GError* _tmp10_;
+ const gchar* _tmp11_;
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = e;
+ _tmp10_ = e;
#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = _tmp11_->message;
+ _tmp11_ = _tmp10_->message;
#line 522 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:522: Error while reading AVI file: %s", _tmp12_);
+ g_debug ("VideoMetadata.vala:522: Error while reading AVI file: %s", _tmp11_);
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 4151 "VideoMetadata.c"
+#line 4174 "VideoMetadata.c"
}
__finally592:
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4156 "VideoMetadata.c"
- gulong _tmp13_ = 0UL;
+#line 4179 "VideoMetadata.c"
+ gulong _tmp12_ = 0UL;
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (chunk);
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4162,18 +4185,18 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 514 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp13_;
-#line 4166 "VideoMetadata.c"
+ return _tmp12_;
+#line 4189 "VideoMetadata.c"
}
{
- AVIChunk* _tmp14_;
+ AVIChunk* _tmp13_;
#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = chunk;
+ _tmp13_ = chunk;
#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_close_file (_tmp14_, &_inner_error_);
+ avi_chunk_close_file (_tmp13_, &_inner_error_);
#line 526 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4176 "VideoMetadata.c"
+#line 4199 "VideoMetadata.c"
goto __catch593_g_error;
}
}
@@ -4181,27 +4204,27 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
__catch593_g_error:
{
GError* e = NULL;
- GError* _tmp15_;
- const gchar* _tmp16_;
+ GError* _tmp14_;
+ const gchar* _tmp15_;
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
e = _inner_error_;
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_inner_error_ = NULL;
#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = e;
+ _tmp14_ = e;
#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = _tmp15_->message;
+ _tmp15_ = _tmp14_->message;
#line 528 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_debug ("VideoMetadata.vala:528: Error while closing AVI file: %s", _tmp16_);
+ g_debug ("VideoMetadata.vala:528: Error while closing AVI file: %s", _tmp15_);
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_error_free0 (e);
-#line 4198 "VideoMetadata.c"
+#line 4221 "VideoMetadata.c"
}
__finally593:
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4203 "VideoMetadata.c"
- gulong _tmp17_ = 0UL;
+#line 4226 "VideoMetadata.c"
+ gulong _tmp16_ = 0UL;
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (chunk);
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4209,8 +4232,8 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_clear_error (&_inner_error_);
#line 525 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp17_;
-#line 4213 "VideoMetadata.c"
+ return _tmp16_;
+#line 4236 "VideoMetadata.c"
}
#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = timestamp;
@@ -4218,108 +4241,133 @@ static gulong avi_metadata_loader_get_creation_date_time_for_avi (AVIMetadataLoa
_avi_chunk_unref0 (chunk);
#line 530 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4221 "VideoMetadata.c"
+#line 4244 "VideoMetadata.c"
}
-static void value_avi_metadata_loader_init (GValue* value) {
+static void
+value_avi_metadata_loader_init (GValue* value)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 4228 "VideoMetadata.c"
+#line 4253 "VideoMetadata.c"
}
-static void value_avi_metadata_loader_free_value (GValue* value) {
+static void
+value_avi_metadata_loader_free_value (GValue* value)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (value->data[0].v_pointer) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_metadata_loader_unref (value->data[0].v_pointer);
-#line 4237 "VideoMetadata.c"
+#line 4264 "VideoMetadata.c"
}
}
-static void value_avi_metadata_loader_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_avi_metadata_loader_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = avi_metadata_loader_ref (src_value->data[0].v_pointer);
-#line 4247 "VideoMetadata.c"
+#line 4277 "VideoMetadata.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4251 "VideoMetadata.c"
+#line 4281 "VideoMetadata.c"
}
}
-static gpointer value_avi_metadata_loader_peek_pointer (const GValue* value) {
+static gpointer
+value_avi_metadata_loader_peek_pointer (const GValue* value)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 4259 "VideoMetadata.c"
+#line 4291 "VideoMetadata.c"
}
-static gchar* value_avi_metadata_loader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_avi_metadata_loader_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 4266 "VideoMetadata.c"
+#line 4303 "VideoMetadata.c"
AVIMetadataLoader * object;
object = collect_values[0].v_pointer;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4273 "VideoMetadata.c"
+#line 4310 "VideoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 4277 "VideoMetadata.c"
+#line 4314 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = avi_metadata_loader_ref (object);
-#line 4281 "VideoMetadata.c"
+#line 4318 "VideoMetadata.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 4285 "VideoMetadata.c"
+#line 4322 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 4289 "VideoMetadata.c"
+#line 4326 "VideoMetadata.c"
}
-static gchar* value_avi_metadata_loader_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_avi_metadata_loader_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
AVIMetadataLoader ** object_p;
object_p = collect_values[0].v_pointer;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!object_p) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 4300 "VideoMetadata.c"
+#line 4342 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = NULL;
-#line 4306 "VideoMetadata.c"
+#line 4348 "VideoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 4310 "VideoMetadata.c"
+#line 4352 "VideoMetadata.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = avi_metadata_loader_ref (value->data[0].v_pointer);
-#line 4314 "VideoMetadata.c"
+#line 4356 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 4318 "VideoMetadata.c"
+#line 4360 "VideoMetadata.c"
}
-GParamSpec* param_spec_avi_metadata_loader (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_avi_metadata_loader (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecAVIMetadataLoader* spec;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_METADATA_LOADER), NULL);
@@ -4329,20 +4377,25 @@ GParamSpec* param_spec_avi_metadata_loader (const gchar* name, const gchar* nick
G_PARAM_SPEC (spec)->value_type = object_type;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 4332 "VideoMetadata.c"
+#line 4380 "VideoMetadata.c"
}
-gpointer value_get_avi_metadata_loader (const GValue* value) {
+gpointer
+value_get_avi_metadata_loader (const GValue* value)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER), NULL);
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 4341 "VideoMetadata.c"
+#line 4391 "VideoMetadata.c"
}
-void value_set_avi_metadata_loader (GValue* value, gpointer v_object) {
+void
+value_set_avi_metadata_loader (GValue* value,
+ gpointer v_object)
+{
AVIMetadataLoader * old;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER));
@@ -4358,22 +4411,25 @@ void value_set_avi_metadata_loader (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_metadata_loader_ref (value->data[0].v_pointer);
-#line 4361 "VideoMetadata.c"
+#line 4414 "VideoMetadata.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 4365 "VideoMetadata.c"
+#line 4418 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_metadata_loader_unref (old);
-#line 4371 "VideoMetadata.c"
+#line 4424 "VideoMetadata.c"
}
}
-void value_take_avi_metadata_loader (GValue* value, gpointer v_object) {
+void
+value_take_avi_metadata_loader (GValue* value,
+ gpointer v_object)
+{
AVIMetadataLoader * old;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_METADATA_LOADER));
@@ -4387,44 +4443,50 @@ void value_take_avi_metadata_loader (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 4390 "VideoMetadata.c"
+#line 4446 "VideoMetadata.c"
} else {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 4394 "VideoMetadata.c"
+#line 4450 "VideoMetadata.c"
}
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_metadata_loader_unref (old);
-#line 4400 "VideoMetadata.c"
+#line 4456 "VideoMetadata.c"
}
}
-static void avi_metadata_loader_class_init (AVIMetadataLoaderClass * klass) {
+static void
+avi_metadata_loader_class_init (AVIMetadataLoaderClass * klass)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_metadata_loader_parent_class = g_type_class_peek_parent (klass);
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
((AVIMetadataLoaderClass *) klass)->finalize = avi_metadata_loader_finalize;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_class_add_private (klass, sizeof (AVIMetadataLoaderPrivate));
-#line 4412 "VideoMetadata.c"
+#line 4470 "VideoMetadata.c"
}
-static void avi_metadata_loader_instance_init (AVIMetadataLoader * self) {
+static void
+avi_metadata_loader_instance_init (AVIMetadataLoader * self)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv = AVI_METADATA_LOADER_GET_PRIVATE (self);
#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->file = NULL;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->ref_count = 1;
-#line 4423 "VideoMetadata.c"
+#line 4483 "VideoMetadata.c"
}
-static void avi_metadata_loader_finalize (AVIMetadataLoader * obj) {
+static void
+avi_metadata_loader_finalize (AVIMetadataLoader * obj)
+{
AVIMetadataLoader * self;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_METADATA_LOADER, AVIMetadataLoader);
@@ -4432,11 +4494,13 @@ static void avi_metadata_loader_finalize (AVIMetadataLoader * obj) {
g_signal_handlers_destroy (self);
#line 294 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
-#line 4435 "VideoMetadata.c"
+#line 4497 "VideoMetadata.c"
}
-GType avi_metadata_loader_get_type (void) {
+GType
+avi_metadata_loader_get_type (void)
+{
static volatile gsize avi_metadata_loader_type_id__volatile = 0;
if (g_once_init_enter (&avi_metadata_loader_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_avi_metadata_loader_init, value_avi_metadata_loader_free_value, value_avi_metadata_loader_copy_value, value_avi_metadata_loader_peek_pointer, "p", value_avi_metadata_loader_collect_value, "p", value_avi_metadata_loader_lcopy_value };
@@ -4450,18 +4514,22 @@ GType avi_metadata_loader_get_type (void) {
}
-gpointer avi_metadata_loader_ref (gpointer instance) {
+gpointer
+avi_metadata_loader_ref (gpointer instance)
+{
AVIMetadataLoader * self;
self = instance;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return instance;
-#line 4460 "VideoMetadata.c"
+#line 4526 "VideoMetadata.c"
}
-void avi_metadata_loader_unref (gpointer instance) {
+void
+avi_metadata_loader_unref (gpointer instance)
+{
AVIMetadataLoader * self;
self = instance;
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4470,53 +4538,59 @@ void avi_metadata_loader_unref (gpointer instance) {
AVI_METADATA_LOADER_GET_CLASS (self)->finalize (self);
#line 292 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 4473 "VideoMetadata.c"
+#line 4541 "VideoMetadata.c"
}
}
-AVIChunk* avi_chunk_construct (GType object_type, GFile* file) {
+AVIChunk*
+avi_chunk_construct (GType object_type,
+ GFile* file)
+{
AVIChunk* self = NULL;
GFile* _tmp0_;
- GFile* _tmp1_;
#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (AVIChunk*) g_type_create_instance (object_type);
#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = file;
-#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (file);
#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->file);
#line 544 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->file = _tmp1_;
+ self->priv->file = _tmp0_;
#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 4496 "VideoMetadata.c"
+#line 4564 "VideoMetadata.c"
}
-AVIChunk* avi_chunk_new (GFile* file) {
+AVIChunk*
+avi_chunk_new (GFile* file)
+{
#line 543 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return avi_chunk_construct (TYPE_AVI_CHUNK, file);
-#line 4503 "VideoMetadata.c"
+#line 4573 "VideoMetadata.c"
}
-static gpointer _avi_chunk_ref0 (gpointer self) {
+static gpointer
+_avi_chunk_ref0 (gpointer self)
+{
#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self ? avi_chunk_ref (self) : NULL;
-#line 4510 "VideoMetadata.c"
+#line 4582 "VideoMetadata.c"
}
-static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type, GDataInputStream* input, AVIChunk* parent) {
+static AVIChunk*
+avi_chunk_construct_with_input_stream (GType object_type,
+ GDataInputStream* input,
+ AVIChunk* parent)
+{
AVIChunk* self = NULL;
GDataInputStream* _tmp0_;
- GDataInputStream* _tmp1_;
- AVIChunk* _tmp2_;
- AVIChunk* _tmp3_;
+ AVIChunk* _tmp1_;
#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_IS_DATA_INPUT_STREAM (input), NULL);
#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4524,35 +4598,37 @@ static AVIChunk* avi_chunk_construct_with_input_stream (GType object_type, GData
#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = (AVIChunk*) g_type_create_instance (object_type);
#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = input;
-#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _g_object_ref0 (_tmp0_);
+ _tmp0_ = _g_object_ref0 (input);
#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->input);
#line 548 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->input = _tmp1_;
-#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = parent;
+ self->priv->input = _tmp0_;
#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = _avi_chunk_ref0 (_tmp2_);
+ _tmp1_ = _avi_chunk_ref0 (parent);
#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (self->priv->parent);
#line 549 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->parent = _tmp3_;
+ self->priv->parent = _tmp1_;
#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return self;
-#line 4544 "VideoMetadata.c"
+#line 4614 "VideoMetadata.c"
}
-static AVIChunk* avi_chunk_new_with_input_stream (GDataInputStream* input, AVIChunk* parent) {
+static AVIChunk*
+avi_chunk_new_with_input_stream (GDataInputStream* input,
+ AVIChunk* parent)
+{
#line 547 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return avi_chunk_construct_with_input_stream (TYPE_AVI_CHUNK, input, parent);
-#line 4551 "VideoMetadata.c"
+#line 4624 "VideoMetadata.c"
}
-void avi_chunk_open_file (AVIChunk* self, GError** error) {
+void
+avi_chunk_open_file (AVIChunk* self,
+ GError** error)
+{
GFileInputStream* _tmp0_ = NULL;
GFile* _tmp1_;
GFileInputStream* _tmp2_;
@@ -4570,7 +4646,7 @@ void avi_chunk_open_file (AVIChunk* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 553 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4573 "VideoMetadata.c"
+#line 4649 "VideoMetadata.c"
}
#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->file;
@@ -4584,7 +4660,7 @@ void avi_chunk_open_file (AVIChunk* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4587 "VideoMetadata.c"
+#line 4663 "VideoMetadata.c"
}
#line 554 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp3_ = g_data_input_stream_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream));
@@ -4608,11 +4684,14 @@ void avi_chunk_open_file (AVIChunk* self, GError** error) {
self->priv->section_name = _tmp5_;
#line 552 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (_tmp0_);
-#line 4611 "VideoMetadata.c"
+#line 4687 "VideoMetadata.c"
}
-void avi_chunk_close_file (AVIChunk* self, GError** error) {
+void
+avi_chunk_close_file (AVIChunk* self,
+ GError** error)
+{
GDataInputStream* _tmp0_;
GError * _inner_error_ = NULL;
#line 561 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4621,7 +4700,7 @@ void avi_chunk_close_file (AVIChunk* self, GError** error) {
_tmp0_ = self->priv->input;
#line 562 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (NULL != _tmp0_) {
-#line 4624 "VideoMetadata.c"
+#line 4703 "VideoMetadata.c"
GDataInputStream* _tmp1_;
#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
@@ -4633,69 +4712,70 @@ void avi_chunk_close_file (AVIChunk* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 563 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4636 "VideoMetadata.c"
+#line 4715 "VideoMetadata.c"
}
#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_object_unref0 (self->priv->input);
#line 564 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->input = NULL;
-#line 4642 "VideoMetadata.c"
+#line 4721 "VideoMetadata.c"
}
}
-void avi_chunk_nonsection_skip (AVIChunk* self, guint64 skip_amount, GError** error) {
+void
+avi_chunk_nonsection_skip (AVIChunk* self,
+ guint64 skip_amount,
+ GError** error)
+{
GDataInputStream* _tmp0_;
- guint64 _tmp1_;
GError * _inner_error_ = NULL;
#line 568 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_AVI_CHUNK (self));
#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp0_ = self->priv->input;
#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = skip_amount;
-#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), _tmp1_, &_inner_error_);
+ skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_);
#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 569 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4665 "VideoMetadata.c"
+#line 4745 "VideoMetadata.c"
}
}
-void avi_chunk_skip (AVIChunk* self, guint64 skip_amount, GError** error) {
- guint64 _tmp0_;
- GDataInputStream* _tmp1_;
- guint64 _tmp2_;
+void
+avi_chunk_skip (AVIChunk* self,
+ guint64 skip_amount,
+ GError** error)
+{
+ GDataInputStream* _tmp0_;
GError * _inner_error_ = NULL;
#line 572 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_AVI_CHUNK (self));
#line 573 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = skip_amount;
-#line 573 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (self, _tmp0_);
+ avi_chunk_advance_section_offset (self, skip_amount);
#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = self->priv->input;
-#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = skip_amount;
+ _tmp0_ = self->priv->input;
#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, g_input_stream_get_type (), GInputStream), _tmp2_, &_inner_error_);
+ skip_uint64 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, g_input_stream_get_type (), GInputStream), skip_amount, &_inner_error_);
#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 574 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4693 "VideoMetadata.c"
+#line 4771 "VideoMetadata.c"
}
}
-AVIChunk* avi_chunk_get_first_child_chunk (AVIChunk* self) {
+AVIChunk*
+avi_chunk_get_first_child_chunk (AVIChunk* self)
+{
AVIChunk* result = NULL;
GDataInputStream* _tmp0_;
AVIChunk* _tmp1_;
@@ -4709,67 +4789,63 @@ AVIChunk* avi_chunk_get_first_child_chunk (AVIChunk* self) {
result = _tmp1_;
#line 578 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4712 "VideoMetadata.c"
+#line 4792 "VideoMetadata.c"
}
-static void avi_chunk_advance_section_offset (AVIChunk* self, guint64 amount) {
+static void
+avi_chunk_advance_section_offset (AVIChunk* self,
+ guint64 amount)
+{
guint64 _tmp0_;
guint64 _tmp1_;
- guint64 _tmp2_;
- guint64 _tmp5_;
- guint64 _tmp6_;
- AVIChunk* _tmp7_;
+ guint64 _tmp4_;
+ AVIChunk* _tmp5_;
#line 581 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_AVI_CHUNK (self));
#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp0_ = self->priv->section_offset;
#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = amount;
-#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = self->priv->section_size;
+ _tmp1_ = self->priv->section_size;
#line 582 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if ((_tmp0_ + _tmp1_) > _tmp2_) {
-#line 4733 "VideoMetadata.c"
+ if ((_tmp0_ + amount) > _tmp1_) {
+#line 4812 "VideoMetadata.c"
+ guint64 _tmp2_;
guint64 _tmp3_;
- guint64 _tmp4_;
#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = self->priv->section_size;
+ _tmp2_ = self->priv->section_size;
#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = self->priv->section_offset;
+ _tmp3_ = self->priv->section_offset;
#line 583 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- amount = _tmp3_ - _tmp4_;
-#line 4742 "VideoMetadata.c"
+ amount = _tmp2_ - _tmp3_;
+#line 4821 "VideoMetadata.c"
}
#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = self->priv->section_offset;
+ _tmp4_ = self->priv->section_offset;
#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = amount;
-#line 585 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_offset = _tmp5_ + _tmp6_;
+ self->priv->section_offset = _tmp4_ + amount;
#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = self->priv->parent;
+ _tmp5_ = self->priv->parent;
#line 586 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (NULL != _tmp7_) {
-#line 4754 "VideoMetadata.c"
- AVIChunk* _tmp8_;
- guint64 _tmp9_;
-#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = self->priv->parent;
+ if (NULL != _tmp5_) {
+#line 4831 "VideoMetadata.c"
+ AVIChunk* _tmp6_;
#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = amount;
+ _tmp6_ = self->priv->parent;
#line 587 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_advance_section_offset (_tmp8_, _tmp9_);
-#line 4763 "VideoMetadata.c"
+ avi_chunk_advance_section_offset (_tmp6_, amount);
+#line 4837 "VideoMetadata.c"
}
}
-guchar avi_chunk_read_byte (AVIChunk* self, GError** error) {
+guchar
+avi_chunk_read_byte (AVIChunk* self,
+ GError** error)
+{
guchar result = '\0';
guint8 _tmp0_ = 0U;
GDataInputStream* _tmp1_;
- guint8 _tmp2_;
GError * _inner_error_ = NULL;
#line 591 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_CHUNK (self), '\0');
@@ -4778,32 +4854,32 @@ guchar avi_chunk_read_byte (AVIChunk* self, GError** error) {
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
-#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
+ _tmp0_ = g_data_input_stream_read_byte (_tmp1_, NULL, &_inner_error_);
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4786 "VideoMetadata.c"
- guchar _tmp3_ = '\0';
+#line 4860 "VideoMetadata.c"
+ guchar _tmp2_ = '\0';
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp3_;
-#line 4792 "VideoMetadata.c"
+ return _tmp2_;
+#line 4866 "VideoMetadata.c"
}
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = (guchar) _tmp0_;
#line 593 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4798 "VideoMetadata.c"
+#line 4872 "VideoMetadata.c"
}
-guint16 avi_chunk_read_uint16 (AVIChunk* self, GError** error) {
+guint16
+avi_chunk_read_uint16 (AVIChunk* self,
+ GError** error)
+{
guint16 result = 0U;
guint16 _tmp0_ = 0U;
GDataInputStream* _tmp1_;
- guint16 _tmp2_;
GError * _inner_error_ = NULL;
#line 596 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_CHUNK (self), 0U);
@@ -4812,52 +4888,48 @@ guint16 avi_chunk_read_uint16 (AVIChunk* self, GError** error) {
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->input;
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = g_data_input_stream_read_uint16 (_tmp1_, NULL, &_inner_error_);
-#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = _tmp2_;
+ _tmp0_ = g_data_input_stream_read_uint16 (_tmp1_, NULL, &_inner_error_);
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 4820 "VideoMetadata.c"
- guint16 _tmp3_ = 0U;
+#line 4894 "VideoMetadata.c"
+ guint16 _tmp2_ = 0U;
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- return _tmp3_;
-#line 4826 "VideoMetadata.c"
+ return _tmp2_;
+#line 4900 "VideoMetadata.c"
}
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
result = _tmp0_;
#line 598 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 4832 "VideoMetadata.c"
+#line 4906 "VideoMetadata.c"
}
-void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
+void
+avi_chunk_read_chunk (AVIChunk* self,
+ GError** error)
+{
GString* sb = NULL;
GString* _tmp0_;
guint8 _tmp1_ = 0U;
GDataInputStream* _tmp2_;
- guint8 _tmp3_;
- GString* _tmp4_;
- guint8 _tmp5_ = 0U;
- GDataInputStream* _tmp6_;
- guint8 _tmp7_;
- GString* _tmp8_;
- guint8 _tmp9_ = 0U;
- GDataInputStream* _tmp10_;
- guint8 _tmp11_;
+ GString* _tmp3_;
+ guint8 _tmp4_ = 0U;
+ GDataInputStream* _tmp5_;
+ GString* _tmp6_;
+ guint8 _tmp7_ = 0U;
+ GDataInputStream* _tmp8_;
+ GString* _tmp9_;
+ guint8 _tmp10_ = 0U;
+ GDataInputStream* _tmp11_;
GString* _tmp12_;
- guint8 _tmp13_ = 0U;
- GDataInputStream* _tmp14_;
- guint8 _tmp15_;
- GString* _tmp16_;
- GString* _tmp17_;
- const gchar* _tmp18_;
- gchar* _tmp19_;
- guint32 _tmp20_ = 0U;
- GDataInputStream* _tmp21_;
- guint32 _tmp22_;
+ GString* _tmp13_;
+ const gchar* _tmp14_;
+ gchar* _tmp15_;
+ guint32 _tmp16_ = 0U;
+ GDataInputStream* _tmp17_;
GError * _inner_error_ = NULL;
#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_AVI_CHUNK (self));
@@ -4868,9 +4940,7 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp2_ = self->priv->input;
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = g_data_input_stream_read_byte (_tmp2_, NULL, &_inner_error_);
-#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _tmp3_;
+ _tmp1_ = g_data_input_stream_read_byte (_tmp2_, NULL, &_inner_error_);
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4879,18 +4949,16 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4882 "VideoMetadata.c"
+#line 4952 "VideoMetadata.c"
}
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = sb;
+ _tmp3_ = sb;
#line 605 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp4_, (gchar) _tmp1_);
-#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = self->priv->input;
+ g_string_append_c (_tmp3_, (gchar) _tmp1_);
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = g_data_input_stream_read_byte (_tmp6_, NULL, &_inner_error_);
+ _tmp5_ = self->priv->input;
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = _tmp7_;
+ _tmp4_ = g_data_input_stream_read_byte (_tmp5_, NULL, &_inner_error_);
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4899,18 +4967,16 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4902 "VideoMetadata.c"
+#line 4970 "VideoMetadata.c"
}
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = sb;
+ _tmp6_ = sb;
#line 606 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp8_, (gchar) _tmp5_);
-#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = self->priv->input;
+ g_string_append_c (_tmp6_, (gchar) _tmp4_);
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = g_data_input_stream_read_byte (_tmp10_, NULL, &_inner_error_);
+ _tmp8_ = self->priv->input;
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp11_;
+ _tmp7_ = g_data_input_stream_read_byte (_tmp8_, NULL, &_inner_error_);
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4919,18 +4985,16 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4922 "VideoMetadata.c"
+#line 4988 "VideoMetadata.c"
}
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = sb;
+ _tmp9_ = sb;
#line 607 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp12_, (gchar) _tmp9_);
-#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = self->priv->input;
+ g_string_append_c (_tmp9_, (gchar) _tmp7_);
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = g_data_input_stream_read_byte (_tmp14_, NULL, &_inner_error_);
+ _tmp11_ = self->priv->input;
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = _tmp15_;
+ _tmp10_ = g_data_input_stream_read_byte (_tmp11_, NULL, &_inner_error_);
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4939,28 +5003,26 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4942 "VideoMetadata.c"
+#line 5006 "VideoMetadata.c"
}
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp16_ = sb;
+ _tmp12_ = sb;
#line 608 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp16_, (gchar) _tmp13_);
+ g_string_append_c (_tmp12_, (gchar) _tmp10_);
#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp17_ = sb;
+ _tmp13_ = sb;
#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp18_ = _tmp17_->str;
+ _tmp14_ = _tmp13_->str;
#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp19_ = g_strdup (_tmp18_);
+ _tmp15_ = g_strdup (_tmp14_);
#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_free0 (self->priv->section_name);
#line 609 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_name = _tmp19_;
-#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp21_ = self->priv->input;
+ self->priv->section_name = _tmp15_;
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp22_ = g_data_input_stream_read_uint32 (_tmp21_, NULL, &_inner_error_);
+ _tmp17_ = self->priv->input;
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp20_ = _tmp22_;
+ _tmp16_ = g_data_input_stream_read_uint32 (_tmp17_, NULL, &_inner_error_);
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -4969,37 +5031,36 @@ void avi_chunk_read_chunk (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 4972 "VideoMetadata.c"
+#line 5034 "VideoMetadata.c"
}
#line 610 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- self->priv->section_size = (guint64) _tmp20_;
+ self->priv->section_size = (guint64) _tmp16_;
#line 611 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_offset = (guint64) 0;
#line 601 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
-#line 4980 "VideoMetadata.c"
+#line 5042 "VideoMetadata.c"
}
-gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
+gchar*
+avi_chunk_read_name (AVIChunk* self,
+ GError** error)
+{
gchar* result = NULL;
GString* sb = NULL;
GString* _tmp0_;
guchar _tmp1_ = '\0';
- guchar _tmp2_;
- GString* _tmp3_;
- guchar _tmp4_ = '\0';
- guchar _tmp5_;
+ GString* _tmp2_;
+ guchar _tmp3_ = '\0';
+ GString* _tmp4_;
+ guchar _tmp5_ = '\0';
GString* _tmp6_;
guchar _tmp7_ = '\0';
- guchar _tmp8_;
+ GString* _tmp8_;
GString* _tmp9_;
- guchar _tmp10_ = '\0';
- guchar _tmp11_;
- GString* _tmp12_;
- GString* _tmp13_;
- const gchar* _tmp14_;
- gchar* _tmp15_;
+ const gchar* _tmp10_;
+ gchar* _tmp11_;
GError * _inner_error_ = NULL;
#line 614 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
@@ -5008,9 +5069,7 @@ gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
#line 615 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
sb = _tmp0_;
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp2_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp1_ = _tmp2_;
+ _tmp1_ = avi_chunk_read_byte (self, &_inner_error_);
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5019,16 +5078,14 @@ gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5022 "VideoMetadata.c"
+#line 5081 "VideoMetadata.c"
}
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = sb;
+ _tmp2_ = sb;
#line 616 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp3_, (gchar) _tmp1_);
+ g_string_append_c (_tmp2_, (gchar) _tmp1_);
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = _tmp5_;
+ _tmp3_ = avi_chunk_read_byte (self, &_inner_error_);
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5037,16 +5094,14 @@ gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5040 "VideoMetadata.c"
+#line 5097 "VideoMetadata.c"
}
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sb;
+ _tmp4_ = sb;
#line 617 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp6_, (gchar) _tmp4_);
-#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = avi_chunk_read_byte (self, &_inner_error_);
+ g_string_append_c (_tmp4_, (gchar) _tmp3_);
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = _tmp8_;
+ _tmp5_ = avi_chunk_read_byte (self, &_inner_error_);
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5055,16 +5110,14 @@ gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5058 "VideoMetadata.c"
+#line 5113 "VideoMetadata.c"
}
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = sb;
+ _tmp6_ = sb;
#line 618 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp9_, (gchar) _tmp7_);
-#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = avi_chunk_read_byte (self, &_inner_error_);
+ g_string_append_c (_tmp6_, (gchar) _tmp5_);
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = _tmp11_;
+ _tmp7_ = avi_chunk_read_byte (self, &_inner_error_);
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5073,54 +5126,56 @@ gchar* avi_chunk_read_name (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5076 "VideoMetadata.c"
+#line 5129 "VideoMetadata.c"
}
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = sb;
+ _tmp8_ = sb;
#line 619 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp12_, (gchar) _tmp10_);
+ g_string_append_c (_tmp8_, (gchar) _tmp7_);
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = sb;
+ _tmp9_ = sb;
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp14_ = _tmp13_->str;
+ _tmp10_ = _tmp9_->str;
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp15_ = g_strdup (_tmp14_);
+ _tmp11_ = g_strdup (_tmp10_);
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp15_;
+ result = _tmp11_;
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 620 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5094 "VideoMetadata.c"
+#line 5147 "VideoMetadata.c"
}
-void avi_chunk_next_chunk (AVIChunk* self, GError** error) {
- guint64 _tmp0_;
+void
+avi_chunk_next_chunk (AVIChunk* self,
+ GError** error)
+{
GError * _inner_error_ = NULL;
#line 623 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (IS_AVI_CHUNK (self));
#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp0_ = avi_chunk_section_size_remaining (self);
-#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- avi_chunk_skip (self, _tmp0_, &_inner_error_);
+ avi_chunk_skip (self, avi_chunk_section_size_remaining (self), &_inner_error_);
#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_propagate_error (error, _inner_error_);
#line 624 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return;
-#line 5113 "VideoMetadata.c"
+#line 5166 "VideoMetadata.c"
}
#line 625 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_size = (guint64) 0;
#line 626 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv->section_offset = (guint64) 0;
-#line 5119 "VideoMetadata.c"
+#line 5172 "VideoMetadata.c"
}
-gchar* avi_chunk_get_current_chunk_name (AVIChunk* self) {
+gchar*
+avi_chunk_get_current_chunk_name (AVIChunk* self)
+{
gchar* result = NULL;
const gchar* _tmp0_;
gchar* _tmp1_;
@@ -5134,11 +5189,13 @@ gchar* avi_chunk_get_current_chunk_name (AVIChunk* self) {
result = _tmp1_;
#line 630 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5137 "VideoMetadata.c"
+#line 5192 "VideoMetadata.c"
}
-gboolean avi_chunk_is_last_chunk (AVIChunk* self) {
+gboolean
+avi_chunk_is_last_chunk (AVIChunk* self)
+{
gboolean result = FALSE;
guint64 _tmp0_;
#line 633 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5149,11 +5206,13 @@ gboolean avi_chunk_is_last_chunk (AVIChunk* self) {
result = _tmp0_ == ((guint64) 0);
#line 634 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5152 "VideoMetadata.c"
+#line 5209 "VideoMetadata.c"
}
-guint64 avi_chunk_section_size_remaining (AVIChunk* self) {
+guint64
+avi_chunk_section_size_remaining (AVIChunk* self)
+{
guint64 result = 0ULL;
guint64 _tmp0_;
guint64 _tmp1_;
@@ -5175,17 +5234,20 @@ guint64 avi_chunk_section_size_remaining (AVIChunk* self) {
result = _tmp2_ - _tmp3_;
#line 639 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5178 "VideoMetadata.c"
+#line 5237 "VideoMetadata.c"
}
-gchar* avi_chunk_section_to_string (AVIChunk* self, GError** error) {
+gchar*
+avi_chunk_section_to_string (AVIChunk* self,
+ GError** error)
+{
gchar* result = NULL;
GString* sb = NULL;
GString* _tmp0_;
- GString* _tmp11_;
- const gchar* _tmp12_;
- gchar* _tmp13_;
+ GString* _tmp10_;
+ const gchar* _tmp11_;
+ gchar* _tmp12_;
GError * _inner_error_ = NULL;
#line 643 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (IS_AVI_CHUNK (self), NULL);
@@ -5195,14 +5257,13 @@ gchar* avi_chunk_section_to_string (AVIChunk* self, GError** error) {
sb = _tmp0_;
#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
while (TRUE) {
-#line 5198 "VideoMetadata.c"
+#line 5260 "VideoMetadata.c"
guint64 _tmp1_;
guint64 _tmp2_;
guchar _tmp3_ = '\0';
- guchar _tmp4_;
+ GString* _tmp4_;
GString* _tmp5_;
- GString* _tmp6_;
- gssize _tmp7_;
+ gssize _tmp6_;
#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_tmp1_ = self->priv->section_offset;
#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5211,12 +5272,10 @@ gchar* avi_chunk_section_to_string (AVIChunk* self, GError** error) {
if (!(_tmp1_ < _tmp2_)) {
#line 645 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
break;
-#line 5214 "VideoMetadata.c"
+#line 5275 "VideoMetadata.c"
}
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp4_ = avi_chunk_read_byte (self, &_inner_error_);
-#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp3_ = _tmp4_;
+ _tmp3_ = avi_chunk_read_byte (self, &_inner_error_);
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5225,151 +5284,176 @@ gchar* avi_chunk_section_to_string (AVIChunk* self, GError** error) {
_g_string_free0 (sb);
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5228 "VideoMetadata.c"
+#line 5287 "VideoMetadata.c"
}
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp5_ = sb;
+ _tmp4_ = sb;
#line 646 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- g_string_append_c (_tmp5_, (gchar) _tmp3_);
+ g_string_append_c (_tmp4_, (gchar) _tmp3_);
#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp6_ = sb;
+ _tmp5_ = sb;
#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp7_ = _tmp6_->len;
+ _tmp6_ = _tmp5_->len;
#line 647 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- if (_tmp7_ > ((gssize) AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH)) {
-#line 5240 "VideoMetadata.c"
- GString* _tmp8_;
- const gchar* _tmp9_;
- gchar* _tmp10_;
+ if (_tmp6_ > ((gssize) AVI_CHUNK_MAX_STRING_TO_SECTION_LENGTH)) {
+#line 5299 "VideoMetadata.c"
+ GString* _tmp7_;
+ const gchar* _tmp8_;
+ gchar* _tmp9_;
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp8_ = sb;
+ _tmp7_ = sb;
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp9_ = _tmp8_->str;
+ _tmp8_ = _tmp7_->str;
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp10_ = g_strdup (_tmp9_);
+ _tmp9_ = g_strdup (_tmp8_);
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp10_;
+ result = _tmp9_;
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 648 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5256 "VideoMetadata.c"
+#line 5315 "VideoMetadata.c"
}
}
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp11_ = sb;
+ _tmp10_ = sb;
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp12_ = _tmp11_->str;
+ _tmp11_ = _tmp10_->str;
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- _tmp13_ = g_strdup (_tmp12_);
+ _tmp12_ = g_strdup (_tmp11_);
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
- result = _tmp13_;
+ result = _tmp12_;
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_g_string_free0 (sb);
#line 651 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return result;
-#line 5271 "VideoMetadata.c"
+#line 5330 "VideoMetadata.c"
}
-static void value_avi_chunk_init (GValue* value) {
+static void
+value_avi_chunk_init (GValue* value)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 5278 "VideoMetadata.c"
+#line 5339 "VideoMetadata.c"
}
-static void value_avi_chunk_free_value (GValue* value) {
+static void
+value_avi_chunk_free_value (GValue* value)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (value->data[0].v_pointer) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_chunk_unref (value->data[0].v_pointer);
-#line 5287 "VideoMetadata.c"
+#line 5350 "VideoMetadata.c"
}
}
-static void value_avi_chunk_copy_value (const GValue* src_value, GValue* dest_value) {
+static void
+value_avi_chunk_copy_value (const GValue* src_value,
+ GValue* dest_value)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (src_value->data[0].v_pointer) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = avi_chunk_ref (src_value->data[0].v_pointer);
-#line 5297 "VideoMetadata.c"
+#line 5363 "VideoMetadata.c"
} else {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
dest_value->data[0].v_pointer = NULL;
-#line 5301 "VideoMetadata.c"
+#line 5367 "VideoMetadata.c"
}
}
-static gpointer value_avi_chunk_peek_pointer (const GValue* value) {
+static gpointer
+value_avi_chunk_peek_pointer (const GValue* value)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 5309 "VideoMetadata.c"
+#line 5377 "VideoMetadata.c"
}
-static gchar* value_avi_chunk_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_avi_chunk_collect_value (GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (collect_values[0].v_pointer) {
-#line 5316 "VideoMetadata.c"
+#line 5389 "VideoMetadata.c"
AVIChunk * object;
object = collect_values[0].v_pointer;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (object->parent_instance.g_class == NULL) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5323 "VideoMetadata.c"
+#line 5396 "VideoMetadata.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 5327 "VideoMetadata.c"
+#line 5400 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = avi_chunk_ref (object);
-#line 5331 "VideoMetadata.c"
+#line 5404 "VideoMetadata.c"
} else {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 5335 "VideoMetadata.c"
+#line 5408 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5339 "VideoMetadata.c"
+#line 5412 "VideoMetadata.c"
}
-static gchar* value_avi_chunk_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
+static gchar*
+value_avi_chunk_lcopy_value (const GValue* value,
+ guint n_collect_values,
+ GTypeCValue* collect_values,
+ guint collect_flags)
+{
AVIChunk ** object_p;
object_p = collect_values[0].v_pointer;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!object_p) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 5350 "VideoMetadata.c"
+#line 5428 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (!value->data[0].v_pointer) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = NULL;
-#line 5356 "VideoMetadata.c"
+#line 5434 "VideoMetadata.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = value->data[0].v_pointer;
-#line 5360 "VideoMetadata.c"
+#line 5438 "VideoMetadata.c"
} else {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
*object_p = avi_chunk_ref (value->data[0].v_pointer);
-#line 5364 "VideoMetadata.c"
+#line 5442 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return NULL;
-#line 5368 "VideoMetadata.c"
+#line 5446 "VideoMetadata.c"
}
-GParamSpec* param_spec_avi_chunk (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
+GParamSpec*
+param_spec_avi_chunk (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags)
+{
ParamSpecAVIChunk* spec;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (g_type_is_a (object_type, TYPE_AVI_CHUNK), NULL);
@@ -5379,20 +5463,25 @@ GParamSpec* param_spec_avi_chunk (const gchar* name, const gchar* nick, const gc
G_PARAM_SPEC (spec)->value_type = object_type;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return G_PARAM_SPEC (spec);
-#line 5382 "VideoMetadata.c"
+#line 5466 "VideoMetadata.c"
}
-gpointer value_get_avi_chunk (const GValue* value) {
+gpointer
+value_get_avi_chunk (const GValue* value)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK), NULL);
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return value->data[0].v_pointer;
-#line 5391 "VideoMetadata.c"
+#line 5477 "VideoMetadata.c"
}
-void value_set_avi_chunk (GValue* value, gpointer v_object) {
+void
+value_set_avi_chunk (GValue* value,
+ gpointer v_object)
+{
AVIChunk * old;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK));
@@ -5408,22 +5497,25 @@ void value_set_avi_chunk (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_chunk_ref (value->data[0].v_pointer);
-#line 5411 "VideoMetadata.c"
+#line 5500 "VideoMetadata.c"
} else {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 5415 "VideoMetadata.c"
+#line 5504 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_chunk_unref (old);
-#line 5421 "VideoMetadata.c"
+#line 5510 "VideoMetadata.c"
}
}
-void value_take_avi_chunk (GValue* value, gpointer v_object) {
+void
+value_take_avi_chunk (GValue* value,
+ gpointer v_object)
+{
AVIChunk * old;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_AVI_CHUNK));
@@ -5437,33 +5529,37 @@ void value_take_avi_chunk (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = v_object;
-#line 5440 "VideoMetadata.c"
+#line 5532 "VideoMetadata.c"
} else {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
value->data[0].v_pointer = NULL;
-#line 5444 "VideoMetadata.c"
+#line 5536 "VideoMetadata.c"
}
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
if (old) {
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_chunk_unref (old);
-#line 5450 "VideoMetadata.c"
+#line 5542 "VideoMetadata.c"
}
}
-static void avi_chunk_class_init (AVIChunkClass * klass) {
+static void
+avi_chunk_class_init (AVIChunkClass * klass)
+{
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
avi_chunk_parent_class = g_type_class_peek_parent (klass);
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
((AVIChunkClass *) klass)->finalize = avi_chunk_finalize;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_class_add_private (klass, sizeof (AVIChunkPrivate));
-#line 5462 "VideoMetadata.c"
+#line 5556 "VideoMetadata.c"
}
-static void avi_chunk_instance_init (AVIChunk * self) {
+static void
+avi_chunk_instance_init (AVIChunk * self)
+{
gchar* _tmp0_;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->priv = AVI_CHUNK_GET_PRIVATE (self);
@@ -5483,11 +5579,13 @@ static void avi_chunk_instance_init (AVIChunk * self) {
self->priv->parent = NULL;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self->ref_count = 1;
-#line 5486 "VideoMetadata.c"
+#line 5582 "VideoMetadata.c"
}
-static void avi_chunk_finalize (AVIChunk * obj) {
+static void
+avi_chunk_finalize (AVIChunk * obj)
+{
AVIChunk * self;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AVI_CHUNK, AVIChunk);
@@ -5501,11 +5599,13 @@ static void avi_chunk_finalize (AVIChunk * obj) {
_g_object_unref0 (self->priv->input);
#line 540 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
_avi_chunk_unref0 (self->priv->parent);
-#line 5504 "VideoMetadata.c"
+#line 5602 "VideoMetadata.c"
}
-GType avi_chunk_get_type (void) {
+GType
+avi_chunk_get_type (void)
+{
static volatile gsize avi_chunk_type_id__volatile = 0;
if (g_once_init_enter (&avi_chunk_type_id__volatile)) {
static const GTypeValueTable g_define_type_value_table = { value_avi_chunk_init, value_avi_chunk_free_value, value_avi_chunk_copy_value, value_avi_chunk_peek_pointer, "p", value_avi_chunk_collect_value, "p", value_avi_chunk_lcopy_value };
@@ -5519,18 +5619,22 @@ GType avi_chunk_get_type (void) {
}
-gpointer avi_chunk_ref (gpointer instance) {
+gpointer
+avi_chunk_ref (gpointer instance)
+{
AVIChunk * self;
self = instance;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_atomic_int_inc (&self->ref_count);
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
return instance;
-#line 5529 "VideoMetadata.c"
+#line 5631 "VideoMetadata.c"
}
-void avi_chunk_unref (gpointer instance) {
+void
+avi_chunk_unref (gpointer instance)
+{
AVIChunk * self;
self = instance;
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
@@ -5539,7 +5643,7 @@ void avi_chunk_unref (gpointer instance) {
AVI_CHUNK_GET_CLASS (self)->finalize (self);
#line 534 "/home/jens/Source/shotwell/src/VideoMetadata.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 5542 "VideoMetadata.c"
+#line 5646 "VideoMetadata.c"
}
}