From 49120f48474fc8fdc2448c75d961bc238213cfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 1 May 2018 14:34:32 +0200 Subject: New upstream version 0.28.2 --- src/VideoSupport.c | 5712 ++++++++++++++++++++++++++-------------------------- 1 file changed, 2888 insertions(+), 2824 deletions(-) (limited to 'src/VideoSupport.c') diff --git a/src/VideoSupport.c b/src/VideoSupport.c index dd6a15f..7dbbcda 100644 --- a/src/VideoSupport.c +++ b/src/VideoSupport.c @@ -367,6 +367,7 @@ typedef struct _DatabaseTableClass DatabaseTableClass; typedef struct _VideoTable VideoTable; typedef struct _VideoTableClass VideoTableClass; #define _database_table_unref0(var) ((var == NULL) ? NULL : (var = (database_table_unref (var), NULL))) +#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL))) #define TYPE_EXPORTER (exporter_get_type ()) #define EXPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXPORTER, Exporter)) @@ -1242,6 +1243,8 @@ GType config_facade_get_type (void) G_GNUC_CONST; ConfigFacade* config_facade_get_instance (void); gint configuration_facade_get_video_interpreter_state_cookie (ConfigurationFacade* self); #define CONFIG_FACADE_NO_VIDEO_INTERPRETER_STATE -1 +static gboolean __lambda12_ (GstPluginFeature* f); +static gboolean ___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature, gpointer self); VideoSourceCollection* video_source_collection_new (void); VideoSourceCollection* video_source_collection_construct (GType object_type); gpointer database_table_ref (gpointer instance); @@ -1260,6 +1263,8 @@ gboolean media_source_is_offline (MediaSource* self); void media_source_collection_add_many_to_trash (MediaSourceCollection* self, GeeCollection* sources); void media_source_collection_add_many_to_offline (MediaSourceCollection* self, GeeCollection* sources); GeeCollection* data_collection_add_many (DataCollection* self, GeeCollection* objects, ProgressMonitor monitor, void* monitor_target); +static void _g_object_unref0_ (gpointer var); +static void _g_list_free__g_object_unref0_ (GList* self); gboolean video_has_interpreter_state_changed (void); void video_notify_normal_thumbs_regenerated (void); static void video_save_interpreter_state (void); @@ -1511,14 +1516,14 @@ GQuark video_error_quark (void) { static gpointer _g_object_ref0 (gpointer self) { #line 30 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self ? g_object_ref (self) : NULL; -#line 1515 "VideoSupport.c" +#line 1520 "VideoSupport.c" } static gpointer _thumbnails_ref0 (gpointer self) { #line 33 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self ? thumbnails_ref (self) : NULL; -#line 1522 "VideoSupport.c" +#line 1527 "VideoSupport.c" } @@ -1574,21 +1579,21 @@ VideoImportParams* video_import_params_construct (GType object_type, GFile* file self->exposure_time_override = _tmp7_; #line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self; -#line 1578 "VideoSupport.c" +#line 1583 "VideoSupport.c" } VideoImportParams* video_import_params_new (GFile* file, ImportID* import_id, const gchar* md5, Thumbnails* thumbnails, time_t exposure_time_override) { #line 28 "/home/jens/Source/shotwell/src/VideoSupport.vala" return video_import_params_construct (TYPE_VIDEO_IMPORT_PARAMS, file, import_id, md5, thumbnails, exposure_time_override); -#line 1585 "VideoSupport.c" +#line 1590 "VideoSupport.c" } static void value_video_import_params_init (GValue* value) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 1592 "VideoSupport.c" +#line 1597 "VideoSupport.c" } @@ -1597,7 +1602,7 @@ static void value_video_import_params_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_import_params_unref (value->data[0].v_pointer); -#line 1601 "VideoSupport.c" +#line 1606 "VideoSupport.c" } } @@ -1607,11 +1612,11 @@ static void value_video_import_params_copy_value (const GValue* src_value, GValu if (src_value->data[0].v_pointer) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = video_import_params_ref (src_value->data[0].v_pointer); -#line 1611 "VideoSupport.c" +#line 1616 "VideoSupport.c" } else { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = NULL; -#line 1615 "VideoSupport.c" +#line 1620 "VideoSupport.c" } } @@ -1619,37 +1624,37 @@ static void value_video_import_params_copy_value (const GValue* src_value, GValu static gpointer value_video_import_params_peek_pointer (const GValue* value) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 1623 "VideoSupport.c" +#line 1628 "VideoSupport.c" } static gchar* value_video_import_params_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (collect_values[0].v_pointer) { -#line 1630 "VideoSupport.c" +#line 1635 "VideoSupport.c" VideoImportParams * object; object = collect_values[0].v_pointer; #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (object->parent_instance.g_class == NULL) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1637 "VideoSupport.c" +#line 1642 "VideoSupport.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.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 1641 "VideoSupport.c" +#line 1646 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = video_import_params_ref (object); -#line 1645 "VideoSupport.c" +#line 1650 "VideoSupport.c" } else { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 1649 "VideoSupport.c" +#line 1654 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 1653 "VideoSupport.c" +#line 1658 "VideoSupport.c" } @@ -1660,25 +1665,25 @@ static gchar* value_video_import_params_lcopy_value (const GValue* value, guint if (!object_p) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1664 "VideoSupport.c" +#line 1669 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!value->data[0].v_pointer) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = NULL; -#line 1670 "VideoSupport.c" +#line 1675 "VideoSupport.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = value->data[0].v_pointer; -#line 1674 "VideoSupport.c" +#line 1679 "VideoSupport.c" } else { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = video_import_params_ref (value->data[0].v_pointer); -#line 1678 "VideoSupport.c" +#line 1683 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 1682 "VideoSupport.c" +#line 1687 "VideoSupport.c" } @@ -1692,7 +1697,7 @@ GParamSpec* param_spec_video_import_params (const gchar* name, const gchar* nick G_PARAM_SPEC (spec)->value_type = object_type; #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return G_PARAM_SPEC (spec); -#line 1696 "VideoSupport.c" +#line 1701 "VideoSupport.c" } @@ -1701,7 +1706,7 @@ gpointer value_get_video_import_params (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_IMPORT_PARAMS), NULL); #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 1705 "VideoSupport.c" +#line 1710 "VideoSupport.c" } @@ -1721,17 +1726,17 @@ void value_set_video_import_params (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_import_params_ref (value->data[0].v_pointer); -#line 1725 "VideoSupport.c" +#line 1730 "VideoSupport.c" } else { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 1729 "VideoSupport.c" +#line 1734 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_import_params_unref (old); -#line 1735 "VideoSupport.c" +#line 1740 "VideoSupport.c" } } @@ -1750,17 +1755,17 @@ void value_take_video_import_params (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = v_object; -#line 1754 "VideoSupport.c" +#line 1759 "VideoSupport.c" } else { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 1758 "VideoSupport.c" +#line 1763 "VideoSupport.c" } #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_import_params_unref (old); -#line 1764 "VideoSupport.c" +#line 1769 "VideoSupport.c" } } @@ -1770,7 +1775,7 @@ static void video_import_params_class_init (VideoImportParamsClass * klass) { video_import_params_parent_class = g_type_class_peek_parent (klass); #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((VideoImportParamsClass *) klass)->finalize = video_import_params_finalize; -#line 1774 "VideoSupport.c" +#line 1779 "VideoSupport.c" } @@ -1784,7 +1789,7 @@ static void video_import_params_instance_init (VideoImportParams * self) { self->row = _tmp0_; #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->ref_count = 1; -#line 1788 "VideoSupport.c" +#line 1793 "VideoSupport.c" } @@ -1802,7 +1807,7 @@ static void video_import_params_finalize (VideoImportParams * obj) { _thumbnails_unref0 (self->thumbnails); #line 26 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_row_unref0 (self->row); -#line 1806 "VideoSupport.c" +#line 1811 "VideoSupport.c" } @@ -1827,7 +1832,7 @@ gpointer video_import_params_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" return instance; -#line 1831 "VideoSupport.c" +#line 1836 "VideoSupport.c" } @@ -1840,7 +1845,7 @@ void video_import_params_unref (gpointer instance) { VIDEO_IMPORT_PARAMS_GET_CLASS (self)->finalize (self); #line 15 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1844 "VideoSupport.c" +#line 1849 "VideoSupport.c" } } @@ -1863,14 +1868,14 @@ VideoReader* video_reader_construct (GType object_type, GFile* file) { self->priv->file = _tmp1_; #line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self; -#line 1867 "VideoSupport.c" +#line 1872 "VideoSupport.c" } VideoReader* video_reader_new (GFile* file) { #line 51 "/home/jens/Source/shotwell/src/VideoSupport.vala" return video_reader_construct (TYPE_VIDEO_READER, file); -#line 1874 "VideoSupport.c" +#line 1879 "VideoSupport.c" } @@ -1921,7 +1926,7 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _tmp8_ = mime_type; #line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (g_strcmp0 (_tmp8_, "audio/ogg") == 0) { -#line 1925 "VideoSupport.c" +#line 1930 "VideoSupport.c" GFile* _tmp9_; gboolean _tmp10_; #line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -1930,15 +1935,15 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _tmp10_ = g_file_has_uri_scheme (_tmp9_, "file"); #line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp10_; -#line 1934 "VideoSupport.c" +#line 1939 "VideoSupport.c" } else { #line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = FALSE; -#line 1938 "VideoSupport.c" +#line 1943 "VideoSupport.c" } #line 58 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp7_) { -#line 1942 "VideoSupport.c" +#line 1947 "VideoSupport.c" { GFileInfo* info = NULL; GFile* _tmp11_; @@ -1957,8 +1962,8 @@ gboolean video_reader_is_supported_video_file (GFile* file) { info = _tmp12_; #line 60 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1961 "VideoSupport.c" - goto __catch494_g_error; +#line 1966 "VideoSupport.c" + goto __catch503_g_error; } #line 62 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = info; @@ -1972,7 +1977,7 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _tmp17_ = content_type; #line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp17_ != NULL) { -#line 1976 "VideoSupport.c" +#line 1981 "VideoSupport.c" const gchar* _tmp18_; gboolean _tmp19_; #line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -1981,11 +1986,11 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _tmp19_ = g_str_has_prefix (_tmp18_, "video/"); #line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = _tmp19_; -#line 1985 "VideoSupport.c" +#line 1990 "VideoSupport.c" } else { #line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = FALSE; -#line 1989 "VideoSupport.c" +#line 1994 "VideoSupport.c" } #line 63 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp16_) { @@ -1999,16 +2004,16 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _g_free0 (mime_type); #line 64 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2003 "VideoSupport.c" +#line 2008 "VideoSupport.c" } #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (content_type); #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (info); -#line 2009 "VideoSupport.c" +#line 2014 "VideoSupport.c" } - goto __finally494; - __catch494_g_error: + goto __finally503; + __catch503_g_error: { GError* _error_ = NULL; GError* _tmp20_; @@ -2025,12 +2030,12 @@ gboolean video_reader_is_supported_video_file (GFile* file) { g_debug ("VideoSupport.vala:67: Failed to query content type: %s", _tmp21_); #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (_error_); -#line 2029 "VideoSupport.c" +#line 2034 "VideoSupport.c" } - __finally494: + __finally503: #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2034 "VideoSupport.c" +#line 2039 "VideoSupport.c" gboolean _tmp22_ = FALSE; #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (mime_type); @@ -2040,7 +2045,7 @@ gboolean video_reader_is_supported_video_file (GFile* file) { g_clear_error (&_inner_error_); #line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp22_; -#line 2044 "VideoSupport.c" +#line 2049 "VideoSupport.c" } } #line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2061,7 +2066,7 @@ gboolean video_reader_is_supported_video_file (GFile* file) { _g_free0 (mime_type); #line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2065 "VideoSupport.c" +#line 2070 "VideoSupport.c" } @@ -2102,7 +2107,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { if (_tmp6_) { #line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = TRUE; -#line 2106 "VideoSupport.c" +#line 2111 "VideoSupport.c" } else { const gchar* _tmp7_; gboolean _tmp8_; @@ -2112,11 +2117,11 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { _tmp8_ = g_str_has_suffix (_tmp7_, "mp4"); #line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp8_; -#line 2116 "VideoSupport.c" +#line 2121 "VideoSupport.c" } #line 78 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp4_) { -#line 2120 "VideoSupport.c" +#line 2125 "VideoSupport.c" gchar* extension = NULL; gchar* name = NULL; const gchar* _tmp9_; @@ -2153,7 +2158,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { _g_free0 (mime_type); #line 84 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2157 "VideoSupport.c" +#line 2162 "VideoSupport.c" } { const gchar** s_collection = NULL; @@ -2166,14 +2171,14 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { s_collection_length1 = G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS); #line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" for (s_it = 0; s_it < G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS); s_it = s_it + 1) { -#line 2170 "VideoSupport.c" +#line 2175 "VideoSupport.c" gchar* _tmp13_; gchar* s = NULL; #line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = g_strdup (s_collection[s_it]); #line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" s = _tmp13_; -#line 2177 "VideoSupport.c" +#line 2182 "VideoSupport.c" { const gchar* _tmp14_; const gchar* _tmp15_; @@ -2198,11 +2203,11 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { _g_free0 (mime_type); #line 88 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2202 "VideoSupport.c" +#line 2207 "VideoSupport.c" } #line 86 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (s); -#line 2206 "VideoSupport.c" +#line 2211 "VideoSupport.c" } } } @@ -2216,7 +2221,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { _g_free0 (mime_type); #line 91 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2220 "VideoSupport.c" +#line 2225 "VideoSupport.c" } else { const gchar* _tmp17_; const gchar* _tmp18_; @@ -2232,11 +2237,11 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) { _g_free0 (mime_type); #line 94 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2236 "VideoSupport.c" +#line 2241 "VideoSupport.c" } #line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (mime_type); -#line 2240 "VideoSupport.c" +#line 2245 "VideoSupport.c" } @@ -2348,7 +2353,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { file = _tmp2_; #line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala" info = NULL; -#line 2352 "VideoSupport.c" +#line 2357 "VideoSupport.c" { GFileInfo* _tmp3_ = NULL; GFile* _tmp4_; @@ -2362,8 +2367,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp3_ = _tmp5_; #line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2366 "VideoSupport.c" - goto __catch495_g_error; +#line 2371 "VideoSupport.c" + goto __catch504_g_error; } #line 106 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp3_; @@ -2375,10 +2380,10 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { info = _tmp6_; #line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp3_); -#line 2379 "VideoSupport.c" +#line 2384 "VideoSupport.c" } - goto __finally495; - __catch495_g_error: + goto __finally504; + __catch504_g_error: { GError* err = NULL; #line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2395,9 +2400,9 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (file); #line 109 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2399 "VideoSupport.c" +#line 2404 "VideoSupport.c" } - __finally495: + __finally504: #line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2410,7 +2415,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { g_clear_error (&_inner_error_); #line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 2414 "VideoSupport.c" +#line 2419 "VideoSupport.c" } #line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = info; @@ -2426,7 +2431,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (file); #line 113 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2430 "VideoSupport.c" +#line 2435 "VideoSupport.c" } #line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = file; @@ -2434,7 +2439,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp10_ = video_reader_is_supported_video_file (_tmp9_); #line 115 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp10_) { -#line 2438 "VideoSupport.c" +#line 2443 "VideoSupport.c" GFile* _tmp11_; gchar* _tmp12_; gchar* _tmp13_; @@ -2456,7 +2461,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (file); #line 119 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2460 "VideoSupport.c" +#line 2465 "VideoSupport.c" } #line 122 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = info; @@ -2500,7 +2505,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp25_ = video_reader_read_preview_frame (_tmp24_); #line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala" preview_frame = _tmp25_; -#line 2504 "VideoSupport.c" +#line 2509 "VideoSupport.c" { gdouble _tmp26_ = 0.0; VideoReader* _tmp27_; @@ -2515,8 +2520,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { if (G_UNLIKELY (_inner_error_ != NULL)) { #line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == VIDEO_ERROR) { -#line 2519 "VideoSupport.c" - goto __catch496_video_error; +#line 2524 "VideoSupport.c" + goto __catch505_video_error; } #line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); @@ -2536,14 +2541,14 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { g_clear_error (&_inner_error_); #line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 2540 "VideoSupport.c" +#line 2545 "VideoSupport.c" } #line 136 "/home/jens/Source/shotwell/src/VideoSupport.vala" clip_duration = _tmp26_; -#line 2544 "VideoSupport.c" +#line 2549 "VideoSupport.c" } - goto __finally496; - __catch496_video_error: + goto __finally505; + __catch505_video_error: { GError* err = NULL; GError* _tmp29_; @@ -2573,7 +2578,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (file); #line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 2577 "VideoSupport.c" +#line 2582 "VideoSupport.c" } else { GError* _tmp30_; #line 140 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2584,19 +2589,19 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { is_interpretable = FALSE; #line 142 "/home/jens/Source/shotwell/src/VideoSupport.vala" clip_duration = 0.0; -#line 2588 "VideoSupport.c" +#line 2593 "VideoSupport.c" } else { #line 144 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_error ("VideoSupport.vala:144: can't prepare video for import: an unknown kind" \ " of video error occurred"); -#line 2592 "VideoSupport.c" +#line 2597 "VideoSupport.c" } } #line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 2597 "VideoSupport.c" +#line 2602 "VideoSupport.c" } - __finally496: + __finally505: #line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2617,7 +2622,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { g_clear_error (&_inner_error_); #line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 2620 "VideoSupport.c" +#line 2625 "VideoSupport.c" } { VideoMetadata* metadata = NULL; @@ -2644,8 +2649,8 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { metadata = _tmp32_; #line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 2647 "VideoSupport.c" - goto __catch497_g_error; +#line 2652 "VideoSupport.c" + goto __catch506_g_error; } #line 150 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp33_ = metadata; @@ -2657,7 +2662,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp36_ = creation_date_time; #line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp36_ != NULL) { -#line 2660 "VideoSupport.c" +#line 2665 "VideoSupport.c" MetadataDateTime* _tmp37_; time_t _tmp38_; #line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2666,15 +2671,15 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp38_ = metadata_date_time_get_timestamp (_tmp37_); #line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp35_ = _tmp38_ != ((time_t) 0); -#line 2669 "VideoSupport.c" +#line 2674 "VideoSupport.c" } else { #line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp35_ = FALSE; -#line 2673 "VideoSupport.c" +#line 2678 "VideoSupport.c" } #line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp35_) { -#line 2677 "VideoSupport.c" +#line 2682 "VideoSupport.c" MetadataDateTime* _tmp39_; time_t _tmp40_; #line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2683,7 +2688,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp40_ = metadata_date_time_get_timestamp (_tmp39_); #line 153 "/home/jens/Source/shotwell/src/VideoSupport.vala" exposure_time = _tmp40_; -#line 2686 "VideoSupport.c" +#line 2691 "VideoSupport.c" } #line 155 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp41_ = metadata; @@ -2701,7 +2706,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp45_ = video_title; #line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp45_ != NULL) { -#line 2704 "VideoSupport.c" +#line 2709 "VideoSupport.c" const gchar* _tmp46_; gchar* _tmp47_; #line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2712,13 +2717,13 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_free0 (title); #line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala" title = _tmp47_; -#line 2715 "VideoSupport.c" +#line 2720 "VideoSupport.c" } #line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp48_ = video_comment; #line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp48_ != NULL) { -#line 2721 "VideoSupport.c" +#line 2726 "VideoSupport.c" const gchar* _tmp49_; gchar* _tmp50_; #line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2729,7 +2734,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_free0 (comment); #line 160 "/home/jens/Source/shotwell/src/VideoSupport.vala" comment = _tmp50_; -#line 2732 "VideoSupport.c" +#line 2737 "VideoSupport.c" } #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (video_comment); @@ -2739,10 +2744,10 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _metadata_date_time_unref0 (creation_date_time); #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" _media_metadata_unref0 (metadata); -#line 2742 "VideoSupport.c" +#line 2747 "VideoSupport.c" } - goto __finally497; - __catch497_g_error: + goto __finally506; + __catch506_g_error: { GError* err = NULL; GError* _tmp51_; @@ -2759,9 +2764,9 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { g_warning ("VideoSupport.vala:162: Unable to read video metadata: %s", _tmp52_); #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 2762 "VideoSupport.c" +#line 2767 "VideoSupport.c" } - __finally497: + __finally506: #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -2782,13 +2787,13 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { g_clear_error (&_inner_error_); #line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 2785 "VideoSupport.c" +#line 2790 "VideoSupport.c" } #line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp53_ = exposure_time; #line 165 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp53_ == ((time_t) 0)) { -#line 2791 "VideoSupport.c" +#line 2796 "VideoSupport.c" gint64 _tmp54_ = 0LL; VideoReader* _tmp55_; GDateTime* _tmp56_; @@ -2798,7 +2803,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp56_ = _tmp55_->priv->_timestamp; #line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp56_ != NULL) { -#line 2801 "VideoSupport.c" +#line 2806 "VideoSupport.c" VideoReader* _tmp57_; GDateTime* _tmp58_; gint64 _tmp59_; @@ -2810,15 +2815,15 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp59_ = g_date_time_to_unix (_tmp58_); #line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp54_ = _tmp59_; -#line 2813 "VideoSupport.c" +#line 2818 "VideoSupport.c" } else { #line 168 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp54_ = (gint64) 0; -#line 2817 "VideoSupport.c" +#line 2822 "VideoSupport.c" } #line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala" exposure_time = (time_t) _tmp54_; -#line 2821 "VideoSupport.c" +#line 2826 "VideoSupport.c" } #line 171 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp60_ = params; @@ -2994,7 +2999,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp122_ = _tmp121_->thumbnails; #line 190 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp122_ != NULL) { -#line 2997 "VideoSupport.c" +#line 3002 "VideoSupport.c" VideoImportParams* _tmp123_; Thumbnails* _tmp124_; VideoImportParams* _tmp125_; @@ -3016,7 +3021,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _tmp127_ = preview_frame; #line 192 "/home/jens/Source/shotwell/src/VideoSupport.vala" thumbnail_cache_generate_for_video_frame (_tmp126_, _tmp127_); -#line 3019 "VideoSupport.c" +#line 3024 "VideoSupport.c" } #line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = IMPORT_RESULT_SUCCESS; @@ -3034,7 +3039,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) { _g_object_unref0 (file); #line 198 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3037 "VideoSupport.c" +#line 3042 "VideoSupport.c" } @@ -3046,14 +3051,14 @@ static GDate* _g_date_dup (GDate* self) { memcpy (dup, self, sizeof (GDate)); #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" return dup; -#line 3049 "VideoSupport.c" +#line 3054 "VideoSupport.c" } static gpointer __g_date_dup0 (gpointer self) { #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self ? _g_date_dup (self) : NULL; -#line 3056 "VideoSupport.c" +#line 3061 "VideoSupport.c" } @@ -3066,7 +3071,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { _tmp0_ = video_reader_does_file_exist (self); #line 202 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp0_) { -#line 3069 "VideoSupport.c" +#line 3074 "VideoSupport.c" GFile* _tmp1_; gchar* _tmp2_; gchar* _tmp3_; @@ -3100,7 +3105,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { g_propagate_error (error, _inner_error_); #line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 3103 "VideoSupport.c" +#line 3108 "VideoSupport.c" } else { #line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3108,7 +3113,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { g_clear_error (&_inner_error_); #line 203 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 3111 "VideoSupport.c" +#line 3116 "VideoSupport.c" } } { @@ -3133,8 +3138,8 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { d = _tmp8_; #line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3136 "VideoSupport.c" - goto __catch498_g_error; +#line 3141 "VideoSupport.c" + goto __catch507_g_error; } #line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = d; @@ -3156,8 +3161,8 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { if (G_UNLIKELY (_inner_error_ != NULL)) { #line 208 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (d); -#line 3159 "VideoSupport.c" - goto __catch498_g_error; +#line 3164 "VideoSupport.c" + goto __catch507_g_error; } #line 210 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = info; @@ -3173,7 +3178,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { _tmp19_ = gst_discoverer_info_get_tags (_tmp18_); #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp19_ != NULL) { -#line 3176 "VideoSupport.c" +#line 3181 "VideoSupport.c" GstDiscovererInfo* _tmp20_; GstTagList* _tmp21_; GDate _tmp22_ = {0}; @@ -3196,21 +3201,21 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { video_date = _tmp25_; #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = _tmp23_; -#line 3199 "VideoSupport.c" +#line 3204 "VideoSupport.c" } else { #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = FALSE; -#line 3203 "VideoSupport.c" +#line 3208 "VideoSupport.c" } #line 216 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp17_) { -#line 3207 "VideoSupport.c" +#line 3212 "VideoSupport.c" GDate* _tmp26_; #line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_ = video_date; #line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp26_ != NULL) { -#line 3213 "VideoSupport.c" +#line 3218 "VideoSupport.c" GDate* _tmp27_; GDateYear _tmp28_; GDate* _tmp29_; @@ -3239,7 +3244,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { video_reader_set_timestamp (self, _tmp34_); #line 219 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_date_time_unref0 (_tmp34_); -#line 3242 "VideoSupport.c" +#line 3247 "VideoSupport.c" } } #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3248,10 +3253,10 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { _g_object_unref0 (info); #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (d); -#line 3251 "VideoSupport.c" +#line 3256 "VideoSupport.c" } - goto __finally498; - __catch498_g_error: + goto __finally507; + __catch507_g_error: { GError* e = NULL; GError* _tmp35_; @@ -3290,10 +3295,10 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { _inner_error_ = _tmp42_; #line 225 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 3293 "VideoSupport.c" - goto __finally498; +#line 3298 "VideoSupport.c" + goto __finally507; } - __finally498: + __finally507: #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3302,7 +3307,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { g_propagate_error (error, _inner_error_); #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 3305 "VideoSupport.c" +#line 3310 "VideoSupport.c" } else { #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); @@ -3310,7 +3315,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) { g_clear_error (&_inner_error_); #line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 3313 "VideoSupport.c" +#line 3318 "VideoSupport.c" } } } @@ -3327,7 +3332,7 @@ static gboolean video_reader_on_thumbnailer_timer (VideoReader* self) { _tmp0_ = self->priv->thumbnailer_pid; #line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_ != ((GPid) 0)) { -#line 3330 "VideoSupport.c" +#line 3335 "VideoSupport.c" GPid _tmp1_; GPid _tmp2_; #line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3338,13 +3343,13 @@ static gboolean video_reader_on_thumbnailer_timer (VideoReader* self) { _tmp2_ = self->priv->thumbnailer_pid; #line 235 "/home/jens/Source/shotwell/src/VideoSupport.vala" kill ((pid_t) _tmp2_, SIGKILL); -#line 3341 "VideoSupport.c" +#line 3346 "VideoSupport.c" } #line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = FALSE; #line 237 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3347 "VideoSupport.c" +#line 3352 "VideoSupport.c" } @@ -3353,7 +3358,7 @@ static gboolean _video_reader_on_thumbnailer_timer_gsource_func (gpointer self) result = video_reader_on_thumbnailer_timer ((VideoReader*) self); #line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3356 "VideoSupport.c" +#line 3361 "VideoSupport.c" } @@ -3430,7 +3435,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide argv_length1 = _tmp10__length1; #line 245 "/home/jens/Source/shotwell/src/VideoSupport.vala" _argv_size_ = argv_length1; -#line 3433 "VideoSupport.c" +#line 3438 "VideoSupport.c" { gchar** _tmp11_; gint _tmp11__length1; @@ -3449,17 +3454,17 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide child_stdout = _tmp13_; #line 248 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3452 "VideoSupport.c" - goto __catch499_g_error; +#line 3457 "VideoSupport.c" + goto __catch508_g_error; } #line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->thumbnailer_pid; #line 251 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_debug ("VideoSupport.vala:251: Spawned thumbnailer, child pid: %d", (gint) _tmp14_); -#line 3459 "VideoSupport.c" +#line 3464 "VideoSupport.c" } - goto __finally499; - __catch499_g_error: + goto __finally508; + __catch508_g_error: { GError* e = NULL; GError* _tmp15_; @@ -3479,13 +3484,13 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _tmp17_ = self->priv->thumbnailer_pid; #line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp17_ != ((GPid) 0)) { -#line 3482 "VideoSupport.c" +#line 3487 "VideoSupport.c" GPid _tmp18_; #line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->thumbnailer_pid; #line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_spawn_close_pid (_tmp18_); -#line 3488 "VideoSupport.c" +#line 3493 "VideoSupport.c" } #line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; @@ -3495,9 +3500,9 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); #line 256 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3498 "VideoSupport.c" +#line 3503 "VideoSupport.c" } - __finally499: + __finally508: #line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3508,13 +3513,13 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide g_clear_error (&_inner_error_); #line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 3511 "VideoSupport.c" +#line 3516 "VideoSupport.c" } #line 260 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_timeout_add_full (G_PRIORITY_DEFAULT, VIDEO_READER_THUMBNAILER_TIMEOUT, _video_reader_on_thumbnailer_timer_gsource_func, video_reader_ref (self), video_reader_unref); #line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala" buf = NULL; -#line 3517 "VideoSupport.c" +#line 3522 "VideoSupport.c" { GUnixInputStream* unix_input = NULL; gint _tmp19_; @@ -3539,8 +3544,8 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide if (G_UNLIKELY (_inner_error_ != NULL)) { #line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (unix_input); -#line 3542 "VideoSupport.c" - goto __catch500_g_error; +#line 3547 "VideoSupport.c" + goto __catch509_g_error; } #line 266 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = _tmp21_; @@ -3554,10 +3559,10 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _g_object_unref0 (_tmp21_); #line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (unix_input); -#line 3557 "VideoSupport.c" +#line 3562 "VideoSupport.c" } - goto __finally500; - __catch500_g_error: + goto __finally509; + __catch509_g_error: { GError* e = NULL; GError* _tmp25_; @@ -3578,9 +3583,9 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide buf = NULL; #line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 3581 "VideoSupport.c" +#line 3586 "VideoSupport.c" } - __finally500: + __finally509: #line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3593,7 +3598,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide g_clear_error (&_inner_error_); #line 264 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 3596 "VideoSupport.c" +#line 3601 "VideoSupport.c" } #line 273 "/home/jens/Source/shotwell/src/VideoSupport.vala" child_status = 0; @@ -3609,7 +3614,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _tmp30_ = ret_waitpid; #line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp30_ < 0) { -#line 3612 "VideoSupport.c" +#line 3617 "VideoSupport.c" gint _tmp31_; #line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp31_ = ret_waitpid; @@ -3619,7 +3624,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _g_object_unref0 (buf); #line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala" buf = NULL; -#line 3622 "VideoSupport.c" +#line 3627 "VideoSupport.c" } else { gint _tmp32_; gint _tmp33_; @@ -3629,7 +3634,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _tmp33_ = WEXITSTATUS (_tmp32_); #line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (0 != _tmp33_) { -#line 3632 "VideoSupport.c" +#line 3637 "VideoSupport.c" gint _tmp34_; gint _tmp35_; #line 279 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3642,7 +3647,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide _g_object_unref0 (buf); #line 281 "/home/jens/Source/shotwell/src/VideoSupport.vala" buf = NULL; -#line 3645 "VideoSupport.c" +#line 3650 "VideoSupport.c" } } #line 284 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3657,7 +3662,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL); #line 286 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3660 "VideoSupport.c" +#line 3665 "VideoSupport.c" } @@ -3686,7 +3691,7 @@ static gboolean video_reader_does_file_exist (VideoReader* self) { result = _tmp4_; #line 290 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3689 "VideoSupport.c" +#line 3694 "VideoSupport.c" } @@ -3707,7 +3712,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { _tmp0_ = self->priv->preview_frame; #line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_ != NULL) { -#line 3710 "VideoSupport.c" +#line 3715 "VideoSupport.c" GdkPixbuf* _tmp1_; GdkPixbuf* _tmp2_; #line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3718,7 +3723,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { result = _tmp2_; #line 295 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3721 "VideoSupport.c" +#line 3726 "VideoSupport.c" } #line 297 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_reader_does_file_exist (self); @@ -3728,7 +3733,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { result = NULL; #line 298 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3731 "VideoSupport.c" +#line 3736 "VideoSupport.c" } #line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->file; @@ -3748,7 +3753,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { _tmp8_ = self->priv->preview_frame; #line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (NULL == _tmp8_) { -#line 3751 "VideoSupport.c" +#line 3756 "VideoSupport.c" GdkPixbuf* _tmp9_; #line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = resources_get_noninterpretable_badge_pixbuf (); @@ -3756,7 +3761,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { _g_object_unref0 (self->priv->preview_frame); #line 303 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv->preview_frame = _tmp9_; -#line 3759 "VideoSupport.c" +#line 3764 "VideoSupport.c" } #line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = self->priv->preview_frame; @@ -3766,7 +3771,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) { result = _tmp11_; #line 305 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3769 "VideoSupport.c" +#line 3774 "VideoSupport.c" } @@ -3787,13 +3792,13 @@ gdouble video_reader_read_clip_duration (VideoReader* self, GError** error) { if (G_UNLIKELY (_inner_error_ != NULL)) { #line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == VIDEO_ERROR) { -#line 3790 "VideoSupport.c" +#line 3795 "VideoSupport.c" gdouble _tmp1_ = 0.0; #line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); #line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp1_; -#line 3796 "VideoSupport.c" +#line 3801 "VideoSupport.c" } else { gdouble _tmp2_ = 0.0; #line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -3802,7 +3807,7 @@ gdouble video_reader_read_clip_duration (VideoReader* self, GError** error) { g_clear_error (&_inner_error_); #line 310 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp2_; -#line 3805 "VideoSupport.c" +#line 3810 "VideoSupport.c" } } } @@ -3812,7 +3817,7 @@ gdouble video_reader_read_clip_duration (VideoReader* self, GError** error) { result = _tmp3_; #line 312 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3815 "VideoSupport.c" +#line 3820 "VideoSupport.c" } @@ -3856,13 +3861,13 @@ VideoMetadata* video_reader_read_metadata (VideoReader* self, GError** error) { _media_metadata_unref0 (metadata); #line 317 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 3859 "VideoSupport.c" +#line 3864 "VideoSupport.c" } #line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = metadata; #line 319 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3865 "VideoSupport.c" +#line 3870 "VideoSupport.c" } @@ -3877,14 +3882,14 @@ GDateTime* video_reader_get_timestamp (VideoReader* self) { result = _tmp0_; #line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 3880 "VideoSupport.c" +#line 3885 "VideoSupport.c" } static gpointer _g_date_time_ref0 (gpointer self) { #line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self ? g_date_time_ref (self) : NULL; -#line 3887 "VideoSupport.c" +#line 3892 "VideoSupport.c" } @@ -3901,14 +3906,14 @@ static void video_reader_set_timestamp (VideoReader* self, GDateTime* value) { _g_date_time_unref0 (self->priv->_timestamp); #line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv->_timestamp = _tmp1_; -#line 3904 "VideoSupport.c" +#line 3909 "VideoSupport.c" } static void value_video_reader_init (GValue* value) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 3911 "VideoSupport.c" +#line 3916 "VideoSupport.c" } @@ -3917,7 +3922,7 @@ static void value_video_reader_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_reader_unref (value->data[0].v_pointer); -#line 3920 "VideoSupport.c" +#line 3925 "VideoSupport.c" } } @@ -3927,11 +3932,11 @@ static void value_video_reader_copy_value (const GValue* src_value, GValue* dest if (src_value->data[0].v_pointer) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = video_reader_ref (src_value->data[0].v_pointer); -#line 3930 "VideoSupport.c" +#line 3935 "VideoSupport.c" } else { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = NULL; -#line 3934 "VideoSupport.c" +#line 3939 "VideoSupport.c" } } @@ -3939,37 +3944,37 @@ static void value_video_reader_copy_value (const GValue* src_value, GValue* dest static gpointer value_video_reader_peek_pointer (const GValue* value) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 3942 "VideoSupport.c" +#line 3947 "VideoSupport.c" } static gchar* value_video_reader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (collect_values[0].v_pointer) { -#line 3949 "VideoSupport.c" +#line 3954 "VideoSupport.c" VideoReader * object; object = collect_values[0].v_pointer; #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (object->parent_instance.g_class == NULL) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 3956 "VideoSupport.c" +#line 3961 "VideoSupport.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.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 3960 "VideoSupport.c" +#line 3965 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = video_reader_ref (object); -#line 3964 "VideoSupport.c" +#line 3969 "VideoSupport.c" } else { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 3968 "VideoSupport.c" +#line 3973 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 3972 "VideoSupport.c" +#line 3977 "VideoSupport.c" } @@ -3980,25 +3985,25 @@ static gchar* value_video_reader_lcopy_value (const GValue* value, guint n_colle if (!object_p) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 3983 "VideoSupport.c" +#line 3988 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!value->data[0].v_pointer) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = NULL; -#line 3989 "VideoSupport.c" +#line 3994 "VideoSupport.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = value->data[0].v_pointer; -#line 3993 "VideoSupport.c" +#line 3998 "VideoSupport.c" } else { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = video_reader_ref (value->data[0].v_pointer); -#line 3997 "VideoSupport.c" +#line 4002 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 4001 "VideoSupport.c" +#line 4006 "VideoSupport.c" } @@ -4012,7 +4017,7 @@ GParamSpec* param_spec_video_reader (const gchar* name, const gchar* nick, const G_PARAM_SPEC (spec)->value_type = object_type; #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return G_PARAM_SPEC (spec); -#line 4015 "VideoSupport.c" +#line 4020 "VideoSupport.c" } @@ -4021,7 +4026,7 @@ gpointer value_get_video_reader (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_VIDEO_READER), NULL); #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 4024 "VideoSupport.c" +#line 4029 "VideoSupport.c" } @@ -4041,17 +4046,17 @@ void value_set_video_reader (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_reader_ref (value->data[0].v_pointer); -#line 4044 "VideoSupport.c" +#line 4049 "VideoSupport.c" } else { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 4048 "VideoSupport.c" +#line 4053 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_reader_unref (old); -#line 4054 "VideoSupport.c" +#line 4059 "VideoSupport.c" } } @@ -4070,17 +4075,17 @@ void value_take_video_reader (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = v_object; -#line 4073 "VideoSupport.c" +#line 4078 "VideoSupport.c" } else { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 4077 "VideoSupport.c" +#line 4082 "VideoSupport.c" } #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_reader_unref (old); -#line 4083 "VideoSupport.c" +#line 4088 "VideoSupport.c" } } @@ -4092,7 +4097,7 @@ static void video_reader_class_init (VideoReaderClass * klass) { ((VideoReaderClass *) klass)->finalize = video_reader_finalize; #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_type_class_add_private (klass, sizeof (VideoReaderPrivate)); -#line 4095 "VideoSupport.c" +#line 4100 "VideoSupport.c" } @@ -4111,7 +4116,7 @@ static void video_reader_instance_init (VideoReader * self) { self->priv->_timestamp = NULL; #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->ref_count = 1; -#line 4114 "VideoSupport.c" +#line 4119 "VideoSupport.c" } @@ -4127,7 +4132,7 @@ static void video_reader_finalize (VideoReader * obj) { _g_object_unref0 (self->priv->file); #line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_date_time_unref0 (self->priv->_timestamp); -#line 4130 "VideoSupport.c" +#line 4135 "VideoSupport.c" } @@ -4152,7 +4157,7 @@ gpointer video_reader_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" return instance; -#line 4155 "VideoSupport.c" +#line 4160 "VideoSupport.c" } @@ -4165,7 +4170,7 @@ void video_reader_unref (gpointer instance) { VIDEO_READER_GET_CLASS (self)->finalize (self); #line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_type_free_instance ((GTypeInstance *) self); -#line 4168 "VideoSupport.c" +#line 4173 "VideoSupport.c" } } @@ -4173,7 +4178,7 @@ void video_reader_unref (gpointer instance) { static gpointer _video_row_ref0 (gpointer self) { #line 367 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self ? video_row_ref (self) : NULL; -#line 4176 "VideoSupport.c" +#line 4181 "VideoSupport.c" } @@ -4220,7 +4225,7 @@ Video* video_construct (GType object_type, VideoRow* row) { if ((_tmp8_ & VIDEO_FLAG_TRASH) != ((guint64) 0)) { #line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = TRUE; -#line 4223 "VideoSupport.c" +#line 4228 "VideoSupport.c" } else { VideoRow* _tmp9_; guint64 _tmp10_; @@ -4230,11 +4235,11 @@ Video* video_construct (GType object_type, VideoRow* row) { _tmp10_ = _tmp9_->flags; #line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = (_tmp10_ & VIDEO_FLAG_OFFLINE) != ((guint64) 0); -#line 4233 "VideoSupport.c" +#line 4238 "VideoSupport.c" } #line 372 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp6_) { -#line 4237 "VideoSupport.c" +#line 4242 "VideoSupport.c" VideoSourceCollection* _tmp11_; VideoRow* _tmp12_; const gchar* _tmp13_; @@ -4246,18 +4251,72 @@ Video* video_construct (GType object_type, VideoRow* row) { _tmp13_ = _tmp12_->backlinks; #line 373 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_source_rehydrate_backlinks (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_SOURCE, DataSource), G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_SOURCE_COLLECTION, SourceCollection), _tmp13_); -#line 4249 "VideoSupport.c" +#line 4254 "VideoSupport.c" } #line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self; -#line 4253 "VideoSupport.c" +#line 4258 "VideoSupport.c" } Video* video_new (VideoRow* row) { #line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala" return video_construct (TYPE_VIDEO, row); -#line 4260 "VideoSupport.c" +#line 4265 "VideoSupport.c" +} + + +static gboolean __lambda12_ (GstPluginFeature* f) { + gboolean result = FALSE; + GstPluginFeature* _tmp0_; + gchar* _tmp1_; + gchar* _tmp2_; + gboolean _tmp3_; + gboolean _tmp4_; +#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (f), FALSE); +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp0_ = f; +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp1_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gst_object_get_type (), GstObject)); +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp2_ = _tmp1_; +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp3_ = g_str_has_prefix (_tmp2_, "vaapi"); +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp4_ = _tmp3_; +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _g_free0 (_tmp2_); +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + result = _tmp4_; +#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala" + return result; +#line 4294 "VideoSupport.c" +} + + +static gboolean ___lambda12__gst_plugin_feature_filter (GstPluginFeature* feature, gpointer self) { + gboolean result; + result = __lambda12_ (feature); +#line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" + return result; +#line 4303 "VideoSupport.c" +} + + +static void _g_object_unref0_ (gpointer var) { +#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" + (var == NULL) ? NULL : (var = (g_object_unref (var), NULL)); +#line 4310 "VideoSupport.c" +} + + +static void _g_list_free__g_object_unref0_ (GList* self) { +#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_list_foreach (self, (GFunc) _g_object_unref0_, NULL); +#line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_list_free (self); +#line 4319 "VideoSupport.c" } @@ -4276,37 +4335,34 @@ void video_init (ProgressMonitor monitor, void* monitor_target) { GstRegistry* _tmp6_; guint32 _tmp7_; gint _tmp8_; - GstPluginFeature* feature = NULL; + GList* features = NULL; GstRegistry* _tmp11_; - GstPluginFeature* _tmp12_; - GstPluginFeature* _tmp13_; - GstRegistry* _tmp16_; - GstPluginFeature* _tmp17_; - GstPluginFeature* _tmp18_; - VideoSourceCollection* _tmp21_; + GList* _tmp12_; + GList* _tmp13_; + VideoSourceCollection* _tmp20_; GeeArrayList* all = NULL; + VideoTable* _tmp21_; VideoTable* _tmp22_; - VideoTable* _tmp23_; + GeeArrayList* _tmp23_; GeeArrayList* _tmp24_; - GeeArrayList* _tmp25_; GeeArrayList* all_videos = NULL; - GeeArrayList* _tmp26_; + GeeArrayList* _tmp25_; GeeArrayList* trashed_videos = NULL; - GeeArrayList* _tmp27_; + GeeArrayList* _tmp26_; GeeArrayList* offline_videos = NULL; - GeeArrayList* _tmp28_; + GeeArrayList* _tmp27_; gint count = 0; - GeeArrayList* _tmp29_; + GeeArrayList* _tmp28_; + gint _tmp29_; gint _tmp30_; - gint _tmp31_; - VideoSourceCollection* _tmp58_; - GeeArrayList* _tmp59_; - VideoSourceCollection* _tmp60_; - GeeArrayList* _tmp61_; - VideoSourceCollection* _tmp62_; - GeeArrayList* _tmp63_; + VideoSourceCollection* _tmp57_; + GeeArrayList* _tmp58_; + VideoSourceCollection* _tmp59_; + GeeArrayList* _tmp60_; + VideoSourceCollection* _tmp61_; + GeeArrayList* _tmp62_; + GeeCollection* _tmp63_; GeeCollection* _tmp64_; - GeeCollection* _tmp65_; #line 380 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpreter_state_changed = FALSE; #line 381 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -4356,7 +4412,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) { "l video thumbnails are out of date"); #line 395 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpreter_state_changed = TRUE; -#line 4358 "VideoSupport.c" +#line 4414 "VideoSupport.c" } else { gint _tmp9_; gint _tmp10_; @@ -4371,266 +4427,274 @@ void video_init (ProgressMonitor monitor, void* monitor_target) { " may be out of date"); #line 398 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpreter_state_changed = TRUE; -#line 4372 "VideoSupport.c" +#line 4428 "VideoSupport.c" } } #line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = registry; #line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp12_ = gst_registry_find_feature (_tmp11_, "vaapidecodebin", gst_element_factory_get_type ()); + _tmp12_ = gst_registry_feature_filter (_tmp11_, ___lambda12__gst_plugin_feature_filter, FALSE, NULL); #line 407 "/home/jens/Source/shotwell/src/VideoSupport.vala" - feature = _tmp12_; -#line 409 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp13_ = feature; -#line 409 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp13_ != NULL) { -#line 4385 "VideoSupport.c" - GstRegistry* _tmp14_; - GstPluginFeature* _tmp15_; -#line 410 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp14_ = registry; -#line 410 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp15_ = feature; -#line 410 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gst_registry_remove_feature (_tmp14_, _tmp15_); -#line 4394 "VideoSupport.c" - } -#line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp16_ = registry; + features = _tmp12_; +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp13_ = features; +#line 4439 "VideoSupport.c" + { + GList* feature_collection = NULL; + GList* feature_it = NULL; +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + feature_collection = _tmp13_; +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + for (feature_it = feature_collection; feature_it != NULL; feature_it = feature_it->next) { +#line 4447 "VideoSupport.c" + GstPluginFeature* _tmp14_; + GstPluginFeature* feature = NULL; +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp14_ = _g_object_ref0 ((GstPluginFeature*) feature_it->data); +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + feature = _tmp14_; +#line 4454 "VideoSupport.c" + { + GstPluginFeature* _tmp15_; + gchar* _tmp16_; + gchar* _tmp17_; + GstRegistry* _tmp18_; + GstPluginFeature* _tmp19_; +#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp15_ = feature; +#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp16_ = gst_object_get_name (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gst_object_get_type (), GstObject)); +#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp17_ = _tmp16_; +#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_debug ("VideoSupport.vala:412: Removing registry feature %s", _tmp17_); +#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _g_free0 (_tmp17_); #line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp17_ = gst_registry_find_feature (_tmp16_, "vaapidecode", gst_element_factory_get_type ()); + _tmp18_ = registry; #line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (feature); + _tmp19_ = feature; #line 413 "/home/jens/Source/shotwell/src/VideoSupport.vala" - feature = _tmp17_; -#line 415 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp18_ = feature; -#line 415 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp18_ != NULL) { -#line 4408 "VideoSupport.c" - GstRegistry* _tmp19_; - GstPluginFeature* _tmp20_; + gst_registry_remove_feature (_tmp18_, _tmp19_); +#line 411 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _g_object_unref0 (feature); +#line 4479 "VideoSupport.c" + } + } + } #line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp19_ = registry; + _tmp20_ = video_source_collection_new (); #line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp20_ = feature; + _data_collection_unref0 (video_global); #line 416 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gst_registry_remove_feature (_tmp19_, _tmp20_); -#line 4417 "VideoSupport.c" - } -#line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp21_ = video_source_collection_new (); + video_global = _tmp20_; +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp21_ = video_table_get_instance (); +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp22_ = _tmp21_; +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp23_ = video_table_get_all (_tmp22_); +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp24_ = _tmp23_; +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _database_table_unref0 (_tmp22_); +#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala" + all = _tmp24_; #line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _data_collection_unref0 (video_global); + _tmp25_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); #line 419 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_global = _tmp21_; -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp22_ = video_table_get_instance (); -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp23_ = _tmp22_; -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp24_ = video_table_get_all (_tmp23_); -#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp25_ = _tmp24_; + all_videos = _tmp25_; +#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp26_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); +#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala" + trashed_videos = _tmp26_; #line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _database_table_unref0 (_tmp23_); + _tmp27_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); #line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala" - all = _tmp25_; + offline_videos = _tmp27_; #line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp26_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); + _tmp28_ = all; #line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" - all_videos = _tmp26_; -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp27_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" - trashed_videos = _tmp27_; -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp28_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); -#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" - offline_videos = _tmp28_; -#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp29_ = all; -#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); -#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp31_ = _tmp30_; -#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala" - count = _tmp31_; -#line 4457 "VideoSupport.c" + _tmp29_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection)); +#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp30_ = _tmp29_; +#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala" + count = _tmp30_; +#line 4521 "VideoSupport.c" { gint ctr = 0; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" ctr = 0; -#line 4462 "VideoSupport.c" +#line 4526 "VideoSupport.c" { - gboolean _tmp32_ = FALSE; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = TRUE; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" + gboolean _tmp31_ = FALSE; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp31_ = TRUE; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 4469 "VideoSupport.c" +#line 4533 "VideoSupport.c" + gint _tmp33_; gint _tmp34_; - gint _tmp35_; Video* video = NULL; - GeeArrayList* _tmp36_; - gint _tmp37_; - gpointer _tmp38_; - VideoRow* _tmp39_; + GeeArrayList* _tmp35_; + gint _tmp36_; + gpointer _tmp37_; + VideoRow* _tmp38_; + Video* _tmp39_; Video* _tmp40_; - Video* _tmp41_; - gboolean _tmp42_; - Video* _tmp44_; - gboolean _tmp45_; - ProgressMonitor _tmp54_; - void* _tmp54__target; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!_tmp32_) { -#line 4486 "VideoSupport.c" - gint _tmp33_; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp33_ = ctr; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - ctr = _tmp33_ + 1; -#line 4492 "VideoSupport.c" + gboolean _tmp41_; + Video* _tmp43_; + gboolean _tmp44_; + ProgressMonitor _tmp53_; + void* _tmp53__target; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (!_tmp31_) { +#line 4550 "VideoSupport.c" + gint _tmp32_; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp32_ = ctr; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + ctr = _tmp32_ + 1; +#line 4556 "VideoSupport.c" } -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp32_ = FALSE; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp34_ = ctr; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp35_ = count; -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (!(_tmp34_ < _tmp35_)) { -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp31_ = FALSE; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp33_ = ctr; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp34_ = count; +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (!(_tmp33_ < _tmp34_)) { +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 4504 "VideoSupport.c" +#line 4568 "VideoSupport.c" } +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp35_ = all; +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp36_ = ctr; +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp37_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp36_); +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp38_ = (VideoRow*) _tmp37_; +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp39_ = video_new (_tmp38_); +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp40_ = _tmp39_; +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _video_row_unref0 (_tmp38_); +#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala" + video = _tmp40_; +#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp41_ = video_interpreter_state_changed; +#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (_tmp41_) { +#line 4590 "VideoSupport.c" + Video* _tmp42_; #line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp36_ = all; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp37_ = ctr; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp38_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp37_); -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp39_ = (VideoRow*) _tmp38_; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp40_ = video_new (_tmp39_); -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp41_ = _tmp40_; -#line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _video_row_unref0 (_tmp39_); + _tmp42_ = video; #line 427 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video = _tmp41_; + video_set_is_interpretable (_tmp42_, FALSE); +#line 4596 "VideoSupport.c" + } #line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp42_ = video_interpreter_state_changed; + _tmp43_ = video; #line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp42_) { -#line 4526 "VideoSupport.c" - Video* _tmp43_; + _tmp44_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, TYPE_MEDIA_SOURCE, MediaSource)); +#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (_tmp44_) { +#line 4604 "VideoSupport.c" + GeeArrayList* _tmp45_; + Video* _tmp46_; #line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp43_ = video; + _tmp45_ = trashed_videos; #line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" - video_set_is_interpretable (_tmp43_, FALSE); -#line 4532 "VideoSupport.c" - } + _tmp46_ = video; +#line 430 "/home/jens/Source/shotwell/src/VideoSupport.vala" + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp46_); +#line 4613 "VideoSupport.c" + } else { + Video* _tmp47_; + gboolean _tmp48_; +#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp47_ = video; +#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp48_ = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp47_, TYPE_MEDIA_SOURCE, MediaSource)); +#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (_tmp48_) { +#line 4623 "VideoSupport.c" + GeeArrayList* _tmp49_; + Video* _tmp50_; #line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp44_ = video; + _tmp49_ = offline_videos; #line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp45_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_MEDIA_SOURCE, MediaSource)); + _tmp50_ = video; #line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp45_) { -#line 4540 "VideoSupport.c" - GeeArrayList* _tmp46_; - Video* _tmp47_; -#line 433 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp46_ = trashed_videos; -#line 433 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp47_ = video; -#line 433 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp47_); -#line 4549 "VideoSupport.c" - } else { - Video* _tmp48_; - gboolean _tmp49_; + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp49_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp50_); +#line 4632 "VideoSupport.c" + } else { + GeeArrayList* _tmp51_; + Video* _tmp52_; #line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp48_ = video; + _tmp51_ = all_videos; #line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp49_ = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_MEDIA_SOURCE, MediaSource)); + _tmp52_ = video; #line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp49_) { -#line 4559 "VideoSupport.c" - GeeArrayList* _tmp50_; - Video* _tmp51_; -#line 435 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp50_ = offline_videos; -#line 435 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp51_ = video; -#line 435 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp51_); -#line 4568 "VideoSupport.c" - } else { - GeeArrayList* _tmp52_; - Video* _tmp53_; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp52_ = all_videos; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp53_ = video; -#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp53_); -#line 4578 "VideoSupport.c" + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp52_); +#line 4642 "VideoSupport.c" } } -#line 439 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp54_ = monitor; -#line 439 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp54__target = monitor_target; -#line 439 "/home/jens/Source/shotwell/src/VideoSupport.vala" - if (_tmp54_ != NULL) { -#line 4587 "VideoSupport.c" - ProgressMonitor _tmp55_; - void* _tmp55__target; +#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp53_ = monitor; +#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp53__target = monitor_target; +#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala" + if (_tmp53_ != NULL) { +#line 4651 "VideoSupport.c" + ProgressMonitor _tmp54_; + void* _tmp54__target; + gint _tmp55_; gint _tmp56_; - gint _tmp57_; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55_ = monitor; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55__target = monitor_target; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp56_ = ctr; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp57_ = count; -#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp55_ ((guint64) _tmp56_, (guint64) _tmp57_, TRUE, _tmp55__target); -#line 4602 "VideoSupport.c" +#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp54_ = monitor; +#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp54__target = monitor_target; +#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp55_ = ctr; +#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp56_ = count; +#line 437 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp54_ ((guint64) _tmp55_, (guint64) _tmp56_, TRUE, _tmp54__target); +#line 4666 "VideoSupport.c" } -#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 4606 "VideoSupport.c" +#line 4670 "VideoSupport.c" } } } -#line 443 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp58_ = video_global; -#line 443 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp59_ = trashed_videos; -#line 443 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 444 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp60_ = video_global; -#line 444 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp61_ = offline_videos; -#line 444 "/home/jens/Source/shotwell/src/VideoSupport.vala" - media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 445 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp62_ = video_global; -#line 445 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp63_ = all_videos; -#line 445 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp64_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp63_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); -#line 445 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _tmp65_ = _tmp64_; -#line 445 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (_tmp65_); +#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp57_ = video_global; +#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp58_ = trashed_videos; +#line 440 "/home/jens/Source/shotwell/src/VideoSupport.vala" + media_source_collection_add_many_to_trash (G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp58_, GEE_TYPE_COLLECTION, GeeCollection)); +#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp59_ = video_global; +#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp60_ = offline_videos; +#line 441 "/home/jens/Source/shotwell/src/VideoSupport.vala" + media_source_collection_add_many_to_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp59_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp60_, GEE_TYPE_COLLECTION, GeeCollection)); +#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp61_ = video_global; +#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp62_ = all_videos; +#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp63_ = data_collection_add_many (G_TYPE_CHECK_INSTANCE_CAST (_tmp61_, TYPE_DATA_COLLECTION, DataCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, GEE_TYPE_COLLECTION, GeeCollection), NULL, NULL); +#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _tmp64_ = _tmp63_; +#line 442 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _g_object_unref0 (_tmp64_); #line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (offline_videos); #line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -4640,23 +4704,23 @@ void video_init (ProgressMonitor monitor, void* monitor_target) { #line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (all); #line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_object_unref0 (feature); + __g_list_free__g_object_unref0_0 (features); #line 376 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (registry); -#line 4644 "VideoSupport.c" +#line 4708 "VideoSupport.c" } gboolean video_has_interpreter_state_changed (void) { gboolean result = FALSE; gboolean _tmp0_; -#line 449 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_interpreter_state_changed; -#line 449 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 449 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 446 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 4657 "VideoSupport.c" +#line 4721 "VideoSupport.c" } @@ -4664,39 +4728,39 @@ void video_notify_normal_thumbs_regenerated (void) { gboolean _tmp0_; gboolean _tmp1_ = FALSE; gboolean _tmp2_; -#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_normal_regen_complete; -#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 450 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_) { -#line 454 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 451 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 4671 "VideoSupport.c" +#line 4735 "VideoSupport.c" } -#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:456: normal video thumbnail regeneration completed"); -#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_message ("VideoSupport.vala:453: normal video thumbnail regeneration completed"); +#line 455 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_normal_regen_complete = TRUE; -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video_normal_regen_complete; -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_) { -#line 4681 "VideoSupport.c" +#line 4745 "VideoSupport.c" gboolean _tmp3_; -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_offline_regen_complete; -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp3_; -#line 4687 "VideoSupport.c" +#line 4751 "VideoSupport.c" } else { -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = FALSE; -#line 4691 "VideoSupport.c" +#line 4755 "VideoSupport.c" } -#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 456 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_) { -#line 460 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 457 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_save_interpreter_state (); -#line 4697 "VideoSupport.c" +#line 4761 "VideoSupport.c" } } @@ -4705,69 +4769,69 @@ void video_notify_offline_thumbs_regenerated (void) { gboolean _tmp0_; gboolean _tmp1_ = FALSE; gboolean _tmp2_; -#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_offline_regen_complete; -#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 461 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_) { -#line 465 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 462 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 4712 "VideoSupport.c" +#line 4776 "VideoSupport.c" } -#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:467: offline video thumbnail regeneration completed"); -#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_message ("VideoSupport.vala:464: offline video thumbnail regeneration completed"); +#line 466 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_offline_regen_complete = TRUE; -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video_normal_regen_complete; -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_) { -#line 4722 "VideoSupport.c" +#line 4786 "VideoSupport.c" gboolean _tmp3_; -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_offline_regen_complete; -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp3_; -#line 4728 "VideoSupport.c" +#line 4792 "VideoSupport.c" } else { -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = FALSE; -#line 4732 "VideoSupport.c" +#line 4796 "VideoSupport.c" } -#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 467 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_) { -#line 471 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 468 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_save_interpreter_state (); -#line 4738 "VideoSupport.c" +#line 4802 "VideoSupport.c" } } static void video_save_interpreter_state (void) { gboolean _tmp0_; -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_interpreter_state_changed; -#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 472 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_) { -#line 4749 "VideoSupport.c" +#line 4813 "VideoSupport.c" ConfigFacade* _tmp1_; ConfigFacade* _tmp2_; gint _tmp3_; -#line 476 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_message ("VideoSupport.vala:476: saving video interpreter state to configuration" \ +#line 473 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_message ("VideoSupport.vala:473: saving video interpreter state to configuration" \ " system"); -#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = config_facade_get_instance (); -#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_current_state; -#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" configuration_facade_set_video_interpreter_state_cookie (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_CONFIGURATION_FACADE, ConfigurationFacade), _tmp3_); -#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 475 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp2_); -#line 479 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 476 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpreter_state_changed = FALSE; -#line 4767 "VideoSupport.c" +#line 4831 "VideoSupport.c" } } @@ -4801,27 +4865,27 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback ExporterCompletionCallback _tmp50_; void* _tmp50__target; GError * _inner_error_ = NULL; -#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 483 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (GEE_IS_COLLECTION (videos), NULL); -#line 488 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = videos; -#line 488 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = gee_collection_get_size (_tmp0_); -#line 488 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 488 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 485 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_ == 0) { -#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; -#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 486 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 4815 "VideoSupport.c" +#line 4879 "VideoSupport.c" } -#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = export_in_place; -#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 489 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp3_) { -#line 4821 "VideoSupport.c" +#line 4885 "VideoSupport.c" ExporterUI* temp_exporter = NULL; GeeCollection* _tmp4_; Scaling _tmp5_ = {0}; @@ -4833,47 +4897,47 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback ExporterUI* _tmp11_; ExporterCompletionCallback _tmp12_; void* _tmp12__target; -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = videos; -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" scaling_for_original (&_tmp5_); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" export_format_parameters_unmodified (&_tmp6_); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = exporter_new_for_temp_file (_tmp4_, &_tmp5_, &_tmp6_); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_; -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = exporter_ui_new (_tmp8_); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = _tmp9_; -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp8_); -#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 490 "/home/jens/Source/shotwell/src/VideoSupport.vala" temp_exporter = _tmp10_; -#line 495 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = temp_exporter; -#line 495 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = done; -#line 495 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12__target = done_target; -#line 495 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 492 "/home/jens/Source/shotwell/src/VideoSupport.vala" exporter_ui_export (_tmp11_, _tmp12_, _tmp12__target); -#line 496 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = temp_exporter; -#line 496 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 493 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 4863 "VideoSupport.c" +#line 4927 "VideoSupport.c" } -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = videos; -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = gee_collection_get_size (_tmp13_); -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = _tmp14_; -#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 497 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp15_ == 1) { -#line 4873 "VideoSupport.c" +#line 4937 "VideoSupport.c" Video* video = NULL; GFile* save_as = NULL; Video* _tmp24_; @@ -4882,22 +4946,22 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback GFile* _tmp27_; GFile* _tmp28_; GFile* _tmp29_; -#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 498 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = NULL; -#line 4884 "VideoSupport.c" +#line 4948 "VideoSupport.c" { GeeIterator* _v_it = NULL; GeeCollection* _tmp16_; GeeIterator* _tmp17_; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = videos; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _v_it = _tmp17_; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 4897 "VideoSupport.c" +#line 4961 "VideoSupport.c" GeeIterator* _tmp18_; gboolean _tmp19_; Video* v = NULL; @@ -4905,67 +4969,67 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback gpointer _tmp21_; Video* _tmp22_; Video* _tmp23_; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = _v_it; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = gee_iterator_next (_tmp18_); -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp19_) { -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 4913 "VideoSupport.c" +#line 4977 "VideoSupport.c" } -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = _v_it; -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = gee_iterator_get (_tmp20_); -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" v = (Video*) _tmp21_; -#line 503 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp22_ = v; -#line 503 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = _g_object_ref0 (_tmp22_); -#line 503 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 503 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = _tmp23_; -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (v); -#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 4933 "VideoSupport.c" +#line 4997 "VideoSupport.c" } -#line 502 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_v_it); -#line 4937 "VideoSupport.c" +#line 5001 "VideoSupport.c" } -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = video; -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = media_source_get_basename (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_ = _tmp25_; -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp27_ = export_ui_choose_file (_tmp26_); -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp28_ = _tmp27_; -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp26_); -#line 507 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 504 "/home/jens/Source/shotwell/src/VideoSupport.vala" save_as = _tmp28_; -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp29_ = save_as; -#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 505 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp29_ == NULL) { -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (save_as); -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 4965 "VideoSupport.c" +#line 5029 "VideoSupport.c" } { AppWindow* _tmp30_; @@ -4974,268 +5038,268 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback GFile* _tmp33_; AppWindow* _tmp34_; AppWindow* _tmp35_; -#line 512 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp30_ = app_window_get_instance (); -#line 512 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp31_ = _tmp30_; -#line 512 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" page_window_set_busy_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, TYPE_PAGE_WINDOW, PageWindow)); -#line 512 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 509 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp31_); -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp32_ = video; -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp33_ = save_as; -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_export (_tmp32_, _tmp33_, &_inner_error_); -#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 4990 "VideoSupport.c" - goto __catch501_g_error; +#line 5054 "VideoSupport.c" + goto __catch510_g_error; } -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp34_ = app_window_get_instance (); -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp35_ = _tmp34_; -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PAGE_WINDOW, PageWindow)); -#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp35_); -#line 5001 "VideoSupport.c" +#line 5065 "VideoSupport.c" } - goto __finally501; - __catch501_g_error: + goto __finally510; + __catch510_g_error: { GError* err = NULL; AppWindow* _tmp36_; AppWindow* _tmp37_; GFile* _tmp38_; -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 516 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp36_ = app_window_get_instance (); -#line 516 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp37_ = _tmp36_; -#line 516 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, TYPE_PAGE_WINDOW, PageWindow)); -#line 516 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp37_); -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp38_ = save_as; -#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 514 "/home/jens/Source/shotwell/src/VideoSupport.vala" export_error_dialog (_tmp38_, FALSE); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 5028 "VideoSupport.c" +#line 5092 "VideoSupport.c" } - __finally501: -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally510: +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (save_as); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 511 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 5043 "VideoSupport.c" +#line 5107 "VideoSupport.c" } -#line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; -#line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (save_as); -#line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 520 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 517 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5053 "VideoSupport.c" +#line 5117 "VideoSupport.c" } -#line 524 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp39_ = export_ui_choose_dir (_ ("Export Videos")); -#line 524 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 521 "/home/jens/Source/shotwell/src/VideoSupport.vala" export_dir = _tmp39_; -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp40_ = export_dir; -#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 522 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp40_ == NULL) { -#line 526 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; -#line 526 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (export_dir); -#line 526 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5069 "VideoSupport.c" +#line 5133 "VideoSupport.c" } -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp41_ = videos; -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp42_ = export_dir; -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" scaling_for_original (&_tmp43_); -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" export_format_parameters_unmodified (&_tmp44_); -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp45_ = exporter_new (_tmp41_, _tmp42_, &_tmp43_, &_tmp44_, FALSE); -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp46_ = _tmp45_; -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp47_ = exporter_ui_new (_tmp46_); -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp48_ = _tmp47_; -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp46_); -#line 528 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala" exporter = _tmp48_; -#line 530 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp49_ = exporter; -#line 530 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp50_ = done; -#line 530 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp50__target = done_target; -#line 530 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala" exporter_ui_export (_tmp49_, _tmp50_, _tmp50__target); -#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = exporter; -#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (export_dir); -#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 529 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5105 "VideoSupport.c" +#line 5169 "VideoSupport.c" } static void video_real_commit_backlinks (DataSource* base, SourceCollection* sources, const gchar* backlinks) { Video * self; GError * _inner_error_ = NULL; -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 532 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources)); -#line 5116 "VideoSupport.c" +#line 5180 "VideoSupport.c" { VideoTable* _tmp0_; VideoTable* _tmp1_; VideoID _tmp2_ = {0}; const gchar* _tmp3_; -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_table_get_instance (); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp2_); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = backlinks; -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_update_backlinks (_tmp1_, &_tmp2_, _tmp3_, &_inner_error_); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp1_); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 5138 "VideoSupport.c" - goto __catch502_database_error; +#line 5202 "VideoSupport.c" + goto __catch511_database_error; } -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5147 "VideoSupport.c" +#line 5211 "VideoSupport.c" } { VideoRow* _tmp4_; -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5155 "VideoSupport.c" +#line 5219 "VideoSupport.c" { VideoRow* _tmp5_; const gchar* _tmp6_; gchar* _tmp7_; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = backlinks; -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = g_strdup (_tmp6_); -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp5_->backlinks); -#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_->backlinks = _tmp7_; -#line 5170 "VideoSupport.c" +#line 5234 "VideoSupport.c" } - __finally503: + __finally512: { VideoRow* _tmp8_; -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->priv->backing_row; -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5179 "VideoSupport.c" +#line 5243 "VideoSupport.c" } -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 5185 "VideoSupport.c" - goto __catch502_database_error; +#line 5249 "VideoSupport.c" + goto __catch511_database_error; } -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5194 "VideoSupport.c" +#line 5258 "VideoSupport.c" } } } - goto __finally502; - __catch502_database_error: + goto __finally511; + __catch511_database_error: { GError* err = NULL; gchar* _tmp9_; gchar* _tmp10_; GError* _tmp11_; const gchar* _tmp12_; -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = _tmp9_; -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = err; -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = _tmp11_->message; -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_warning ("VideoSupport.vala:542: Unable to update link state for %s: %s", _tmp10_, _tmp12_); -#line 542 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_warning ("VideoSupport.vala:539: Unable to update link state for %s: %s", _tmp10_, _tmp12_); +#line 539 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp10_); -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 5224 "VideoSupport.c" +#line 5288 "VideoSupport.c" } - __finally502: -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally511: +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 533 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5235 "VideoSupport.c" +#line 5299 "VideoSupport.c" } } @@ -5244,19 +5308,19 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) { Video * self; gboolean result = FALSE; GError * _inner_error_ = NULL; -#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 543 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (event_id != NULL, FALSE); -#line 5248 "VideoSupport.c" +#line 5312 "VideoSupport.c" { VideoRow* _tmp0_; gboolean _tmp13_ = FALSE; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5256 "VideoSupport.c" +#line 5320 "VideoSupport.c" { gboolean committed = FALSE; VideoTable* _tmp1_; @@ -5267,70 +5331,70 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) { gboolean _tmp6_; gboolean _tmp7_; gboolean _tmp8_; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_table_get_instance (); -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->video_id; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = *event_id; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = video_table_set_event (_tmp2_, &_tmp4_, &_tmp5_); -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp6_; -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp2_); -#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala" committed = _tmp7_; -#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = committed; -#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp8_) { -#line 5289 "VideoSupport.c" +#line 5353 "VideoSupport.c" VideoRow* _tmp9_; EventID _tmp10_; -#line 551 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = self->priv->backing_row; -#line 551 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = *event_id; -#line 551 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 548 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_->event_id = _tmp10_; -#line 5298 "VideoSupport.c" +#line 5362 "VideoSupport.c" } -#line 553 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = committed; -#line 5302 "VideoSupport.c" +#line 5366 "VideoSupport.c" { VideoRow* _tmp11_; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = self->priv->backing_row; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5309 "VideoSupport.c" +#line 5373 "VideoSupport.c" } -#line 553 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5313 "VideoSupport.c" +#line 5377 "VideoSupport.c" } - __finally504: + __finally513: { VideoRow* _tmp12_; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5322 "VideoSupport.c" +#line 5386 "VideoSupport.c" } -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 547 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 544 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp13_; -#line 5330 "VideoSupport.c" +#line 5394 "VideoSupport.c" } } @@ -5345,44 +5409,44 @@ gboolean video_is_duplicate (GFile* file, const gchar* full_md5) { const gchar* _tmp6_; gboolean _tmp7_; gboolean _tmp8_; -#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 554 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail ((file == NULL) || G_IS_FILE (file), FALSE); -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = file; -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_ != NULL) { -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = TRUE; -#line 5353 "VideoSupport.c" +#line 5417 "VideoSupport.c" } else { const gchar* _tmp2_; -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = full_md5; -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = _tmp2_ != NULL; -#line 5360 "VideoSupport.c" +#line 5424 "VideoSupport.c" } -#line 558 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 555 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_assert (_tmp0_, "file != null || full_md5 != null"); -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_table_get_instance (); -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_; -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = file; -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = full_md5; -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video_table_has_duplicate (_tmp4_, _tmp5_, _tmp6_); -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_; -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp4_); -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp8_; -#line 560 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5382 "VideoSupport.c" +#line 5446 "VideoSupport.c" } @@ -5393,13 +5457,13 @@ ImportResult video_import_create (VideoImportParams* params, Video* * video) { VideoRow* _tmp9_; Video* _tmp10_; GError * _inner_error_ = NULL; -#line 566 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 563 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO_IMPORT_PARAMS (params), 0); -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_vala_video); -#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 564 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_video = NULL; -#line 5399 "VideoSupport.c" +#line 5463 "VideoSupport.c" { VideoID _tmp0_ = {0}; VideoTable* _tmp1_; @@ -5409,188 +5473,188 @@ ImportResult video_import_create (VideoImportParams* params, Video* * video) { VideoID _tmp5_ = {0}; VideoID _tmp6_; gboolean _tmp7_; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_table_get_instance (); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = params; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->row; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_add (_tmp2_, _tmp4_, &_tmp5_, &_inner_error_); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp2_); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = _tmp6_; -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 5429 "VideoSupport.c" - goto __catch505_database_error; +#line 5493 "VideoSupport.c" + goto __catch514_database_error; } -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 5438 "VideoSupport.c" +#line 5502 "VideoSupport.c" } -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video_id_is_invalid (&_tmp0_); -#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 568 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp7_) { -#line 572 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = IMPORT_RESULT_DATABASE_ERROR; -#line 572 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (video) { -#line 572 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" *video = _vala_video; -#line 5450 "VideoSupport.c" +#line 5514 "VideoSupport.c" } else { -#line 572 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_vala_video); -#line 5454 "VideoSupport.c" +#line 5518 "VideoSupport.c" } -#line 572 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5458 "VideoSupport.c" +#line 5522 "VideoSupport.c" } } - goto __finally505; - __catch505_database_error: + goto __finally514; + __catch514_database_error: { GError* err = NULL; -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = IMPORT_RESULT_DATABASE_ERROR; -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (video) { -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" *video = _vala_video; -#line 5477 "VideoSupport.c" +#line 5541 "VideoSupport.c" } else { -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_vala_video); -#line 5481 "VideoSupport.c" +#line 5545 "VideoSupport.c" } -#line 574 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5485 "VideoSupport.c" +#line 5549 "VideoSupport.c" } - __finally505: -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally514: +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 567 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 5496 "VideoSupport.c" +#line 5560 "VideoSupport.c" } -#line 578 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = params; -#line 578 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_->row; -#line 578 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = video_new (_tmp9_); -#line 578 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_vala_video); -#line 578 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 575 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_video = _tmp10_; -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = IMPORT_RESULT_SUCCESS; -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (video) { -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" *video = _vala_video; -#line 5514 "VideoSupport.c" +#line 5578 "VideoSupport.c" } else { -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_vala_video); -#line 5518 "VideoSupport.c" +#line 5582 "VideoSupport.c" } -#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5522 "VideoSupport.c" +#line 5586 "VideoSupport.c" } void video_import_failed (Video* video) { GError * _inner_error_ = NULL; -#line 583 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 580 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (video)); -#line 5530 "VideoSupport.c" +#line 5594 "VideoSupport.c" { VideoTable* _tmp0_; VideoTable* _tmp1_; Video* _tmp2_; VideoID _tmp3_ = {0}; -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_table_get_instance (); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video; -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (_tmp2_, &_tmp3_); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_remove (_tmp1_, &_tmp3_, &_inner_error_); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp1_); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 5552 "VideoSupport.c" - goto __catch506_database_error; +#line 5616 "VideoSupport.c" + goto __catch515_database_error; } -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 585 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5561 "VideoSupport.c" +#line 5625 "VideoSupport.c" } } - goto __finally506; - __catch506_database_error: + goto __finally515; + __catch515_database_error: { GError* err = NULL; GError* _tmp4_; -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 587 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = err; -#line 587 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp4_); #line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" + app_window_database_error (_tmp4_); +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 5579 "VideoSupport.c" +#line 5643 "VideoSupport.c" } - __finally506: -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally515: +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 581 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5590 "VideoSupport.c" +#line 5654 "VideoSupport.c" } } @@ -5605,24 +5669,24 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base, BackingFileState** _tmp13_; gint _tmp13__length1; GError * _inner_error_ = NULL; -#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 588 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = g_new0 (BackingFileState*, 1 + 1); -#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" backing = _tmp0_; -#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" backing_length1 = 1; -#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 589 "/home/jens/Source/shotwell/src/VideoSupport.vala" _backing_size_ = backing_length1; -#line 5615 "VideoSupport.c" +#line 5679 "VideoSupport.c" { VideoRow* _tmp1_; -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5622 "VideoSupport.c" +#line 5686 "VideoSupport.c" { VideoRow* _tmp2_; const gchar* _tmp3_; @@ -5634,69 +5698,69 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base, const gchar* _tmp9_; BackingFileState* _tmp10_; BackingFileState* _tmp11_; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->backing_row; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_->filepath; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _tmp4_->filesize; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp6_->timestamp; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->priv->backing_row; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_->md5; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = backing_file_state_new (_tmp3_, _tmp5_, _tmp7_, _tmp9_); -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _backing_file_state_unref0 (backing[0]); -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" backing[0] = _tmp10_; -#line 594 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = backing[0]; -#line 5658 "VideoSupport.c" +#line 5722 "VideoSupport.c" } - __finally507: + __finally516: { VideoRow* _tmp12_; -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5667 "VideoSupport.c" +#line 5731 "VideoSupport.c" } -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" backing = (_vala_array_free (backing, backing_length1, (GDestroyNotify) backing_file_state_unref), NULL); -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 590 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 5679 "VideoSupport.c" +#line 5743 "VideoSupport.c" } } -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = backing; -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13__length1 = backing_length1; -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (result_length1) { -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result_length1 = _tmp13__length1; -#line 5690 "VideoSupport.c" +#line 5754 "VideoSupport.c" } -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp13_; -#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 595 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5696 "VideoSupport.c" +#line 5760 "VideoSupport.c" } @@ -5708,33 +5772,33 @@ static GdkPixbuf* video_real_get_thumbnail (ThumbnailSource* base, gint scale, G GdkPixbuf* _tmp2_; GdkPixbuf* _tmp3_; GError * _inner_error_ = NULL; -#line 601 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 598 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = scale; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = thumbnail_cache_fetch (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), _tmp1_, &_inner_error_); -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = _tmp2_; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 5722 "VideoSupport.c" +#line 5786 "VideoSupport.c" } -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp0_; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = NULL; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp0_); -#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 599 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5734 "VideoSupport.c" +#line 5798 "VideoSupport.c" } @@ -5742,57 +5806,57 @@ static gchar* video_real_get_master_md5 (MediaSource* base) { Video * self; gchar* result = NULL; GError * _inner_error_ = NULL; -#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 602 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 5744 "VideoSupport.c" +#line 5808 "VideoSupport.c" { VideoRow* _tmp0_; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5751 "VideoSupport.c" +#line 5815 "VideoSupport.c" { VideoRow* _tmp1_; const gchar* _tmp2_; gchar* _tmp3_; -#line 607 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 607 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->md5; -#line 607 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = g_strdup (_tmp2_); -#line 607 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 5764 "VideoSupport.c" +#line 5828 "VideoSupport.c" { VideoRow* _tmp4_; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5771 "VideoSupport.c" +#line 5835 "VideoSupport.c" } -#line 607 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5775 "VideoSupport.c" +#line 5839 "VideoSupport.c" } - __finally508: + __finally517: { VideoRow* _tmp5_; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5784 "VideoSupport.c" +#line 5848 "VideoSupport.c" } -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 603 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 5792 "VideoSupport.c" +#line 5856 "VideoSupport.c" } } @@ -5804,31 +5868,31 @@ static GdkPixbuf* video_real_get_preview_pixbuf (MediaSource* base, Scaling* sca GdkPixbuf* _tmp0_; GdkPixbuf* _tmp1_; GError * _inner_error_ = NULL; -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 608 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (scaling != NULL, NULL); -#line 612 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = thumbnail_source_get_thumbnail (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), (gint) THUMBNAIL_CACHE_SIZE_BIG, &_inner_error_); -#line 612 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" pixbuf = _tmp0_; -#line 612 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 612 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); -#line 612 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 609 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 5818 "VideoSupport.c" +#line 5882 "VideoSupport.c" } -#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_NEAREST, TRUE); -#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (pixbuf); -#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5828 "VideoSupport.c" +#line 5892 "VideoSupport.c" } @@ -5845,69 +5909,69 @@ static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, gint scale GdkPixbuf* _tmp5_; GdkPixbuf* _tmp6_ = NULL; GdkPixbuf* _tmp7_; -#line 617 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 614 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video_reader_new (_tmp1_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp1_); -#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 615 "/home/jens/Source/shotwell/src/VideoSupport.vala" reader = _tmp3_; -#line 619 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = reader; -#line 619 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = video_reader_read_preview_frame (_tmp4_); -#line 619 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 616 "/home/jens/Source/shotwell/src/VideoSupport.vala" frame = _tmp5_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = frame; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp7_ != NULL) { -#line 5869 "VideoSupport.c" +#line 5933 "VideoSupport.c" GdkPixbuf* _tmp8_; GdkPixbuf* _tmp9_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = frame; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _g_object_ref0 (_tmp8_); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp6_); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp9_; -#line 5880 "VideoSupport.c" +#line 5944 "VideoSupport.c" } else { GdkPixbuf* _tmp10_; GdkPixbuf* _tmp11_; GdkPixbuf* _tmp12_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = resources_get_noninterpretable_badge_pixbuf (); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = _tmp10_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = gdk_pixbuf_copy (_tmp11_); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp6_); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp12_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp11_); -#line 5897 "VideoSupport.c" +#line 5961 "VideoSupport.c" } -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp6_; -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (frame); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (reader); -#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 618 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5907 "VideoSupport.c" +#line 5971 "VideoSupport.c" } @@ -5915,15 +5979,15 @@ static gchar* video_real_get_typename (DataSource* base) { Video * self; gchar* result = NULL; gchar* _tmp0_; -#line 624 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 621 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = g_strdup (VIDEO_TYPENAME); -#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 622 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5923 "VideoSupport.c" +#line 5987 "VideoSupport.c" } @@ -5932,71 +5996,71 @@ static gint64 video_real_get_instance_id (DataSource* base) { gint64 result = 0LL; VideoID _tmp0_ = {0}; gint64 _tmp1_; -#line 628 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 625 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp0_); -#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_.id; -#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 626 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 5942 "VideoSupport.c" +#line 6006 "VideoSupport.c" } static void video_real_get_import_id (MediaSource* base, ImportID* result) { Video * self; GError * _inner_error_ = NULL; -#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 629 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 5951 "VideoSupport.c" +#line 6015 "VideoSupport.c" { VideoRow* _tmp0_; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 5958 "VideoSupport.c" +#line 6022 "VideoSupport.c" { VideoRow* _tmp1_; ImportID _tmp2_; -#line 634 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 634 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->import_id; -#line 634 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp2_; -#line 5968 "VideoSupport.c" +#line 6032 "VideoSupport.c" { VideoRow* _tmp3_; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5975 "VideoSupport.c" +#line 6039 "VideoSupport.c" } -#line 634 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5979 "VideoSupport.c" +#line 6043 "VideoSupport.c" } - __finally509: + __finally518: { VideoRow* _tmp4_; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 5988 "VideoSupport.c" +#line 6052 "VideoSupport.c" } -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 630 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 5996 "VideoSupport.c" +#line 6060 "VideoSupport.c" } } @@ -6005,15 +6069,15 @@ static PhotoFileFormat video_real_get_preferred_thumbnail_format (ThumbnailSourc Video * self; PhotoFileFormat result = 0; PhotoFileFormat _tmp0_; -#line 638 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 635 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = photo_file_format_get_system_default_format (); -#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 636 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6013 "VideoSupport.c" +#line 6077 "VideoSupport.c" } @@ -6021,57 +6085,57 @@ static gchar* video_real_get_title (MediaSource* base) { Video * self; gchar* result = NULL; GError * _inner_error_ = NULL; -#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 639 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6023 "VideoSupport.c" +#line 6087 "VideoSupport.c" { VideoRow* _tmp0_; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6030 "VideoSupport.c" +#line 6094 "VideoSupport.c" { VideoRow* _tmp1_; const gchar* _tmp2_; gchar* _tmp3_; -#line 644 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 644 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->title; -#line 644 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = g_strdup (_tmp2_); -#line 644 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 6043 "VideoSupport.c" +#line 6107 "VideoSupport.c" { VideoRow* _tmp4_; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6050 "VideoSupport.c" +#line 6114 "VideoSupport.c" } -#line 644 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6054 "VideoSupport.c" +#line 6118 "VideoSupport.c" } - __finally510: + __finally519: { VideoRow* _tmp5_; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6063 "VideoSupport.c" +#line 6127 "VideoSupport.c" } -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 640 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 6071 "VideoSupport.c" +#line 6135 "VideoSupport.c" } } @@ -6084,22 +6148,22 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { Alteration* _tmp20_; Alteration* _tmp21_; GError * _inner_error_ = NULL; -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = title; -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_prep_title (_tmp0_); -#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 646 "/home/jens/Source/shotwell/src/VideoSupport.vala" new_title = _tmp1_; -#line 6092 "VideoSupport.c" +#line 6156 "VideoSupport.c" { VideoRow* _tmp2_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6099 "VideoSupport.c" +#line 6163 "VideoSupport.c" { VideoRow* _tmp3_; const gchar* _tmp4_; @@ -6107,28 +6171,28 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { VideoRow* _tmp16_; const gchar* _tmp17_; gchar* _tmp18_; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->title; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = new_title; -#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 649 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (g_strcmp0 (_tmp4_, _tmp5_) == 0) { -#line 6115 "VideoSupport.c" +#line 6179 "VideoSupport.c" { VideoRow* _tmp6_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6122 "VideoSupport.c" +#line 6186 "VideoSupport.c" } -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6128 "VideoSupport.c" +#line 6192 "VideoSupport.c" } { VideoTable* _tmp7_; @@ -6136,143 +6200,143 @@ static void video_real_set_title (MediaSource* base, const gchar* title) { VideoRow* _tmp9_; VideoID _tmp10_; const gchar* _tmp11_; -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video_table_get_instance (); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_; -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = self->priv->backing_row; -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = _tmp9_->video_id; -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = new_title; -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_title (_tmp8_, &_tmp10_, _tmp11_, &_inner_error_); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp8_); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 6154 "VideoSupport.c" - goto __catch512_database_error; +#line 6218 "VideoSupport.c" + goto __catch521_database_error; } { VideoRow* _tmp12_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6163 "VideoSupport.c" +#line 6227 "VideoSupport.c" } -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 653 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6173 "VideoSupport.c" +#line 6237 "VideoSupport.c" } } - goto __finally512; - __catch512_database_error: + goto __finally521; + __catch521_database_error: { GError* e = NULL; GError* _tmp13_; -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 658 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = e; -#line 658 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp13_); -#line 659 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 6191 "VideoSupport.c" +#line 6255 "VideoSupport.c" { VideoRow* _tmp14_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6198 "VideoSupport.c" +#line 6262 "VideoSupport.c" } -#line 659 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 659 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 656 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6204 "VideoSupport.c" +#line 6268 "VideoSupport.c" } - __finally512: -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally521: +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6209 "VideoSupport.c" +#line 6273 "VideoSupport.c" { VideoRow* _tmp15_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6216 "VideoSupport.c" +#line 6280 "VideoSupport.c" } -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6226 "VideoSupport.c" +#line 6290 "VideoSupport.c" } -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = self->priv->backing_row; -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = new_title; -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = g_strdup (_tmp17_); -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp16_->title); -#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 660 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_->title = _tmp18_; -#line 6238 "VideoSupport.c" +#line 6302 "VideoSupport.c" } - __finally511: + __finally520: { VideoRow* _tmp19_; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = self->priv->backing_row; -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6247 "VideoSupport.c" +#line 6311 "VideoSupport.c" } -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6259 "VideoSupport.c" +#line 6323 "VideoSupport.c" } } -#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = alteration_new ("metadata", "name"); -#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = _tmp20_; -#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp21_); -#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 663 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp21_); -#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 645 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_title); -#line 6272 "VideoSupport.c" +#line 6336 "VideoSupport.c" } @@ -6280,57 +6344,57 @@ static gchar* video_real_get_comment (MediaSource* base) { Video * self; gchar* result = NULL; GError * _inner_error_ = NULL; -#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 666 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6282 "VideoSupport.c" +#line 6346 "VideoSupport.c" { VideoRow* _tmp0_; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6289 "VideoSupport.c" +#line 6353 "VideoSupport.c" { VideoRow* _tmp1_; const gchar* _tmp2_; gchar* _tmp3_; -#line 671 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 671 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->comment; -#line 671 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = g_strdup (_tmp2_); -#line 671 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 6302 "VideoSupport.c" +#line 6366 "VideoSupport.c" { VideoRow* _tmp4_; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6309 "VideoSupport.c" +#line 6373 "VideoSupport.c" } -#line 671 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6313 "VideoSupport.c" +#line 6377 "VideoSupport.c" } - __finally513: + __finally522: { VideoRow* _tmp5_; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6322 "VideoSupport.c" +#line 6386 "VideoSupport.c" } -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 667 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 6330 "VideoSupport.c" +#line 6394 "VideoSupport.c" } } @@ -6344,22 +6408,22 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) Alteration* _tmp23_; Alteration* _tmp24_; GError * _inner_error_ = NULL; -#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 672 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = comment; -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_prep_title (_tmp0_); -#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 673 "/home/jens/Source/shotwell/src/VideoSupport.vala" new_comment = _tmp1_; -#line 6352 "VideoSupport.c" +#line 6416 "VideoSupport.c" { VideoRow* _tmp2_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6359 "VideoSupport.c" +#line 6423 "VideoSupport.c" { VideoRow* _tmp3_; const gchar* _tmp4_; @@ -6367,30 +6431,30 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) VideoRow* _tmp18_; const gchar* _tmp19_; gchar* _tmp20_; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->comment; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = new_comment; -#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 676 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (g_strcmp0 (_tmp4_, _tmp5_) == 0) { -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = TRUE; -#line 6377 "VideoSupport.c" +#line 6441 "VideoSupport.c" { VideoRow* _tmp6_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6384 "VideoSupport.c" +#line 6448 "VideoSupport.c" } -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6390 "VideoSupport.c" +#line 6454 "VideoSupport.c" } { VideoTable* _tmp7_; @@ -6398,154 +6462,154 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment) VideoRow* _tmp9_; VideoID _tmp10_; const gchar* _tmp11_; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video_table_get_instance (); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = self->priv->backing_row; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = _tmp9_->video_id; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = new_comment; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_comment (_tmp8_, &_tmp10_, _tmp11_, &_inner_error_); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp8_); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6414 "VideoSupport.c" +#line 6478 "VideoSupport.c" gboolean _tmp13_ = FALSE; -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 6418 "VideoSupport.c" - goto __catch515_database_error; +#line 6482 "VideoSupport.c" + goto __catch524_database_error; } { VideoRow* _tmp12_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6427 "VideoSupport.c" +#line 6491 "VideoSupport.c" } -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 680 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp13_; -#line 6437 "VideoSupport.c" +#line 6501 "VideoSupport.c" } } - goto __finally515; - __catch515_database_error: + goto __finally524; + __catch524_database_error: { GError* e = NULL; GError* _tmp14_; -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = e; -#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp14_); -#line 686 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = FALSE; -#line 686 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 6457 "VideoSupport.c" +#line 6521 "VideoSupport.c" { VideoRow* _tmp15_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6464 "VideoSupport.c" +#line 6528 "VideoSupport.c" } -#line 686 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 686 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 683 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6470 "VideoSupport.c" +#line 6534 "VideoSupport.c" } - __finally515: -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally524: +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6475 "VideoSupport.c" +#line 6539 "VideoSupport.c" gboolean _tmp17_ = FALSE; { VideoRow* _tmp16_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6483 "VideoSupport.c" +#line 6547 "VideoSupport.c" } -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp17_; -#line 6493 "VideoSupport.c" +#line 6557 "VideoSupport.c" } -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->backing_row; -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = new_comment; -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = g_strdup (_tmp19_); -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp18_->comment); -#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 687 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_->comment = _tmp20_; -#line 6505 "VideoSupport.c" +#line 6569 "VideoSupport.c" } - __finally514: + __finally523: { VideoRow* _tmp21_; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = self->priv->backing_row; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6514 "VideoSupport.c" +#line 6578 "VideoSupport.c" } -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6518 "VideoSupport.c" +#line 6582 "VideoSupport.c" gboolean _tmp22_ = FALSE; -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp22_; -#line 6528 "VideoSupport.c" +#line 6592 "VideoSupport.c" } } -#line 693 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = alteration_new ("metadata", "comment"); -#line 693 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = _tmp23_; -#line 693 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp24_); -#line 693 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 690 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp24_); -#line 695 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = TRUE; -#line 695 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_comment); -#line 695 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6545 "VideoSupport.c" +#line 6609 "VideoSupport.c" } @@ -6553,54 +6617,54 @@ static Rating video_real_get_rating (MediaSource* base) { Video * self; Rating result = 0; GError * _inner_error_ = NULL; -#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 696 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6555 "VideoSupport.c" +#line 6619 "VideoSupport.c" { VideoRow* _tmp0_; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6562 "VideoSupport.c" +#line 6626 "VideoSupport.c" { VideoRow* _tmp1_; Rating _tmp2_; -#line 701 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 701 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->rating; -#line 701 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 6572 "VideoSupport.c" +#line 6636 "VideoSupport.c" { VideoRow* _tmp3_; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6579 "VideoSupport.c" +#line 6643 "VideoSupport.c" } -#line 701 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6583 "VideoSupport.c" +#line 6647 "VideoSupport.c" } - __finally516: + __finally525: { VideoRow* _tmp4_; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6592 "VideoSupport.c" +#line 6656 "VideoSupport.c" } -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 697 "/home/jens/Source/shotwell/src/VideoSupport.vala" return 0; -#line 6600 "VideoSupport.c" +#line 6664 "VideoSupport.c" } } @@ -6610,234 +6674,234 @@ static void video_real_set_rating (MediaSource* base, Rating rating) { Alteration* _tmp19_; Alteration* _tmp20_; GError * _inner_error_ = NULL; -#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 702 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6612 "VideoSupport.c" +#line 6676 "VideoSupport.c" { VideoRow* _tmp0_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6619 "VideoSupport.c" +#line 6683 "VideoSupport.c" { gboolean _tmp1_ = FALSE; Rating _tmp2_; gboolean _tmp3_; VideoRow* _tmp16_; Rating _tmp17_; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = rating; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = rating_is_valid (_tmp2_); -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp3_) { -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = TRUE; -#line 6634 "VideoSupport.c" +#line 6698 "VideoSupport.c" } else { Rating _tmp4_; VideoRow* _tmp5_; Rating _tmp6_; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = rating; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_->rating; -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp4_ == _tmp6_; -#line 6647 "VideoSupport.c" +#line 6711 "VideoSupport.c" } -#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_) { -#line 6651 "VideoSupport.c" +#line 6715 "VideoSupport.c" { VideoRow* _tmp7_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6658 "VideoSupport.c" +#line 6722 "VideoSupport.c" } -#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6662 "VideoSupport.c" +#line 6726 "VideoSupport.c" } { VideoTable* _tmp8_; VideoTable* _tmp9_; VideoID _tmp10_ = {0}; Rating _tmp11_; -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = video_table_get_instance (); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_; -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp10_); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = rating; -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_rating (_tmp9_, &_tmp10_, _tmp11_, &_inner_error_); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp9_); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 6685 "VideoSupport.c" - goto __catch518_database_error; +#line 6749 "VideoSupport.c" + goto __catch527_database_error; } { VideoRow* _tmp12_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6694 "VideoSupport.c" +#line 6758 "VideoSupport.c" } -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 708 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6702 "VideoSupport.c" +#line 6766 "VideoSupport.c" } } - goto __finally518; - __catch518_database_error: + goto __finally527; + __catch527_database_error: { GError* e = NULL; GError* _tmp13_; -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 713 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = e; -#line 713 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp13_); -#line 714 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 6720 "VideoSupport.c" +#line 6784 "VideoSupport.c" { VideoRow* _tmp14_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6727 "VideoSupport.c" +#line 6791 "VideoSupport.c" } -#line 714 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 711 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6731 "VideoSupport.c" +#line 6795 "VideoSupport.c" } - __finally518: -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally527: +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 6736 "VideoSupport.c" +#line 6800 "VideoSupport.c" { VideoRow* _tmp15_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6743 "VideoSupport.c" +#line 6807 "VideoSupport.c" } -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6751 "VideoSupport.c" +#line 6815 "VideoSupport.c" } -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = self->priv->backing_row; -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = rating; -#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 715 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_->rating = _tmp17_; -#line 6759 "VideoSupport.c" +#line 6823 "VideoSupport.c" } - __finally517: + __finally526: { VideoRow* _tmp18_; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->backing_row; -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6768 "VideoSupport.c" +#line 6832 "VideoSupport.c" } -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 703 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6778 "VideoSupport.c" +#line 6842 "VideoSupport.c" } } -#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = alteration_new ("metadata", "rating"); -#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = _tmp19_; -#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_); -#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 718 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp20_); -#line 6789 "VideoSupport.c" +#line 6853 "VideoSupport.c" } static void video_real_increase_rating (MediaSource* base) { Video * self; GError * _inner_error_ = NULL; -#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 721 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6798 "VideoSupport.c" +#line 6862 "VideoSupport.c" { VideoRow* _tmp0_; -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6805 "VideoSupport.c" +#line 6869 "VideoSupport.c" { VideoRow* _tmp1_; Rating _tmp2_; Rating _tmp3_; -#line 726 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 726 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->rating; -#line 726 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = rating_increase (_tmp2_); -#line 726 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala" media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); -#line 6818 "VideoSupport.c" +#line 6882 "VideoSupport.c" } - __finally519: + __finally528: { VideoRow* _tmp4_; -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6827 "VideoSupport.c" +#line 6891 "VideoSupport.c" } -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 722 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6837 "VideoSupport.c" +#line 6901 "VideoSupport.c" } } } @@ -6846,48 +6910,48 @@ static void video_real_increase_rating (MediaSource* base) { static void video_real_decrease_rating (MediaSource* base) { Video * self; GError * _inner_error_ = NULL; -#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 727 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 6848 "VideoSupport.c" +#line 6912 "VideoSupport.c" { VideoRow* _tmp0_; -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 6855 "VideoSupport.c" +#line 6919 "VideoSupport.c" { VideoRow* _tmp1_; Rating _tmp2_; Rating _tmp3_; -#line 732 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 732 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->rating; -#line 732 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = rating_decrease (_tmp2_); -#line 732 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala" media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_); -#line 6868 "VideoSupport.c" +#line 6932 "VideoSupport.c" } - __finally520: + __finally529: { VideoRow* _tmp4_; -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 6877 "VideoSupport.c" +#line 6941 "VideoSupport.c" } -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 728 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 6887 "VideoSupport.c" +#line 6951 "VideoSupport.c" } } } @@ -6897,15 +6961,15 @@ static gboolean video_real_is_trashed (MediaSource* base) { Video * self; gboolean result = FALSE; gboolean _tmp0_; -#line 736 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 733 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_is_flag_set (self, VIDEO_FLAG_TRASH); -#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 734 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6905 "VideoSupport.c" +#line 6969 "VideoSupport.c" } @@ -6913,25 +6977,25 @@ static gboolean video_real_is_offline (Monitorable* base) { Video * self; gboolean result = FALSE; gboolean _tmp0_; -#line 740 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 737 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_is_flag_set (self, VIDEO_FLAG_OFFLINE); -#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 738 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 6921 "VideoSupport.c" +#line 6985 "VideoSupport.c" } static void video_real_mark_offline (Monitorable* base) { Video * self; -#line 744 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 741 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 745 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 742 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_add_flags (self, VIDEO_FLAG_OFFLINE, NULL); -#line 6931 "VideoSupport.c" +#line 6995 "VideoSupport.c" } @@ -6939,61 +7003,61 @@ static void video_real_mark_online (Monitorable* base) { Video * self; gboolean _tmp0_ = FALSE; gboolean _tmp1_; -#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 745 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 746 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_remove_flags (self, VIDEO_FLAG_OFFLINE, NULL); -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_get_is_interpretable (self); -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp1_) { -#line 6947 "VideoSupport.c" +#line 7011 "VideoSupport.c" gboolean _tmp2_; -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video_has_interpreter_state_changed (); -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = _tmp2_; -#line 6953 "VideoSupport.c" +#line 7017 "VideoSupport.c" } else { -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = FALSE; -#line 6957 "VideoSupport.c" +#line 7021 "VideoSupport.c" } -#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 748 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_) { -#line 6961 "VideoSupport.c" +#line 7025 "VideoSupport.c" VideoInterpretableResults* _tmp3_; VideoInterpretableResults* _tmp4_; -#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_check_is_interpretable (self); -#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_; -#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpretable_results_foreground_finish (_tmp4_); -#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 749 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_interpretable_results_unref0 (_tmp4_); -#line 6972 "VideoSupport.c" +#line 7036 "VideoSupport.c" } } static void video_real_trash (MediaSource* base) { Video * self; -#line 755 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 752 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 756 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 753 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_add_flags (self, VIDEO_FLAG_TRASH, NULL); -#line 6983 "VideoSupport.c" +#line 7047 "VideoSupport.c" } static void video_real_untrash (MediaSource* base) { Video * self; -#line 759 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 756 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 760 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 757 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_remove_flags (self, VIDEO_FLAG_TRASH, NULL); -#line 6993 "VideoSupport.c" +#line 7057 "VideoSupport.c" } @@ -7001,15 +7065,15 @@ static gboolean video_real_is_flagged (Flaggable* base) { Video * self; gboolean result = FALSE; gboolean _tmp0_; -#line 763 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 760 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_is_flag_set (self, VIDEO_FLAG_FLAGGED); -#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 761 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7009 "VideoSupport.c" +#line 7073 "VideoSupport.c" } @@ -7017,17 +7081,17 @@ static void video_real_mark_flagged (Flaggable* base) { Video * self; Alteration* _tmp0_; Alteration* _tmp1_; -#line 767 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 764 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = alteration_new ("metadata", "flagged"); -#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_add_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_); -#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 765 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp1_); -#line 7027 "VideoSupport.c" +#line 7091 "VideoSupport.c" } @@ -7035,71 +7099,71 @@ static void video_real_mark_unflagged (Flaggable* base) { Video * self; Alteration* _tmp0_; Alteration* _tmp1_; -#line 771 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 768 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = alteration_new ("metadata", "flagged"); -#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_remove_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_); -#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 769 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp1_); -#line 7045 "VideoSupport.c" +#line 7109 "VideoSupport.c" } static void video_real_get_event_id (MediaSource* base, EventID* result) { Video * self; GError * _inner_error_ = NULL; -#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 772 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7054 "VideoSupport.c" +#line 7118 "VideoSupport.c" { VideoRow* _tmp0_; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7061 "VideoSupport.c" +#line 7125 "VideoSupport.c" { VideoRow* _tmp1_; EventID _tmp2_; -#line 777 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 777 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->event_id; -#line 777 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp2_; -#line 7071 "VideoSupport.c" +#line 7135 "VideoSupport.c" { VideoRow* _tmp3_; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7078 "VideoSupport.c" +#line 7142 "VideoSupport.c" } -#line 777 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7082 "VideoSupport.c" +#line 7146 "VideoSupport.c" } - __finally521: + __finally530: { VideoRow* _tmp4_; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7091 "VideoSupport.c" +#line 7155 "VideoSupport.c" } -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 773 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7099 "VideoSupport.c" +#line 7163 "VideoSupport.c" } } @@ -7108,16 +7172,16 @@ static gchar* video_real_to_string (DataObject* base) { Video * self; gchar* result = NULL; GError * _inner_error_ = NULL; -#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 778 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7110 "VideoSupport.c" +#line 7174 "VideoSupport.c" { VideoRow* _tmp0_; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7117 "VideoSupport.c" +#line 7181 "VideoSupport.c" { VideoRow* _tmp1_; VideoID _tmp2_; @@ -7128,111 +7192,111 @@ static gchar* video_real_to_string (DataObject* base) { const gchar* _tmp7_; gchar* _tmp8_; gchar* _tmp9_; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->video_id; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_.id; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = g_strdup_printf ("%" G_GINT64_FORMAT, _tmp3_); -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _tmp4_; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp6_->filepath; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = g_strdup_printf ("[%s] %s", _tmp5_, _tmp7_); -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_; -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp5_); -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp9_; -#line 7150 "VideoSupport.c" +#line 7214 "VideoSupport.c" { VideoRow* _tmp10_; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = self->priv->backing_row; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7157 "VideoSupport.c" +#line 7221 "VideoSupport.c" } -#line 783 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7161 "VideoSupport.c" +#line 7225 "VideoSupport.c" } - __finally522: + __finally531: { VideoRow* _tmp11_; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = self->priv->backing_row; -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7170 "VideoSupport.c" +#line 7234 "VideoSupport.c" } -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 779 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 7178 "VideoSupport.c" +#line 7242 "VideoSupport.c" } } void video_get_video_id (Video* self, VideoID* result) { GError * _inner_error_ = NULL; -#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 784 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (self)); -#line 7187 "VideoSupport.c" +#line 7251 "VideoSupport.c" { VideoRow* _tmp0_; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7194 "VideoSupport.c" +#line 7258 "VideoSupport.c" { VideoRow* _tmp1_; VideoID _tmp2_; -#line 789 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 789 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->video_id; -#line 789 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp2_; -#line 7204 "VideoSupport.c" +#line 7268 "VideoSupport.c" { VideoRow* _tmp3_; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7211 "VideoSupport.c" +#line 7275 "VideoSupport.c" } -#line 789 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7215 "VideoSupport.c" +#line 7279 "VideoSupport.c" } - __finally523: + __finally532: { VideoRow* _tmp4_; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7224 "VideoSupport.c" +#line 7288 "VideoSupport.c" } -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 785 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7232 "VideoSupport.c" +#line 7296 "VideoSupport.c" } } @@ -7241,55 +7305,55 @@ static time_t video_real_get_exposure_time (Dateable* base) { Video * self; time_t result = 0; GError * _inner_error_ = NULL; -#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 790 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7243 "VideoSupport.c" +#line 7307 "VideoSupport.c" { VideoRow* _tmp0_; time_t _tmp5_ = 0; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7251 "VideoSupport.c" +#line 7315 "VideoSupport.c" { VideoRow* _tmp1_; time_t _tmp2_; -#line 795 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 795 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->exposure_time; -#line 795 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 7261 "VideoSupport.c" +#line 7325 "VideoSupport.c" { VideoRow* _tmp3_; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7268 "VideoSupport.c" +#line 7332 "VideoSupport.c" } -#line 795 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7272 "VideoSupport.c" +#line 7336 "VideoSupport.c" } - __finally524: + __finally533: { VideoRow* _tmp4_; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7281 "VideoSupport.c" +#line 7345 "VideoSupport.c" } -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 791 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp5_; -#line 7289 "VideoSupport.c" +#line 7353 "VideoSupport.c" } } @@ -7299,16 +7363,16 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) { Alteration* _tmp12_; Alteration* _tmp13_; GError * _inner_error_ = NULL; -#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 796 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7301 "VideoSupport.c" +#line 7365 "VideoSupport.c" { VideoRow* _tmp0_; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7308 "VideoSupport.c" +#line 7372 "VideoSupport.c" { VideoRow* _tmp9_; time_t _tmp10_; @@ -7318,165 +7382,165 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) { VideoRow* _tmp3_; VideoID _tmp4_; time_t _tmp5_; -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_table_get_instance (); -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->video_id; -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = time; -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_exposure_time (_tmp2_, &_tmp4_, _tmp5_, &_inner_error_); -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp2_); -#line 802 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7334 "VideoSupport.c" - goto __catch526_g_error; +#line 7398 "VideoSupport.c" + goto __catch535_g_error; } } - goto __finally526; - __catch526_g_error: + goto __finally535; + __catch535_g_error: { GError* e = NULL; GError* _tmp6_; const gchar* _tmp7_; -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 804 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = e; -#line 804 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp6_->message; -#line 804 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:804: Warning - %s", _tmp7_); #line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_debug ("VideoSupport.vala:801: Warning - %s", _tmp7_); +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 7356 "VideoSupport.c" +#line 7420 "VideoSupport.c" } - __finally526: -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally535: +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7361 "VideoSupport.c" +#line 7425 "VideoSupport.c" { VideoRow* _tmp8_; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->priv->backing_row; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7368 "VideoSupport.c" +#line 7432 "VideoSupport.c" } -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7376 "VideoSupport.c" +#line 7440 "VideoSupport.c" } -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = self->priv->backing_row; -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = time; -#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 803 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_->exposure_time = _tmp10_; -#line 7384 "VideoSupport.c" +#line 7448 "VideoSupport.c" } - __finally525: + __finally534: { VideoRow* _tmp11_; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = self->priv->backing_row; -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7393 "VideoSupport.c" +#line 7457 "VideoSupport.c" } -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 797 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7403 "VideoSupport.c" +#line 7467 "VideoSupport.c" } } -#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = alteration_new ("metadata", "exposure-time"); -#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = _tmp12_; -#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_); -#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 806 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp13_); -#line 7414 "VideoSupport.c" +#line 7478 "VideoSupport.c" } void video_get_frame_dimensions (Video* self, Dimensions* result) { GError * _inner_error_ = NULL; -#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 809 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (self)); -#line 7422 "VideoSupport.c" +#line 7486 "VideoSupport.c" { VideoRow* _tmp0_; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7429 "VideoSupport.c" +#line 7493 "VideoSupport.c" { VideoRow* _tmp1_; gint _tmp2_; VideoRow* _tmp3_; gint _tmp4_; Dimensions _tmp5_ = {0}; -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->width; -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->height; -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" dimensions_init (&_tmp5_, _tmp2_, _tmp4_); -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp5_; -#line 7448 "VideoSupport.c" +#line 7512 "VideoSupport.c" { VideoRow* _tmp6_; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7455 "VideoSupport.c" +#line 7519 "VideoSupport.c" } -#line 814 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7459 "VideoSupport.c" +#line 7523 "VideoSupport.c" } - __finally527: + __finally536: { VideoRow* _tmp7_; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = self->priv->backing_row; -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7468 "VideoSupport.c" +#line 7532 "VideoSupport.c" } -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 810 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7476 "VideoSupport.c" +#line 7540 "VideoSupport.c" } } @@ -7484,15 +7548,15 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) { static void video_real_get_dimensions (MediaSource* base, PhotoException disallowed_steps, Dimensions* result) { Video * self; Dimensions _tmp0_ = {0}; -#line 818 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 815 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_frame_dimensions (self, &_tmp0_); -#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp0_; -#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 816 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7492 "VideoSupport.c" +#line 7556 "VideoSupport.c" } @@ -7500,15 +7564,15 @@ static guint64 video_real_get_filesize (MediaSource* base) { Video * self; guint64 result = 0ULL; guint64 _tmp0_; -#line 822 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 819 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 820 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7508 "VideoSupport.c" +#line 7572 "VideoSupport.c" } @@ -7516,55 +7580,55 @@ static guint64 video_real_get_master_filesize (MediaSource* base) { Video * self; guint64 result = 0ULL; GError * _inner_error_ = NULL; -#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 823 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7518 "VideoSupport.c" +#line 7582 "VideoSupport.c" { VideoRow* _tmp0_; guint64 _tmp5_ = 0ULL; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7526 "VideoSupport.c" +#line 7590 "VideoSupport.c" { VideoRow* _tmp1_; gint64 _tmp2_; -#line 828 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 828 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->filesize; -#line 828 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = (guint64) _tmp2_; -#line 7536 "VideoSupport.c" +#line 7600 "VideoSupport.c" { VideoRow* _tmp3_; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7543 "VideoSupport.c" +#line 7607 "VideoSupport.c" } -#line 828 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7547 "VideoSupport.c" +#line 7611 "VideoSupport.c" } - __finally528: + __finally537: { VideoRow* _tmp4_; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7556 "VideoSupport.c" +#line 7620 "VideoSupport.c" } -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 824 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp5_; -#line 7564 "VideoSupport.c" +#line 7628 "VideoSupport.c" } } @@ -7573,55 +7637,55 @@ static time_t video_real_get_timestamp (MediaSource* base) { Video * self; time_t result = 0; GError * _inner_error_ = NULL; -#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 829 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 7575 "VideoSupport.c" +#line 7639 "VideoSupport.c" { VideoRow* _tmp0_; time_t _tmp5_ = 0; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7583 "VideoSupport.c" +#line 7647 "VideoSupport.c" { VideoRow* _tmp1_; time_t _tmp2_; -#line 834 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 834 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->timestamp; -#line 834 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 7593 "VideoSupport.c" +#line 7657 "VideoSupport.c" { VideoRow* _tmp3_; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7600 "VideoSupport.c" +#line 7664 "VideoSupport.c" } -#line 834 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7604 "VideoSupport.c" +#line 7668 "VideoSupport.c" } - __finally529: + __finally538: { VideoRow* _tmp4_; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7613 "VideoSupport.c" +#line 7677 "VideoSupport.c" } -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 830 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp5_; -#line 7621 "VideoSupport.c" +#line 7685 "VideoSupport.c" } } @@ -7634,25 +7698,25 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) Alteration* _tmp19_; Alteration* _tmp20_; GError * _inner_error_ = NULL; -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 835 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (G_IS_FILE_INFO (info)); -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = info; -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_file_info_get_modification_time (_tmp0_, &_tmp1_); -#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 836 "/home/jens/Source/shotwell/src/VideoSupport.vala" time_val = _tmp1_; -#line 7644 "VideoSupport.c" +#line 7708 "VideoSupport.c" { { VideoRow* _tmp2_; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->backing_row; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7652 "VideoSupport.c" +#line 7716 "VideoSupport.c" { VideoRow* _tmp3_; time_t _tmp4_; @@ -7667,182 +7731,182 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info) VideoRow* _tmp14_; GTimeVal _tmp15_; glong _tmp16_; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->timestamp; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = time_val; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_.tv_sec; -#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp4_ == ((time_t) _tmp6_)) { -#line 7677 "VideoSupport.c" +#line 7741 "VideoSupport.c" { VideoRow* _tmp7_; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = self->priv->backing_row; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7684 "VideoSupport.c" +#line 7748 "VideoSupport.c" } -#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7688 "VideoSupport.c" +#line 7752 "VideoSupport.c" } -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = video_table_get_instance (); -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_; -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = self->priv->backing_row; -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = _tmp10_->video_id; -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = time_val; -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = _tmp12_.tv_sec; -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_timestamp (_tmp9_, &_tmp11_, (time_t) _tmp13_, &_inner_error_); -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp9_); -#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 7708 "VideoSupport.c" - goto __finally531; +#line 7772 "VideoSupport.c" + goto __finally540; } -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = self->priv->backing_row; -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = time_val; -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = _tmp15_.tv_sec; -#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 844 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_->timestamp = (time_t) _tmp16_; -#line 7719 "VideoSupport.c" +#line 7783 "VideoSupport.c" } - __finally531: + __finally540: { VideoRow* _tmp17_; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = self->priv->backing_row; -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7728 "VideoSupport.c" +#line 7792 "VideoSupport.c" } -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 7734 "VideoSupport.c" - goto __catch530_database_error; +#line 7798 "VideoSupport.c" + goto __catch539_database_error; } -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 839 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7743 "VideoSupport.c" +#line 7807 "VideoSupport.c" } } } - goto __finally530; - __catch530_database_error: + goto __finally539; + __catch539_database_error: { GError* err = NULL; GError* _tmp18_; -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 850 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = err; -#line 850 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 847 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp18_); -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 849 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7764 "VideoSupport.c" +#line 7828 "VideoSupport.c" } - __finally530: -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally539: +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7775 "VideoSupport.c" +#line 7839 "VideoSupport.c" } -#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = alteration_new ("metadata", "master-timestamp"); -#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = _tmp19_; -#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_); -#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 852 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp20_); -#line 7785 "VideoSupport.c" +#line 7849 "VideoSupport.c" } gchar* video_get_filename (Video* self) { gchar* result = NULL; GError * _inner_error_ = NULL; -#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 855 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 7794 "VideoSupport.c" +#line 7858 "VideoSupport.c" { VideoRow* _tmp0_; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7801 "VideoSupport.c" +#line 7865 "VideoSupport.c" { VideoRow* _tmp1_; const gchar* _tmp2_; gchar* _tmp3_; -#line 860 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 860 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->filepath; -#line 860 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = g_strdup (_tmp2_); -#line 860 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 7814 "VideoSupport.c" +#line 7878 "VideoSupport.c" { VideoRow* _tmp4_; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7821 "VideoSupport.c" +#line 7885 "VideoSupport.c" } -#line 860 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7825 "VideoSupport.c" +#line 7889 "VideoSupport.c" } - __finally532: + __finally541: { VideoRow* _tmp5_; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7834 "VideoSupport.c" +#line 7898 "VideoSupport.c" } -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 856 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 7842 "VideoSupport.c" +#line 7906 "VideoSupport.c" } } @@ -7854,23 +7918,23 @@ static GFile* video_real_get_file (MediaSource* base) { gchar* _tmp1_; GFile* _tmp2_; GFile* _tmp3_; -#line 864 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 861 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_get_filename (self); -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = g_file_new_for_path (_tmp1_); -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp1_); -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 862 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7870 "VideoSupport.c" +#line 7934 "VideoSupport.c" } @@ -7878,15 +7942,15 @@ static GFile* video_real_get_master_file (MediaSource* base) { Video * self; GFile* result = NULL; GFile* _tmp0_; -#line 868 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 865 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 866 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7886 "VideoSupport.c" +#line 7950 "VideoSupport.c" } @@ -7898,94 +7962,94 @@ void video_export (Video* self, GFile* dest_file, GError** error) { GFile* _tmp3_; GFile* _tmp4_; GError * _inner_error_ = NULL; -#line 872 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (self)); -#line 872 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (G_IS_FILE (dest_file)); -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_get_filename (self); -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = g_file_new_for_path (_tmp1_); -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp1_); -#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 870 "/home/jens/Source/shotwell/src/VideoSupport.vala" source_file = _tmp3_; -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = dest_file; -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_file_copy (source_file, _tmp4_, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &_inner_error_); -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (source_file); -#line 874 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 7926 "VideoSupport.c" +#line 7990 "VideoSupport.c" } -#line 872 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 869 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (source_file); -#line 7930 "VideoSupport.c" +#line 7994 "VideoSupport.c" } gdouble video_get_clip_duration (Video* self) { gdouble result = 0.0; GError * _inner_error_ = NULL; -#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 875 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), 0.0); -#line 7939 "VideoSupport.c" +#line 8003 "VideoSupport.c" { VideoRow* _tmp0_; gdouble _tmp5_ = 0.0; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 7947 "VideoSupport.c" +#line 8011 "VideoSupport.c" { VideoRow* _tmp1_; gdouble _tmp2_; -#line 880 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 880 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->clip_duration; -#line 880 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 7957 "VideoSupport.c" +#line 8021 "VideoSupport.c" { VideoRow* _tmp3_; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7964 "VideoSupport.c" +#line 8028 "VideoSupport.c" } -#line 880 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 7968 "VideoSupport.c" +#line 8032 "VideoSupport.c" } - __finally533: + __finally542: { VideoRow* _tmp4_; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 7977 "VideoSupport.c" +#line 8041 "VideoSupport.c" } -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 876 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp5_; -#line 7985 "VideoSupport.c" +#line 8049 "VideoSupport.c" } } @@ -7993,124 +8057,124 @@ gdouble video_get_clip_duration (Video* self) { gboolean video_get_is_interpretable (Video* self) { gboolean result = FALSE; GError * _inner_error_ = NULL; -#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 881 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), FALSE); -#line 7995 "VideoSupport.c" +#line 8059 "VideoSupport.c" { VideoRow* _tmp0_; gboolean _tmp5_ = FALSE; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8003 "VideoSupport.c" +#line 8067 "VideoSupport.c" { VideoRow* _tmp1_; gboolean _tmp2_; -#line 886 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 886 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->is_interpretable; -#line 886 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 8013 "VideoSupport.c" +#line 8077 "VideoSupport.c" { VideoRow* _tmp3_; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8020 "VideoSupport.c" +#line 8084 "VideoSupport.c" } -#line 886 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8024 "VideoSupport.c" +#line 8088 "VideoSupport.c" } - __finally534: + __finally543: { VideoRow* _tmp4_; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8033 "VideoSupport.c" +#line 8097 "VideoSupport.c" } -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 882 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp5_; -#line 8041 "VideoSupport.c" +#line 8105 "VideoSupport.c" } } static void video_set_is_interpretable (Video* self, gboolean is_interpretable) { GError * _inner_error_ = NULL; -#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 887 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (self)); -#line 8050 "VideoSupport.c" +#line 8114 "VideoSupport.c" { VideoRow* _tmp0_; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8057 "VideoSupport.c" +#line 8121 "VideoSupport.c" { VideoRow* _tmp1_; gboolean _tmp2_; gboolean _tmp3_; VideoRow* _tmp5_; gboolean _tmp6_; -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->is_interpretable; -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = is_interpretable; -#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_ == _tmp3_) { -#line 8072 "VideoSupport.c" +#line 8136 "VideoSupport.c" { VideoRow* _tmp4_; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = self->priv->backing_row; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8079 "VideoSupport.c" +#line 8143 "VideoSupport.c" } -#line 893 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8083 "VideoSupport.c" +#line 8147 "VideoSupport.c" } -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = is_interpretable; -#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_->is_interpretable = _tmp6_; -#line 8091 "VideoSupport.c" +#line 8155 "VideoSupport.c" } - __finally535: + __finally544: { VideoRow* _tmp7_; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = self->priv->backing_row; -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8100 "VideoSupport.c" +#line 8164 "VideoSupport.c" } -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 888 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8110 "VideoSupport.c" +#line 8174 "VideoSupport.c" } } { @@ -8118,61 +8182,61 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable) VideoTable* _tmp9_; VideoID _tmp10_ = {0}; gboolean _tmp11_; -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = video_table_get_instance (); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_; -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp10_); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = is_interpretable; -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_update_is_interpretable (_tmp9_, &_tmp10_, _tmp11_, &_inner_error_); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp9_); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 8134 "VideoSupport.c" - goto __catch536_database_error; +#line 8198 "VideoSupport.c" + goto __catch545_database_error; } -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 899 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 896 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8143 "VideoSupport.c" +#line 8207 "VideoSupport.c" } } - goto __finally536; - __catch536_database_error: + goto __finally545; + __catch545_database_error: { GError* e = NULL; GError* _tmp12_; -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 901 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = e; -#line 901 "/home/jens/Source/shotwell/src/VideoSupport.vala" - app_window_database_error (_tmp12_); #line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" + app_window_database_error (_tmp12_); +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 8161 "VideoSupport.c" +#line 8225 "VideoSupport.c" } - __finally536: -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally545: +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 895 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8172 "VideoSupport.c" +#line 8236 "VideoSupport.c" } } @@ -8199,235 +8263,235 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) { GdkPixbuf* _tmp27_; GdkPixbuf* _tmp28_; GError * _inner_error_ = NULL; -#line 908 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 905 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 909 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_interpretable_results_new (self); -#line 909 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 906 "/home/jens/Source/shotwell/src/VideoSupport.vala" results = _tmp0_; -#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 908 "/home/jens/Source/shotwell/src/VideoSupport.vala" clip_duration = -1.0; -#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 909 "/home/jens/Source/shotwell/src/VideoSupport.vala" preview_frame = NULL; -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_reader_new (_tmp2_); -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_; -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp2_); -#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 911 "/home/jens/Source/shotwell/src/VideoSupport.vala" backing_file_reader = _tmp4_; -#line 8221 "VideoSupport.c" +#line 8285 "VideoSupport.c" { gdouble _tmp5_ = 0.0; VideoReader* _tmp6_; gdouble _tmp7_; VideoReader* _tmp8_; GdkPixbuf* _tmp9_; -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = backing_file_reader; -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video_reader_read_clip_duration (_tmp6_, &_inner_error_); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _tmp7_; -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == VIDEO_ERROR) { -#line 8238 "VideoSupport.c" - goto __catch537_video_error; +#line 8302 "VideoSupport.c" + goto __catch546_video_error; } -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_interpretable_results_unref0 (results); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 8253 "VideoSupport.c" +#line 8317 "VideoSupport.c" } -#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala" clip_duration = _tmp5_; -#line 917 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = backing_file_reader; -#line 917 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = video_reader_read_preview_frame (_tmp8_); -#line 917 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 917 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala" preview_frame = _tmp9_; -#line 8265 "VideoSupport.c" +#line 8329 "VideoSupport.c" } - goto __finally537; - __catch537_video_error: + goto __finally546; + __catch546_video_error: { GError* e = NULL; VideoInterpretableResults* _tmp10_; gboolean _tmp11_; VideoInterpretableResults* _tmp12_; -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = results; -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = video_get_is_interpretable (self); -#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 918 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_->update_interpretable = _tmp11_; -#line 922 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = results; -#line 922 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 919 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_->is_interpretable = FALSE; -#line 924 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = results; -#line 924 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 924 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 924 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 924 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 921 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8298 "VideoSupport.c" +#line 8362 "VideoSupport.c" } - __finally537: -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally546: +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_interpretable_results_unref0 (results); -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 912 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 8315 "VideoSupport.c" +#line 8379 "VideoSupport.c" } -#line 928 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 925 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = video_get_is_interpretable (self); -#line 928 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 925 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp13_) { -#line 8321 "VideoSupport.c" +#line 8385 "VideoSupport.c" VideoInterpretableResults* _tmp14_; VideoInterpretableResults* _tmp15_; -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = results; -#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 926 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_->update_interpretable = FALSE; -#line 930 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = results; -#line 930 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_->is_interpretable = TRUE; -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = results; -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 929 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8340 "VideoSupport.c" +#line 8404 "VideoSupport.c" } -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = _tmp16_; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = g_file_get_basename (_tmp17_); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = _tmp18_; -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_debug ("VideoSupport.vala:935: video %s has become interpretable", _tmp19_); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_debug ("VideoSupport.vala:932: video %s has become interpretable", _tmp19_); +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp19_); -#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 932 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp17_); -#line 8356 "VideoSupport.c" +#line 8420 "VideoSupport.c" { VideoRow* _tmp20_; -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = self->priv->backing_row; -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8363 "VideoSupport.c" +#line 8427 "VideoSupport.c" { VideoRow* _tmp21_; gdouble _tmp22_; -#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = self->priv->backing_row; -#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp22_ = clip_duration; -#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 936 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_->clip_duration = _tmp22_; -#line 8373 "VideoSupport.c" +#line 8437 "VideoSupport.c" } - __finally538: + __finally547: { VideoRow* _tmp23_; -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = self->priv->backing_row; -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8382 "VideoSupport.c" +#line 8446 "VideoSupport.c" } -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_interpretable_results_unref0 (results); -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 935 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 8398 "VideoSupport.c" +#line 8462 "VideoSupport.c" } } -#line 942 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = results; -#line 942 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 939 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_->update_interpretable = TRUE; -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = results; -#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 940 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_->is_interpretable = TRUE; -#line 944 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_ = results; -#line 944 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp27_ = preview_frame; -#line 944 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp28_ = _g_object_ref0 (_tmp27_); -#line 944 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp26_->new_thumbnail); -#line 944 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_->new_thumbnail = _tmp28_; -#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = results; -#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (backing_file_reader); -#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (preview_frame); -#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 943 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8427 "VideoSupport.c" +#line 8491 "VideoSupport.c" } @@ -8436,81 +8500,81 @@ static void video_real_destroy (DataSource* base) { VideoID video_id = {0}; VideoID _tmp0_ = {0}; GError * _inner_error_ = NULL; -#line 949 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 946 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 950 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp0_); -#line 950 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 947 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_id = _tmp0_; -#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 949 "/home/jens/Source/shotwell/src/VideoSupport.vala" thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 8444 "VideoSupport.c" +#line 8508 "VideoSupport.c" { VideoTable* _tmp1_; VideoTable* _tmp2_; VideoID _tmp3_; -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_table_get_instance (); -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_id; -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_remove (_tmp2_, &_tmp3_, &_inner_error_); -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp2_); -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 8463 "VideoSupport.c" - goto __catch539_database_error; +#line 8527 "VideoSupport.c" + goto __catch548_database_error; } -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 955 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 952 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8472 "VideoSupport.c" +#line 8536 "VideoSupport.c" } } - goto __finally539; - __catch539_database_error: + goto __finally548; + __catch548_database_error: { GError* err = NULL; gchar* _tmp4_; gchar* _tmp5_; -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = data_object_to_string (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject)); -#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _tmp4_; -#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" - g_error ("VideoSupport.vala:957: failed to remove video %s from video table", _tmp5_); -#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" - _g_free0 (_tmp5_); #line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" + g_error ("VideoSupport.vala:954: failed to remove video %s from video table", _tmp5_); +#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" + _g_free0 (_tmp5_); +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 8495 "VideoSupport.c" +#line 8559 "VideoSupport.c" } - __finally539: -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally548: +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 8506 "VideoSupport.c" +#line 8570 "VideoSupport.c" } -#line 960 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 957 "/home/jens/Source/shotwell/src/VideoSupport.vala" DATA_SOURCE_CLASS (video_parent_class)->destroy (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource)); -#line 8510 "VideoSupport.c" +#line 8574 "VideoSupport.c" } @@ -8523,41 +8587,41 @@ static gboolean video_real_internal_delete_backing (DataSource* base, GError** e gboolean _tmp2_ = FALSE; gboolean _tmp3_; GError * _inner_error_ = NULL; -#line 963 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 960 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 961 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_delete_original_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 961 "/home/jens/Source/shotwell/src/VideoSupport.vala" ret = _tmp0_; -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = DATA_SOURCE_CLASS (video_parent_class)->internal_delete_backing (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_VIDEO_SOURCE, VideoSource), TYPE_DATA_SOURCE, DataSource), &_inner_error_); -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp3_; -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8535 "VideoSupport.c" +#line 8599 "VideoSupport.c" gboolean _tmp4_ = FALSE; -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp4_; -#line 8541 "VideoSupport.c" +#line 8605 "VideoSupport.c" } -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_) { -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = ret; -#line 8547 "VideoSupport.c" +#line 8611 "VideoSupport.c" } else { -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = FALSE; -#line 8551 "VideoSupport.c" +#line 8615 "VideoSupport.c" } -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 964 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8557 "VideoSupport.c" +#line 8621 "VideoSupport.c" } @@ -8566,41 +8630,41 @@ static void video_notify_flags_altered (Video* self, Alteration* additional_alte Alteration* _tmp0_; Alteration* _tmp1_; Alteration* _tmp5_; -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (self)); -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration)); -#line 971 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = alteration_new ("metadata", "flags"); -#line 971 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 968 "/home/jens/Source/shotwell/src/VideoSupport.vala" alteration = _tmp0_; -#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = additional_alteration; -#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_ != NULL) { -#line 8578 "VideoSupport.c" +#line 8642 "VideoSupport.c" Alteration* _tmp2_; Alteration* _tmp3_; Alteration* _tmp4_; -#line 973 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = alteration; -#line 973 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = additional_alteration; -#line 973 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = alteration_compress (_tmp2_, _tmp3_); -#line 973 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (alteration); -#line 973 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" alteration = _tmp4_; -#line 8592 "VideoSupport.c" +#line 8656 "VideoSupport.c" } -#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = alteration; -#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp5_); -#line 970 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 967 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (alteration); -#line 8600 "VideoSupport.c" +#line 8664 "VideoSupport.c" } @@ -8609,18 +8673,18 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition guint64 new_flags = 0ULL; Alteration* _tmp27_; GError * _inner_error_ = NULL; -#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), 0ULL); -#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 975 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 8613 "VideoSupport.c" +#line 8677 "VideoSupport.c" { VideoRow* _tmp0_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8620 "VideoSupport.c" +#line 8684 "VideoSupport.c" { VideoRow* _tmp1_; guint64 _tmp2_; @@ -8631,185 +8695,185 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition guint64 _tmp7_; VideoRow* _tmp23_; guint64 _tmp24_; -#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->flags; -#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = flags_to_add; -#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = media_source_internal_add_flags (_tmp2_, _tmp3_); -#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 978 "/home/jens/Source/shotwell/src/VideoSupport.vala" new_flags = _tmp4_; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_->flags; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = new_flags; -#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp6_ == _tmp7_) { -#line 8649 "VideoSupport.c" +#line 8713 "VideoSupport.c" VideoRow* _tmp8_; guint64 _tmp9_; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->priv->backing_row; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_->flags; -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp9_; -#line 8658 "VideoSupport.c" +#line 8722 "VideoSupport.c" { VideoRow* _tmp10_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8665 "VideoSupport.c" +#line 8729 "VideoSupport.c" } -#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8669 "VideoSupport.c" +#line 8733 "VideoSupport.c" } { VideoTable* _tmp11_; VideoTable* _tmp12_; VideoID _tmp13_ = {0}; guint64 _tmp14_; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = video_table_get_instance (); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = _tmp11_; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp13_); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = new_flags; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_flags (_tmp12_, &_tmp13_, _tmp14_, &_inner_error_); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp12_); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8690 "VideoSupport.c" +#line 8754 "VideoSupport.c" guint64 _tmp16_ = 0ULL; -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 8694 "VideoSupport.c" - goto __catch541_database_error; +#line 8758 "VideoSupport.c" + goto __catch550_database_error; } { VideoRow* _tmp15_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8703 "VideoSupport.c" +#line 8767 "VideoSupport.c" } -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 983 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp16_; -#line 8711 "VideoSupport.c" +#line 8775 "VideoSupport.c" } } - goto __finally541; - __catch541_database_error: + goto __finally550; + __catch550_database_error: { GError* e = NULL; GError* _tmp17_; VideoRow* _tmp18_; guint64 _tmp19_; -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = e; -#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp17_); -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->backing_row; -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = _tmp18_->flags; -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp19_; -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 8737 "VideoSupport.c" +#line 8801 "VideoSupport.c" { VideoRow* _tmp20_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8744 "VideoSupport.c" +#line 8808 "VideoSupport.c" } -#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 986 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8748 "VideoSupport.c" +#line 8812 "VideoSupport.c" } - __finally541: -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally550: +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8753 "VideoSupport.c" +#line 8817 "VideoSupport.c" guint64 _tmp22_ = 0ULL; { VideoRow* _tmp21_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8761 "VideoSupport.c" +#line 8825 "VideoSupport.c" } -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp22_; -#line 8769 "VideoSupport.c" +#line 8833 "VideoSupport.c" } -#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = self->priv->backing_row; -#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = new_flags; -#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 989 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_->flags = _tmp24_; -#line 8777 "VideoSupport.c" +#line 8841 "VideoSupport.c" } - __finally540: + __finally549: { VideoRow* _tmp25_; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = self->priv->backing_row; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8786 "VideoSupport.c" +#line 8850 "VideoSupport.c" } -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8790 "VideoSupport.c" +#line 8854 "VideoSupport.c" guint64 _tmp26_ = 0ULL; -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp26_; -#line 8798 "VideoSupport.c" +#line 8862 "VideoSupport.c" } } -#line 995 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp27_ = additional_alteration; -#line 995 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 992 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_notify_flags_altered (self, _tmp27_); -#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = new_flags; -#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8809 "VideoSupport.c" +#line 8873 "VideoSupport.c" } @@ -8818,18 +8882,18 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad guint64 new_flags = 0ULL; Alteration* _tmp27_; GError * _inner_error_ = NULL; -#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), 0ULL); -#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 997 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL); -#line 8822 "VideoSupport.c" +#line 8886 "VideoSupport.c" { VideoRow* _tmp0_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 8829 "VideoSupport.c" +#line 8893 "VideoSupport.c" { VideoRow* _tmp1_; guint64 _tmp2_; @@ -8840,246 +8904,246 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad guint64 _tmp7_; VideoRow* _tmp23_; guint64 _tmp24_; -#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->flags; -#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = flags_to_remove; -#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = media_source_internal_remove_flags (_tmp2_, _tmp3_); -#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1000 "/home/jens/Source/shotwell/src/VideoSupport.vala" new_flags = _tmp4_; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_->flags; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = new_flags; -#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp6_ == _tmp7_) { -#line 8858 "VideoSupport.c" +#line 8922 "VideoSupport.c" VideoRow* _tmp8_; guint64 _tmp9_; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->priv->backing_row; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_->flags; -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp9_; -#line 8867 "VideoSupport.c" +#line 8931 "VideoSupport.c" { VideoRow* _tmp10_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8874 "VideoSupport.c" +#line 8938 "VideoSupport.c" } -#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8878 "VideoSupport.c" +#line 8942 "VideoSupport.c" } { VideoTable* _tmp11_; VideoTable* _tmp12_; VideoID _tmp13_ = {0}; guint64 _tmp14_; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = video_table_get_instance (); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = _tmp11_; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (self, &_tmp13_); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = new_flags; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_flags (_tmp12_, &_tmp13_, _tmp14_, &_inner_error_); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp12_); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8899 "VideoSupport.c" +#line 8963 "VideoSupport.c" guint64 _tmp16_ = 0ULL; -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 8903 "VideoSupport.c" - goto __catch543_database_error; +#line 8967 "VideoSupport.c" + goto __catch552_database_error; } { VideoRow* _tmp15_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8912 "VideoSupport.c" +#line 8976 "VideoSupport.c" } -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1005 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp16_; -#line 8920 "VideoSupport.c" +#line 8984 "VideoSupport.c" } } - goto __finally543; - __catch543_database_error: + goto __finally552; + __catch552_database_error: { GError* e = NULL; GError* _tmp17_; VideoRow* _tmp18_; guint64 _tmp19_; -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" e = _inner_error_; -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = e; -#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp17_); -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->backing_row; -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = _tmp18_->flags; -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp19_; -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (e); -#line 8946 "VideoSupport.c" +#line 9010 "VideoSupport.c" { VideoRow* _tmp20_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8953 "VideoSupport.c" +#line 9017 "VideoSupport.c" } -#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1008 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 8957 "VideoSupport.c" +#line 9021 "VideoSupport.c" } - __finally543: -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally552: +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8962 "VideoSupport.c" +#line 9026 "VideoSupport.c" guint64 _tmp22_ = 0ULL; { VideoRow* _tmp21_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8970 "VideoSupport.c" +#line 9034 "VideoSupport.c" } -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp22_; -#line 8978 "VideoSupport.c" +#line 9042 "VideoSupport.c" } -#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = self->priv->backing_row; -#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = new_flags; -#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1011 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_->flags = _tmp24_; -#line 8986 "VideoSupport.c" +#line 9050 "VideoSupport.c" } - __finally542: + __finally551: { VideoRow* _tmp25_; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = self->priv->backing_row; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 8995 "VideoSupport.c" +#line 9059 "VideoSupport.c" } -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 8999 "VideoSupport.c" +#line 9063 "VideoSupport.c" guint64 _tmp26_ = 0ULL; -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp26_; -#line 9007 "VideoSupport.c" +#line 9071 "VideoSupport.c" } } -#line 1017 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp27_ = additional_alteration; -#line 1017 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1014 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_notify_flags_altered (self, _tmp27_); -#line 1019 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = new_flags; -#line 1019 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 9018 "VideoSupport.c" +#line 9082 "VideoSupport.c" } gboolean video_is_flag_set (Video* self, guint64 flag) { gboolean result = FALSE; GError * _inner_error_ = NULL; -#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1019 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), FALSE); -#line 9027 "VideoSupport.c" +#line 9091 "VideoSupport.c" { VideoRow* _tmp0_; gboolean _tmp7_ = FALSE; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->backing_row; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 9035 "VideoSupport.c" +#line 9099 "VideoSupport.c" { VideoRow* _tmp1_; guint64 _tmp2_; guint64 _tmp3_; gboolean _tmp4_; -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = self->priv->backing_row; -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_->flags; -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = flag; -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = media_source_internal_is_flag_set (_tmp2_, _tmp3_); -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp4_; -#line 9051 "VideoSupport.c" +#line 9115 "VideoSupport.c" { VideoRow* _tmp5_; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = self->priv->backing_row; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9058 "VideoSupport.c" +#line 9122 "VideoSupport.c" } -#line 1024 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 9062 "VideoSupport.c" +#line 9126 "VideoSupport.c" } - __finally544: + __finally553: { VideoRow* _tmp6_; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9071 "VideoSupport.c" +#line 9135 "VideoSupport.c" } -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1020 "/home/jens/Source/shotwell/src/VideoSupport.vala" return _tmp7_; -#line 9079 "VideoSupport.c" +#line 9143 "VideoSupport.c" } } @@ -9098,27 +9162,27 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { Alteration* _tmp25_; Alteration* _tmp26_; GError * _inner_error_ = NULL; -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (G_IS_FILE (file)); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = file; -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = g_file_get_path (_tmp0_); -#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1026 "/home/jens/Source/shotwell/src/VideoSupport.vala" new_filepath = _tmp1_; -#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1027 "/home/jens/Source/shotwell/src/VideoSupport.vala" old_filepath = NULL; -#line 9110 "VideoSupport.c" +#line 9174 "VideoSupport.c" { { VideoRow* _tmp2_; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->backing_row; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_lock (&self->priv->__lock_backing_row); -#line 9118 "VideoSupport.c" +#line 9182 "VideoSupport.c" { VideoRow* _tmp3_; const gchar* _tmp4_; @@ -9134,169 +9198,169 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) { VideoRow* _tmp15_; const gchar* _tmp16_; gchar* _tmp17_; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->priv->backing_row; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_->filepath; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = new_filepath; -#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (g_strcmp0 (_tmp4_, _tmp5_) == 0) { -#line 9142 "VideoSupport.c" +#line 9206 "VideoSupport.c" { VideoRow* _tmp6_; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->priv->backing_row; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9149 "VideoSupport.c" +#line 9213 "VideoSupport.c" } -#line 1034 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1034 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_filepath); -#line 1034 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 9157 "VideoSupport.c" +#line 9221 "VideoSupport.c" } -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = self->priv->backing_row; -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_->filepath; -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = g_strdup (_tmp8_); -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala" old_filepath = _tmp9_; -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = video_table_get_instance (); -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = _tmp10_; -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = self->priv->backing_row; -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = _tmp12_->video_id; -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = new_filepath; -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_table_set_filepath (_tmp11_, &_tmp13_, _tmp14_, &_inner_error_); -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp11_); -#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9185 "VideoSupport.c" - goto __finally546; +#line 9249 "VideoSupport.c" + goto __finally555; } -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = self->priv->backing_row; -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = new_filepath; -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = g_strdup (_tmp16_); -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (_tmp15_->filepath); -#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1036 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_->filepath = _tmp17_; -#line 9198 "VideoSupport.c" +#line 9262 "VideoSupport.c" } - __finally546: + __finally555: { VideoRow* _tmp18_; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = self->priv->backing_row; -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_unlock (&self->priv->__lock_backing_row); -#line 9207 "VideoSupport.c" +#line 9271 "VideoSupport.c" } -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_inner_error_->domain == DATABASE_ERROR) { -#line 9213 "VideoSupport.c" - goto __catch545_database_error; +#line 9277 "VideoSupport.c" + goto __catch554_database_error; } -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_filepath); -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 9226 "VideoSupport.c" +#line 9290 "VideoSupport.c" } } } - goto __finally545; - __catch545_database_error: + goto __finally554; + __catch554_database_error: { GError* err = NULL; GError* _tmp19_; -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" err = _inner_error_; -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" _inner_error_ = NULL; -#line 1042 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = err; -#line 1042 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1039 "/home/jens/Source/shotwell/src/VideoSupport.vala" app_window_database_error (_tmp19_); -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_filepath); -#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1041 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 9251 "VideoSupport.c" +#line 9315 "VideoSupport.c" } - __finally545: -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" + __finally554: +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_filepath); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_clear_error (&_inner_error_); -#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 9266 "VideoSupport.c" +#line 9330 "VideoSupport.c" } -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = old_filepath; -#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1044 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_assert (_tmp20_ != NULL, "old_filepath != null"); -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = old_filepath; -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp22_ = g_file_new_for_path (_tmp21_); -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = _tmp22_; -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = file; -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" media_source_notify_master_replaced (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp23_, _tmp24_); -#line 1048 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1045 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp23_); -#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = alteration_new_from_list ("backing:master,metadata:name"); -#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_ = _tmp25_; -#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp26_); -#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1047 "/home/jens/Source/shotwell/src/VideoSupport.vala" _alteration_unref0 (_tmp26_); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (old_filepath); -#line 1028 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1025 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_free0 (new_filepath); -#line 9296 "VideoSupport.c" +#line 9360 "VideoSupport.c" } @@ -9311,45 +9375,45 @@ VideoMetadata* video_read_metadata (Video* self, GError** error) { VideoMetadata* _tmp6_; VideoMetadata* _tmp7_; GError * _inner_error_ = NULL; -#line 1053 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1050 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO (self), NULL); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = _tmp1_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_reader_new (_tmp2_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = video_reader_read_metadata (_tmp4_, &_inner_error_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _tmp5_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_reader_unref0 (_tmp4_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp2_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = _tmp6_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_propagate_error (error, _inner_error_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 9337 "VideoSupport.c" +#line 9401 "VideoSupport.c" } -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = _tmp0_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = NULL; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp7_; -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" _media_metadata_unref0 (_tmp0_); -#line 1054 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1051 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 9349 "VideoSupport.c" +#line 9413 "VideoSupport.c" } @@ -9371,14 +9435,14 @@ VideoInterpretableResults* video_interpretable_results_construct (GType object_t self->video = _tmp1_; #line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self; -#line 9371 "VideoSupport.c" +#line 9435 "VideoSupport.c" } VideoInterpretableResults* video_interpretable_results_new (Video* video) { #line 336 "/home/jens/Source/shotwell/src/VideoSupport.vala" return video_interpretable_results_construct (VIDEO_TYPE_INTERPRETABLE_RESULTS, video); -#line 9378 "VideoSupport.c" +#line 9442 "VideoSupport.c" } @@ -9392,7 +9456,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s _tmp0_ = self->update_interpretable; #line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_) { -#line 9392 "VideoSupport.c" +#line 9456 "VideoSupport.c" Video* _tmp1_; gboolean _tmp2_; #line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -9401,13 +9465,13 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s _tmp2_ = self->is_interpretable; #line 342 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_set_is_interpretable (_tmp1_, _tmp2_); -#line 9401 "VideoSupport.c" +#line 9465 "VideoSupport.c" } #line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = self->new_thumbnail; #line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp3_ != NULL) { -#line 9407 "VideoSupport.c" +#line 9471 "VideoSupport.c" { Video* _tmp4_; GdkPixbuf* _tmp5_; @@ -9422,8 +9486,8 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_BIG, _tmp5_, &_inner_error_); #line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9422 "VideoSupport.c" - goto __catch547_g_error; +#line 9486 "VideoSupport.c" + goto __catch556_g_error; } #line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = self->video; @@ -9433,17 +9497,17 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s thumbnail_cache_replace (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource), THUMBNAIL_CACHE_SIZE_MEDIUM, _tmp7_, &_inner_error_); #line 347 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 9433 "VideoSupport.c" - goto __catch547_g_error; +#line 9497 "VideoSupport.c" + goto __catch556_g_error; } #line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = self->video; #line 349 "/home/jens/Source/shotwell/src/VideoSupport.vala" thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource)); -#line 9440 "VideoSupport.c" +#line 9504 "VideoSupport.c" } - goto __finally547; - __catch547_g_error: + goto __finally556; + __catch556_g_error: { GError* err = NULL; Video* _tmp9_; @@ -9471,9 +9535,9 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s _g_free0 (_tmp11_); #line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_error_free0 (err); -#line 9471 "VideoSupport.c" +#line 9535 "VideoSupport.c" } - __finally547: + __finally556: #line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" @@ -9482,7 +9546,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s g_clear_error (&_inner_error_); #line 345 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 9482 "VideoSupport.c" +#line 9546 "VideoSupport.c" } } } @@ -9491,7 +9555,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s static void video_value_interpretable_results_init (GValue* value) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 9491 "VideoSupport.c" +#line 9555 "VideoSupport.c" } @@ -9500,7 +9564,7 @@ static void video_value_interpretable_results_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpretable_results_unref (value->data[0].v_pointer); -#line 9500 "VideoSupport.c" +#line 9564 "VideoSupport.c" } } @@ -9510,11 +9574,11 @@ static void video_value_interpretable_results_copy_value (const GValue* src_valu if (src_value->data[0].v_pointer) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = video_interpretable_results_ref (src_value->data[0].v_pointer); -#line 9510 "VideoSupport.c" +#line 9574 "VideoSupport.c" } else { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" dest_value->data[0].v_pointer = NULL; -#line 9514 "VideoSupport.c" +#line 9578 "VideoSupport.c" } } @@ -9522,37 +9586,37 @@ static void video_value_interpretable_results_copy_value (const GValue* src_valu static gpointer video_value_interpretable_results_peek_pointer (const GValue* value) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 9522 "VideoSupport.c" +#line 9586 "VideoSupport.c" } static gchar* video_value_interpretable_results_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (collect_values[0].v_pointer) { -#line 9529 "VideoSupport.c" +#line 9593 "VideoSupport.c" VideoInterpretableResults * object; object = collect_values[0].v_pointer; #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (object->parent_instance.g_class == NULL) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 9536 "VideoSupport.c" +#line 9600 "VideoSupport.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.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 9540 "VideoSupport.c" +#line 9604 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = video_interpretable_results_ref (object); -#line 9544 "VideoSupport.c" +#line 9608 "VideoSupport.c" } else { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 9548 "VideoSupport.c" +#line 9612 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 9552 "VideoSupport.c" +#line 9616 "VideoSupport.c" } @@ -9563,25 +9627,25 @@ static gchar* video_value_interpretable_results_lcopy_value (const GValue* value if (!object_p) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 9563 "VideoSupport.c" +#line 9627 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!value->data[0].v_pointer) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = NULL; -#line 9569 "VideoSupport.c" +#line 9633 "VideoSupport.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = value->data[0].v_pointer; -#line 9573 "VideoSupport.c" +#line 9637 "VideoSupport.c" } else { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" *object_p = video_interpretable_results_ref (value->data[0].v_pointer); -#line 9577 "VideoSupport.c" +#line 9641 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return NULL; -#line 9581 "VideoSupport.c" +#line 9645 "VideoSupport.c" } @@ -9595,7 +9659,7 @@ GParamSpec* video_param_spec_interpretable_results (const gchar* name, const gch G_PARAM_SPEC (spec)->value_type = object_type; #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return G_PARAM_SPEC (spec); -#line 9595 "VideoSupport.c" +#line 9659 "VideoSupport.c" } @@ -9604,7 +9668,7 @@ gpointer video_value_get_interpretable_results (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, VIDEO_TYPE_INTERPRETABLE_RESULTS), NULL); #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return value->data[0].v_pointer; -#line 9604 "VideoSupport.c" +#line 9668 "VideoSupport.c" } @@ -9624,17 +9688,17 @@ void video_value_set_interpretable_results (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpretable_results_ref (value->data[0].v_pointer); -#line 9624 "VideoSupport.c" +#line 9688 "VideoSupport.c" } else { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 9628 "VideoSupport.c" +#line 9692 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpretable_results_unref (old); -#line 9634 "VideoSupport.c" +#line 9698 "VideoSupport.c" } } @@ -9653,17 +9717,17 @@ void video_value_take_interpretable_results (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = v_object; -#line 9653 "VideoSupport.c" +#line 9717 "VideoSupport.c" } else { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" value->data[0].v_pointer = NULL; -#line 9657 "VideoSupport.c" +#line 9721 "VideoSupport.c" } #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (old) { #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_interpretable_results_unref (old); -#line 9663 "VideoSupport.c" +#line 9727 "VideoSupport.c" } } @@ -9673,7 +9737,7 @@ static void video_interpretable_results_class_init (VideoInterpretableResultsCla video_interpretable_results_parent_class = g_type_class_peek_parent (klass); #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((VideoInterpretableResultsClass *) klass)->finalize = video_interpretable_results_finalize; -#line 9673 "VideoSupport.c" +#line 9737 "VideoSupport.c" } @@ -9686,7 +9750,7 @@ static void video_interpretable_results_instance_init (VideoInterpretableResults self->new_thumbnail = NULL; #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->ref_count = 1; -#line 9686 "VideoSupport.c" +#line 9750 "VideoSupport.c" } @@ -9700,7 +9764,7 @@ static void video_interpretable_results_finalize (VideoInterpretableResults * ob _g_object_unref0 (self->video); #line 334 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (self->new_thumbnail); -#line 9700 "VideoSupport.c" +#line 9764 "VideoSupport.c" } @@ -9725,7 +9789,7 @@ gpointer video_interpretable_results_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" return instance; -#line 9725 "VideoSupport.c" +#line 9789 "VideoSupport.c" } @@ -9738,7 +9802,7 @@ void video_interpretable_results_unref (gpointer instance) { VIDEO_INTERPRETABLE_RESULTS_GET_CLASS (self)->finalize (self); #line 330 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_type_free_instance ((GTypeInstance *) self); -#line 9738 "VideoSupport.c" +#line 9802 "VideoSupport.c" } } @@ -9822,7 +9886,7 @@ static void video_class_init (VideoClass * klass) { ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*) (DataSource *, GError**)) video_real_internal_delete_backing; #line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" G_OBJECT_CLASS (klass)->finalize = video_finalize; -#line 9822 "VideoSupport.c" +#line 9886 "VideoSupport.c" } @@ -9835,7 +9899,7 @@ static void video_flaggable_interface_init (FlaggableIface * iface) { iface->mark_flagged = (void (*) (Flaggable *)) video_real_mark_flagged; #line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" iface->mark_unflagged = (void (*) (Flaggable *)) video_real_mark_unflagged; -#line 9835 "VideoSupport.c" +#line 9899 "VideoSupport.c" } @@ -9852,7 +9916,7 @@ static void video_monitorable_interface_init (MonitorableIface * iface) { iface->set_master_timestamp = (void (*) (Monitorable *, GFileInfo*)) video_real_set_master_timestamp; #line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" iface->set_master_file = (void (*) (Monitorable *, GFile*)) video_real_set_master_file; -#line 9852 "VideoSupport.c" +#line 9916 "VideoSupport.c" } @@ -9863,7 +9927,7 @@ static void video_dateable_interface_init (DateableIface * iface) { iface->get_exposure_time = (time_t (*) (Dateable *)) video_real_get_exposure_time; #line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" iface->set_exposure_time = (void (*) (Dateable *, time_t)) video_real_set_exposure_time; -#line 9863 "VideoSupport.c" +#line 9927 "VideoSupport.c" } @@ -9872,7 +9936,7 @@ static void video_instance_init (Video * self) { self->priv = VIDEO_GET_PRIVATE (self); #line 364 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_rec_mutex_init (&self->priv->__lock_backing_row); -#line 9872 "VideoSupport.c" +#line 9936 "VideoSupport.c" } @@ -9886,7 +9950,7 @@ static void video_finalize (GObject * obj) { _video_row_unref0 (self->priv->backing_row); #line 323 "/home/jens/Source/shotwell/src/VideoSupport.vala" G_OBJECT_CLASS (video_parent_class)->finalize (obj); -#line 9886 "VideoSupport.c" +#line 9950 "VideoSupport.c" } @@ -9923,44 +9987,44 @@ GType video_source_collection_state_get_type (void) { static gint _uint64_compare_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) { gint result; result = uint64_compare ((guint64*) a, (guint64*) b); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 9925 "VideoSupport.c" +#line 9989 "VideoSupport.c" } static guint64* _uint64_dup (guint64* self) { guint64* dup; -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" dup = g_new0 (guint64, 1); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" memcpy (dup, self, sizeof (guint64)); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" return dup; -#line 9937 "VideoSupport.c" +#line 10001 "VideoSupport.c" } static gint64 _video_source_collection_get_video_key_get_source_database_key (DataSource* source, gpointer self) { gint64 result; result = video_source_collection_get_video_key (source); -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 9946 "VideoSupport.c" +#line 10010 "VideoSupport.c" } static void _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { -#line 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_on_trashcan_contents_altered ((VideoSourceCollection*) self, added, removed); -#line 9953 "VideoSupport.c" +#line 10017 "VideoSupport.c" } static void _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered (SourceHoldingTank* _sender, GeeCollection* added, GeeCollection* removed, gpointer self) { -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_on_offline_contents_altered ((VideoSourceCollection*) self, added, removed); -#line 9960 "VideoSupport.c" +#line 10024 "VideoSupport.c" } @@ -9970,43 +10034,43 @@ VideoSourceCollection* video_source_collection_construct (GType object_type) { MediaSourceHoldingTank* _tmp1_; MediaSourceHoldingTank* _tmp2_; MediaSourceHoldingTank* _tmp3_; -#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1077 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = (VideoSourceCollection*) media_source_collection_construct (object_type, "VideoSourceCollection", _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_trashcan_contents_altered_source_holding_tank_contents_altered, self); -#line 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" _source_holding_tank_unref0 (_tmp1_); -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_signal_connect (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_SOURCE_HOLDING_TANK, SourceHoldingTank), "contents-altered", (GCallback) _video_source_collection_on_offline_contents_altered_source_holding_tank_contents_altered, self); -#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1080 "/home/jens/Source/shotwell/src/VideoSupport.vala" _source_holding_tank_unref0 (_tmp3_); -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" return self; -#line 9990 "VideoSupport.c" +#line 10054 "VideoSupport.c" } VideoSourceCollection* video_source_collection_new (void) { -#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" return video_source_collection_construct (TYPE_VIDEO_SOURCE_COLLECTION); -#line 9997 "VideoSupport.c" +#line 10061 "VideoSupport.c" } static gboolean _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self) { gboolean result; result = video_source_collection_is_video_trashed (source); -#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10006 "VideoSupport.c" +#line 10070 "VideoSupport.c" } @@ -10014,24 +10078,24 @@ static MediaSourceHoldingTank* video_source_collection_real_create_trashcan (Med VideoSourceCollection * self; MediaSourceHoldingTank* result = NULL; MediaSourceHoldingTank* _tmp0_; -#line 1086 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1083 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_trashed_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1084 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10022 "VideoSupport.c" +#line 10086 "VideoSupport.c" } static gboolean _video_source_collection_is_video_offline_source_holding_tank_check_to_keep (DataSource* source, Alteration* alteration, gpointer self) { gboolean result; result = video_source_collection_is_video_offline (source); -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10031 "VideoSupport.c" +#line 10095 "VideoSupport.c" } @@ -10039,15 +10103,15 @@ static MediaSourceHoldingTank* video_source_collection_real_create_offline_bin ( VideoSourceCollection * self; MediaSourceHoldingTank* result = NULL; MediaSourceHoldingTank* _tmp0_; -#line 1090 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1087 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = media_source_holding_tank_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _video_source_collection_is_video_offline_source_holding_tank_check_to_keep, NULL, _video_source_collection_get_video_key_get_source_database_key, NULL); -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1088 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10047 "VideoSupport.c" +#line 10111 "VideoSupport.c" } @@ -10056,21 +10120,21 @@ static MediaMonitor* video_source_collection_real_create_media_monitor (MediaSou MediaMonitor* result = NULL; GCancellable* _tmp0_; VideoMonitor* _tmp1_; -#line 1094 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1094 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_WORKERS (workers), NULL); -#line 1094 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1091 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL); -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = cancellable; -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_monitor_new (_tmp0_); -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_MONITOR, MediaMonitor); -#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1092 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10070 "VideoSupport.c" +#line 10134 "VideoSupport.c" } @@ -10078,17 +10142,17 @@ static gboolean video_source_collection_real_holds_type_of_source (SourceCollect VideoSourceCollection * self; gboolean result = FALSE; DataSource* _tmp0_; -#line 1098 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1098 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1095 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = source; -#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO); -#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1096 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10088 "VideoSupport.c" +#line 10152 "VideoSupport.c" } @@ -10096,15 +10160,15 @@ static gchar* video_source_collection_real_get_typename (MediaSourceCollection* VideoSourceCollection * self; gchar* result = NULL; gchar* _tmp0_; -#line 1102 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1099 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = g_strdup (VIDEO_TYPENAME); -#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp0_; -#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1100 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10104 "VideoSupport.c" +#line 10168 "VideoSupport.c" } @@ -10113,57 +10177,57 @@ static gboolean video_source_collection_real_is_file_recognized (MediaSourceColl gboolean result = FALSE; GFile* _tmp0_; gboolean _tmp1_; -#line 1106 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1106 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1103 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (G_IS_FILE (file), FALSE); -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = file; -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = video_reader_is_supported_video_file (_tmp0_); -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1104 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10125 "VideoSupport.c" +#line 10189 "VideoSupport.c" } static void video_source_collection_on_trashcan_contents_altered (VideoSourceCollection* self, GeeCollection* added, GeeCollection* removed) { GeeCollection* _tmp0_; GeeCollection* _tmp1_; -#line 1110 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1110 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 1110 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1107 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 1112 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1109 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = added; -#line 1112 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1109 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = removed; -#line 1112 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1109 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "trashcan-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 10144 "VideoSupport.c" +#line 10208 "VideoSupport.c" } static void video_source_collection_on_offline_contents_altered (VideoSourceCollection* self, GeeCollection* added, GeeCollection* removed) { GeeCollection* _tmp0_; GeeCollection* _tmp1_; -#line 1116 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1116 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((added == NULL) || GEE_IS_COLLECTION (added)); -#line 1116 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1113 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((removed == NULL) || GEE_IS_COLLECTION (removed)); -#line 1118 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1115 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = added; -#line 1118 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1115 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = removed; -#line 1118 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1115 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), "offline-contents-altered", G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_COLLECTION, GeeCollection), G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_COLLECTION, GeeCollection)); -#line 10163 "VideoSupport.c" +#line 10227 "VideoSupport.c" } @@ -10173,19 +10237,19 @@ static MediaSource* video_source_collection_real_fetch_by_numeric_id (MediaSourc gint64 _tmp0_; VideoID _tmp1_ = {0}; Video* _tmp2_; -#line 1122 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1119 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = numeric_id; -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_id_init (&_tmp1_, _tmp0_); -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video_source_collection_fetch (self, &_tmp1_); -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource); -#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1120 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10185 "VideoSupport.c" +#line 10249 "VideoSupport.c" } @@ -10198,29 +10262,29 @@ gint64 video_source_collection_get_video_key (DataSource* source) { VideoID _tmp2_ = {0}; VideoID _tmp3_; gint64 _tmp4_; -#line 1126 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1123 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), 0LL); -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = source; -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO, Video)); -#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1124 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = _tmp1_; -#line 1128 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (video, &_tmp2_); -#line 1128 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1125 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_id = _tmp2_; -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_id; -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_.id; -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp4_; -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1127 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10220 "VideoSupport.c" +#line 10284 "VideoSupport.c" } @@ -10228,17 +10292,17 @@ gboolean video_source_collection_is_video_trashed (DataSource* source) { gboolean result = FALSE; DataSource* _tmp0_; gboolean _tmp1_; -#line 1133 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1130 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = source; -#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1131 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10238 "VideoSupport.c" +#line 10302 "VideoSupport.c" } @@ -10246,17 +10310,17 @@ gboolean video_source_collection_is_video_offline (DataSource* source) { gboolean result = FALSE; DataSource* _tmp0_; gboolean _tmp1_; -#line 1137 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1134 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_DATA_SOURCE (source), FALSE); -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = source; -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_VIDEO, Video), TYPE_MEDIA_SOURCE, MediaSource)); -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp1_; -#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1135 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10256 "VideoSupport.c" +#line 10320 "VideoSupport.c" } @@ -10265,21 +10329,21 @@ Video* video_source_collection_fetch (VideoSourceCollection* self, VideoID* vide VideoID _tmp0_; gint64 _tmp1_; DataSource* _tmp2_; -#line 1141 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL); -#line 1141 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1138 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (video_id != NULL, NULL); -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = *video_id; -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_.id; -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = database_source_collection_fetch_by_key (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_SOURCE_COLLECTION, DatabaseSourceCollection), _tmp1_); -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIDEO, Video); -#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1139 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10279 "VideoSupport.c" +#line 10343 "VideoSupport.c" } @@ -10291,27 +10355,27 @@ static GeeCollection* video_source_collection_real_get_event_source_ids (MediaSo EventID _tmp2_; GeeArrayList* _tmp3_; GeeCollection* _tmp4_; -#line 1145 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1145 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1142 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (event_id != NULL, NULL); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video_table_get_instance (); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = *event_id; -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_table_get_event_source_ids (_tmp1_, &_tmp2_); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_COLLECTION, GeeCollection); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" _database_table_unref0 (_tmp1_); -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp4_; -#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1143 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10311 "VideoSupport.c" +#line 10375 "VideoSupport.c" } @@ -10332,113 +10396,113 @@ Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, G GFile* _tmp10_; MediaSource* _tmp11_; Video* _tmp12_; -#line 1149 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), NULL); -#line 1149 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1146 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (G_IS_FILE (file), NULL); -#line 1150 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = file; -#line 1150 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_collection_fetch_by_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp0_); -#line 1150 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1147 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VIDEO, Video); -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = video; -#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1148 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp2_ != NULL) { -#line 1152 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1149 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_state = VIDEO_SOURCE_COLLECTION_STATE_ONLINE; -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = video; -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (state) { -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" *state = _vala_state; -#line 10354 "VideoSupport.c" +#line 10418 "VideoSupport.c" } -#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1151 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10358 "VideoSupport.c" +#line 10422 "VideoSupport.c" } -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _tmp3_; -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = file; -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = media_source_holding_tank_fetch_by_master_file (_tmp4_, _tmp5_); -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_VIDEO, Video); -#line 1157 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1154 "/home/jens/Source/shotwell/src/VideoSupport.vala" _source_holding_tank_unref0 (_tmp4_); -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = video; -#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1155 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp7_ != NULL) { -#line 1159 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1156 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_state = VIDEO_SOURCE_COLLECTION_STATE_TRASH; -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = video; -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (state) { -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" *state = _vala_state; -#line 10386 "VideoSupport.c" +#line 10450 "VideoSupport.c" } -#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1158 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10390 "VideoSupport.c" +#line 10454 "VideoSupport.c" } -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = media_source_collection_get_offline_bin (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = _tmp8_; -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = file; -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = media_source_holding_tank_fetch_by_master_file (_tmp9_, _tmp10_); -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, TYPE_VIDEO, Video); -#line 1164 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1161 "/home/jens/Source/shotwell/src/VideoSupport.vala" _source_holding_tank_unref0 (_tmp9_); -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = video; -#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1162 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp12_ != NULL) { -#line 1166 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1163 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_state = VIDEO_SOURCE_COLLECTION_STATE_OFFLINE; -#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = video; -#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (state) { -#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" *state = _vala_state; -#line 10418 "VideoSupport.c" +#line 10482 "VideoSupport.c" } -#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1165 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10422 "VideoSupport.c" +#line 10486 "VideoSupport.c" } -#line 1171 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1168 "/home/jens/Source/shotwell/src/VideoSupport.vala" _vala_state = VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN; -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = NULL; -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (state) { -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" *state = _vala_state; -#line 10434 "VideoSupport.c" +#line 10498 "VideoSupport.c" } -#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10438 "VideoSupport.c" +#line 10502 "VideoSupport.c" } @@ -10452,83 +10516,83 @@ static void video_source_collection_compare_backing (VideoSourceCollection* self GFileInfo* _tmp6_; GTimeVal _tmp7_ = {0}; glong _tmp8_; -#line 1176 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1176 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO (video)); -#line 1176 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1176 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1173 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (GEE_IS_COLLECTION (matching_master)); -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = video; -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_get_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = info; -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = g_file_info_get_size (_tmp2_); -#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1174 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp1_ != ((guint64) _tmp3_)) { -#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1175 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 10472 "VideoSupport.c" +#line 10536 "VideoSupport.c" } -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = video; -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = media_source_get_timestamp (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = info; -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_file_info_get_modification_time (_tmp6_, &_tmp7_); -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _tmp7_.tv_sec; -#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp5_ == ((time_t) _tmp8_)) { -#line 10486 "VideoSupport.c" +#line 10550 "VideoSupport.c" GeeCollection* _tmp9_; Video* _tmp10_; -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = matching_master; -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = video; -#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1178 "/home/jens/Source/shotwell/src/VideoSupport.vala" gee_collection_add (_tmp9_, _tmp10_); -#line 10495 "VideoSupport.c" +#line 10559 "VideoSupport.c" } } void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self, GFileInfo* info, GeeCollection* matching_master) { -#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (G_IS_FILE_INFO (info)); -#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1181 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (GEE_IS_COLLECTION (matching_master)); -#line 10507 "VideoSupport.c" +#line 10571 "VideoSupport.c" { GeeIterator* _object_it = NULL; GeeCollection* _tmp0_; GeeCollection* _tmp1_; GeeIterator* _tmp2_; GeeIterator* _tmp3_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_COLLECTION, DataCollection)); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = _tmp0_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp1_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _object_it = _tmp3_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 10528 "VideoSupport.c" +#line 10592 "VideoSupport.c" GeeIterator* _tmp4_; gboolean _tmp5_; DataObject* object = NULL; @@ -10537,37 +10601,37 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s DataObject* _tmp8_; GFileInfo* _tmp9_; GeeCollection* _tmp10_; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = _object_it; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = gee_iterator_next (_tmp4_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp5_) { -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 10545 "VideoSupport.c" +#line 10609 "VideoSupport.c" } -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _object_it; -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = gee_iterator_get (_tmp6_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" object = (DataObject*) _tmp7_; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = object; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = info; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = matching_master; -#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_VIDEO, Video), _tmp9_, _tmp10_); -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (object); -#line 10563 "VideoSupport.c" +#line 10627 "VideoSupport.c" } -#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1182 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_object_it); -#line 10567 "VideoSupport.c" +#line 10631 "VideoSupport.c" } { GeeIterator* _media_it = NULL; @@ -10575,21 +10639,21 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s GeeCollection* _tmp12_; GeeIterator* _tmp13_; GeeIterator* _tmp14_; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = media_source_collection_get_offline_bin_contents (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = _tmp11_; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = _tmp13_; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp12_); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _media_it = _tmp14_; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 10589 "VideoSupport.c" +#line 10653 "VideoSupport.c" GeeIterator* _tmp15_; gboolean _tmp16_; MediaSource* media = NULL; @@ -10598,37 +10662,37 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s MediaSource* _tmp19_; GFileInfo* _tmp20_; GeeCollection* _tmp21_; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = _media_it; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = gee_iterator_next (_tmp15_); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp16_) { -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 10606 "VideoSupport.c" +#line 10670 "VideoSupport.c" } -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = _media_it; -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = gee_iterator_get (_tmp17_); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" media = (MediaSource*) _tmp18_; -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = media; -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = info; -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = matching_master; -#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1186 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_VIDEO, Video), _tmp20_, _tmp21_); -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (media); -#line 10624 "VideoSupport.c" +#line 10688 "VideoSupport.c" } -#line 1188 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1185 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_media_it); -#line 10628 "VideoSupport.c" +#line 10692 "VideoSupport.c" } } @@ -10639,30 +10703,30 @@ static void video_source_collection_real_notify_contents_altered (DataCollection GeeIterable* _tmp13_; GeeIterable* _tmp26_; GeeIterable* _tmp27_; -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((added == NULL) || GEE_IS_ITERABLE (added)); -#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1189 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail ((removed == NULL) || GEE_IS_ITERABLE (removed)); -#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1191 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = added; -#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1191 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_ != NULL) { -#line 10649 "VideoSupport.c" +#line 10713 "VideoSupport.c" { GeeIterator* _object_it = NULL; GeeIterable* _tmp1_; GeeIterator* _tmp2_; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = added; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = gee_iterable_iterator (_tmp1_); -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _object_it = _tmp2_; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 10662 "VideoSupport.c" +#line 10726 "VideoSupport.c" GeeIterator* _tmp3_; gboolean _tmp4_; DataObject* object = NULL; @@ -10675,67 +10739,67 @@ static void video_source_collection_real_notify_contents_altered (DataCollection Video* _tmp10_; guint64 _tmp11_; Video* _tmp12_; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _object_it; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = gee_iterator_next (_tmp3_); -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp4_) { -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 10683 "VideoSupport.c" +#line 10747 "VideoSupport.c" } -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _object_it; -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = gee_iterator_get (_tmp5_); -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" object = (DataObject*) _tmp6_; -#line 1196 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = object; -#line 1196 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video)); -#line 1196 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = _tmp8_; -#line 1198 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = self->priv->filesize_to_video; -#line 1198 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = video; -#line 1198 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1198 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = video; -#line 1198 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_multi_map_set (_tmp9_, &_tmp11_, _tmp12_); #line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" + gee_multi_map_set (_tmp9_, &_tmp11_, _tmp12_); +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (object); -#line 10711 "VideoSupport.c" +#line 10775 "VideoSupport.c" } -#line 1195 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1192 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_object_it); -#line 10715 "VideoSupport.c" +#line 10779 "VideoSupport.c" } } -#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1199 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = removed; -#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1199 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp13_ != NULL) { -#line 10722 "VideoSupport.c" +#line 10786 "VideoSupport.c" { GeeIterator* _object_it = NULL; GeeIterable* _tmp14_; GeeIterator* _tmp15_; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = removed; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = gee_iterable_iterator (_tmp14_); -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _object_it = _tmp15_; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 10735 "VideoSupport.c" +#line 10799 "VideoSupport.c" GeeIterator* _tmp16_; gboolean _tmp17_; DataObject* object = NULL; @@ -10748,66 +10812,66 @@ static void video_source_collection_real_notify_contents_altered (DataCollection Video* _tmp23_; guint64 _tmp24_; Video* _tmp25_; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = _object_it; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = gee_iterator_next (_tmp16_); -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp17_) { -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 10756 "VideoSupport.c" +#line 10820 "VideoSupport.c" } -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp18_ = _object_it; -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp19_ = gee_iterator_get (_tmp18_); -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" object = (DataObject*) _tmp19_; -#line 1204 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp20_ = object; -#line 1204 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_VIDEO, Video)); -#line 1204 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = _tmp21_; -#line 1206 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp22_ = self->priv->filesize_to_video; -#line 1206 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp23_ = video; -#line 1206 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp24_ = media_source_get_master_filesize (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1206 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp25_ = video; -#line 1206 "/home/jens/Source/shotwell/src/VideoSupport.vala" - gee_multi_map_remove (_tmp22_, &_tmp24_, _tmp25_); #line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" + gee_multi_map_remove (_tmp22_, &_tmp24_, _tmp25_); +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (object); -#line 10784 "VideoSupport.c" +#line 10848 "VideoSupport.c" } -#line 1203 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1200 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_object_it); -#line 10788 "VideoSupport.c" +#line 10852 "VideoSupport.c" } } -#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1207 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp26_ = added; -#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1207 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp27_ = removed; -#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1207 "/home/jens/Source/shotwell/src/VideoSupport.vala" DATA_COLLECTION_CLASS (video_source_collection_parent_class)->notify_contents_altered (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), TYPE_DATA_COLLECTION, DataCollection), _tmp26_, _tmp27_); -#line 10797 "VideoSupport.c" +#line 10861 "VideoSupport.c" } void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollection* self, const gchar* basename, guint64 filesize, VideoID* result) { VideoID _tmp19_ = {0}; -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self)); -#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1210 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_if_fail (basename != NULL); -#line 10807 "VideoSupport.c" +#line 10871 "VideoSupport.c" { GeeIterator* _video_it = NULL; GeeMultiMap* _tmp0_; @@ -10816,25 +10880,25 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect GeeCollection* _tmp3_; GeeIterator* _tmp4_; GeeIterator* _tmp5_; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->filesize_to_video; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = filesize; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = gee_multi_map_get (_tmp0_, &_tmp1_); -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = _tmp2_; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable)); -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp5_ = _tmp4_; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp3_); -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _video_it = _tmp5_; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" while (TRUE) { -#line 10834 "VideoSupport.c" +#line 10898 "VideoSupport.c" GeeIterator* _tmp6_; gboolean _tmp7_; Video* video = NULL; @@ -10847,72 +10911,72 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect const gchar* _tmp14_; gint _tmp15_; gboolean _tmp16_; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp6_ = _video_it; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp7_ = gee_iterator_next (_tmp6_); -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (!_tmp7_) { -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" break; -#line 10855 "VideoSupport.c" +#line 10919 "VideoSupport.c" } -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp8_ = _video_it; -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp9_ = gee_iterator_get (_tmp8_); -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" video = (Video*) _tmp9_; -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp10_ = video; -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp11_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, TYPE_MEDIA_SOURCE, MediaSource)); -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp12_ = _tmp11_; -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp13_ = g_file_get_basename (_tmp12_); -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp14_ = basename; -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp15_ = utf8_ci_compare (_tmp13_, _tmp14_); -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp16_ = _tmp15_ == 0; -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_tmp12_); -#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp16_) { -#line 10881 "VideoSupport.c" +#line 10945 "VideoSupport.c" Video* _tmp17_; VideoID _tmp18_ = {0}; -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp17_ = video; -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_get_video_id (_tmp17_, &_tmp18_); -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp18_; -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_video_it); -#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 10896 "VideoSupport.c" +#line 10960 "VideoSupport.c" } -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (video); -#line 10900 "VideoSupport.c" +#line 10964 "VideoSupport.c" } -#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1211 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (_video_it); -#line 10904 "VideoSupport.c" +#line 10968 "VideoSupport.c" } -#line 1219 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_id_init (&_tmp19_, VIDEO_ID_INVALID); -#line 1219 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" *result = _tmp19_; -#line 1219 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1216 "/home/jens/Source/shotwell/src/VideoSupport.vala" return; -#line 10912 "VideoSupport.c" +#line 10976 "VideoSupport.c" } @@ -10922,23 +10986,23 @@ gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCol guint64 _tmp1_; VideoID _tmp2_ = {0}; gboolean _tmp3_; -#line 1223 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (IS_VIDEO_SOURCE_COLLECTION (self), FALSE); -#line 1223 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1220 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_return_val_if_fail (basename != NULL, FALSE); -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = basename; -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = filesize; -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_get_basename_filesize_duplicate (self, _tmp0_, _tmp1_, &_tmp2_); -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp3_ = video_id_is_valid (&_tmp2_); -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp3_; -#line 1224 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1221 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10938 "VideoSupport.c" +#line 11002 "VideoSupport.c" } @@ -10947,88 +11011,88 @@ static TransactionController* video_source_collection_real_get_transaction_contr VideoSourceCollection* self; TransactionController* _tmp0_; TransactionController* _tmp2_; -#line 1067 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1064 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = self->priv->_transaction_controller; -#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1065 "/home/jens/Source/shotwell/src/VideoSupport.vala" if (_tmp0_ == NULL) { -#line 10953 "VideoSupport.c" +#line 11017 "VideoSupport.c" MediaSourceTransactionController* _tmp1_; -#line 1069 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection)); -#line 1069 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 1069 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1066 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController); -#line 10961 "VideoSupport.c" +#line 11025 "VideoSupport.c" } -#line 1071 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp2_ = self->priv->_transaction_controller; -#line 1071 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" result = _tmp2_; -#line 1071 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala" return result; -#line 10969 "VideoSupport.c" +#line 11033 "VideoSupport.c" } static void video_source_collection_class_init (VideoSourceCollectionClass * klass) { -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" video_source_collection_parent_class = g_type_class_peek_parent (klass); -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((DataCollectionClass *) klass)->finalize = video_source_collection_finalize; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" g_type_class_add_private (klass, sizeof (VideoSourceCollectionPrivate)); -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_trashcan; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*) (MediaSourceCollection *)) video_source_collection_real_create_offline_bin; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*) (MediaSourceCollection *, Workers*, GCancellable*)) video_source_collection_real_create_media_monitor; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*) (SourceCollection *, DataSource*)) video_source_collection_real_holds_type_of_source; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*) (MediaSourceCollection *)) video_source_collection_real_get_typename; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*) (MediaSourceCollection *, GFile*)) video_source_collection_real_is_file_recognized; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*) (MediaSourceCollection *, gint64)) video_source_collection_real_fetch_by_numeric_id; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*) (MediaSourceCollection *, EventID*)) video_source_collection_real_get_event_source_ids; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" ((DataCollectionClass *) klass)->notify_contents_altered = (void (*) (DataCollection *, GeeIterable*, GeeIterable*)) video_source_collection_real_notify_contents_altered; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = video_source_collection_real_get_transaction_controller; -#line 11000 "VideoSupport.c" +#line 11064 "VideoSupport.c" } static void video_source_collection_instance_init (VideoSourceCollection * self) { GeeTreeMultiMap* _tmp0_; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv = VIDEO_SOURCE_COLLECTION_GET_PRIVATE (self); -#line 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv->_transaction_controller = NULL; -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" _tmp0_ = gee_tree_multi_map_new (G_TYPE_UINT64, (GBoxedCopyFunc) _uint64_dup, (GDestroyNotify) g_free, TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _uint64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" self->priv->filesize_to_video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap); -#line 11014 "VideoSupport.c" +#line 11078 "VideoSupport.c" } static void video_source_collection_finalize (DataCollection * obj) { VideoSourceCollection * self; -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_SOURCE_COLLECTION, VideoSourceCollection); -#line 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1072 "/home/jens/Source/shotwell/src/VideoSupport.vala" _transaction_controller_unref0 (self->priv->_transaction_controller); -#line 1076 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1073 "/home/jens/Source/shotwell/src/VideoSupport.vala" _g_object_unref0 (self->priv->filesize_to_video); -#line 1058 "/home/jens/Source/shotwell/src/VideoSupport.vala" +#line 1055 "/home/jens/Source/shotwell/src/VideoSupport.vala" DATA_COLLECTION_CLASS (video_source_collection_parent_class)->finalize (obj); -#line 11028 "VideoSupport.c" +#line 11092 "VideoSupport.c" } -- cgit v1.2.3