summaryrefslogtreecommitdiff
path: root/src/VideoSupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/VideoSupport.c')
-rw-r--r--src/VideoSupport.c1711
1 files changed, 870 insertions, 841 deletions
diff --git a/src/VideoSupport.c b/src/VideoSupport.c
index d201a2a..fb3aa6e 100644
--- a/src/VideoSupport.c
+++ b/src/VideoSupport.c
@@ -1,4 +1,4 @@
-/* VideoSupport.c generated by valac 0.34.4, the Vala compiler
+/* VideoSupport.c generated by valac 0.34.7, the Vala compiler
* generated from VideoSupport.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -1887,11 +1887,11 @@ gboolean video_reader_is_supported_video_file (GFile* file) {
gchar* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
const gchar* _tmp8_ = NULL;
- GFile* _tmp22_ = NULL;
- gchar* _tmp23_ = NULL;
+ GFile* _tmp23_ = NULL;
gchar* _tmp24_ = NULL;
- gboolean _tmp25_ = FALSE;
+ gchar* _tmp25_ = NULL;
gboolean _tmp26_ = FALSE;
+ gboolean _tmp27_ = FALSE;
GError * _inner_error_ = NULL;
#line 55 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
@@ -2030,6 +2030,8 @@ gboolean video_reader_is_supported_video_file (GFile* file) {
__finally493:
#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 2034 "VideoSupport.c"
+ gboolean _tmp22_ = FALSE;
#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (mime_type);
#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2037,29 +2039,29 @@ gboolean video_reader_is_supported_video_file (GFile* file) {
#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 59 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 2042 "VideoSupport.c"
+ return _tmp22_;
+#line 2044 "VideoSupport.c"
}
}
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = file;
+ _tmp23_ = file;
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = g_file_get_basename (_tmp22_);
+ _tmp24_ = g_file_get_basename (_tmp23_);
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = _tmp23_;
+ _tmp25_ = _tmp24_;
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp25_ = video_reader_is_supported_video_filename (_tmp24_);
+ _tmp26_ = video_reader_is_supported_video_filename (_tmp25_);
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = _tmp25_;
+ _tmp27_ = _tmp26_;
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp24_);
+ _g_free0 (_tmp25_);
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp26_;
+ result = _tmp27_;
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (mime_type);
#line 71 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2063 "VideoSupport.c"
+#line 2065 "VideoSupport.c"
}
@@ -2092,7 +2094,7 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp2_ = start;
#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp2_ < ((glong) 0)) {
-#line 2096 "VideoSupport.c"
+#line 2098 "VideoSupport.c"
glong _tmp3_ = 0L;
glong _tmp4_ = 0L;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
@@ -2101,13 +2103,13 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp4_ = start;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
start = _tmp3_ + _tmp4_;
-#line 2105 "VideoSupport.c"
+#line 2107 "VideoSupport.c"
}
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp5_ = end;
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp5_ < ((glong) 0)) {
-#line 2111 "VideoSupport.c"
+#line 2113 "VideoSupport.c"
glong _tmp6_ = 0L;
glong _tmp7_ = 0L;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
@@ -2116,13 +2118,13 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp7_ = end;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
end = _tmp6_ + _tmp7_;
-#line 2120 "VideoSupport.c"
+#line 2122 "VideoSupport.c"
}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp9_ = start;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp9_ >= ((glong) 0)) {
-#line 2126 "VideoSupport.c"
+#line 2128 "VideoSupport.c"
glong _tmp10_ = 0L;
glong _tmp11_ = 0L;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
@@ -2131,11 +2133,11 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp11_ = string_length;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = _tmp10_ <= _tmp11_;
-#line 2135 "VideoSupport.c"
+#line 2137 "VideoSupport.c"
} else {
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp8_ = FALSE;
-#line 2139 "VideoSupport.c"
+#line 2141 "VideoSupport.c"
}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp8_, NULL);
@@ -2143,7 +2145,7 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp13_ = end;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
if (_tmp13_ >= ((glong) 0)) {
-#line 2147 "VideoSupport.c"
+#line 2149 "VideoSupport.c"
glong _tmp14_ = 0L;
glong _tmp15_ = 0L;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
@@ -2152,11 +2154,11 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
_tmp15_ = string_length;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = _tmp14_ <= _tmp15_;
-#line 2156 "VideoSupport.c"
+#line 2158 "VideoSupport.c"
} else {
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
_tmp12_ = FALSE;
-#line 2160 "VideoSupport.c"
+#line 2162 "VideoSupport.c"
}
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
g_return_val_if_fail (_tmp12_, NULL);
@@ -2178,7 +2180,7 @@ static gchar* string_slice (const gchar* self, glong start, glong end) {
result = _tmp21_;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
return result;
-#line 2182 "VideoSupport.c"
+#line 2184 "VideoSupport.c"
}
@@ -2220,7 +2222,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_tmp7_ = _tmp6_;
#line 77 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp7_ >= 6) {
-#line 2224 "VideoSupport.c"
+#line 2226 "VideoSupport.c"
const gchar* _tmp8_ = NULL;
gchar* _tmp9_ = NULL;
gchar* _tmp10_ = NULL;
@@ -2234,15 +2236,15 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_tmp4_ = g_strcmp0 (_tmp10_, "video/") == 0;
#line 77 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (_tmp10_);
-#line 2238 "VideoSupport.c"
+#line 2240 "VideoSupport.c"
} else {
#line 77 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = FALSE;
-#line 2242 "VideoSupport.c"
+#line 2244 "VideoSupport.c"
}
#line 77 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp4_) {
-#line 2246 "VideoSupport.c"
+#line 2248 "VideoSupport.c"
gchar* extension = NULL;
gchar* name = NULL;
const gchar* _tmp11_ = NULL;
@@ -2279,7 +2281,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_g_free0 (mime_type);
#line 83 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2283 "VideoSupport.c"
+#line 2285 "VideoSupport.c"
}
{
const gchar** s_collection = NULL;
@@ -2292,14 +2294,14 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
s_collection_length1 = G_N_ELEMENTS (VIDEO_READER_METADATA_ONLY_FILE_EXTENSIONS);
#line 85 "/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 2296 "VideoSupport.c"
+#line 2298 "VideoSupport.c"
gchar* _tmp15_ = NULL;
gchar* s = NULL;
#line 85 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp15_ = g_strdup (s_collection[s_it]);
#line 85 "/home/jens/Source/shotwell/src/VideoSupport.vala"
s = _tmp15_;
-#line 2303 "VideoSupport.c"
+#line 2305 "VideoSupport.c"
{
const gchar* _tmp16_ = NULL;
const gchar* _tmp17_ = NULL;
@@ -2324,11 +2326,11 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_g_free0 (mime_type);
#line 87 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2328 "VideoSupport.c"
+#line 2330 "VideoSupport.c"
}
#line 85 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (s);
-#line 2332 "VideoSupport.c"
+#line 2334 "VideoSupport.c"
}
}
}
@@ -2342,7 +2344,7 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_g_free0 (mime_type);
#line 90 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2346 "VideoSupport.c"
+#line 2348 "VideoSupport.c"
} else {
const gchar* _tmp19_ = NULL;
const gchar* _tmp20_ = NULL;
@@ -2358,11 +2360,11 @@ gboolean video_reader_is_supported_video_filename (const gchar* filename) {
_g_free0 (mime_type);
#line 93 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2362 "VideoSupport.c"
+#line 2364 "VideoSupport.c"
}
#line 74 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (mime_type);
-#line 2366 "VideoSupport.c"
+#line 2368 "VideoSupport.c"
}
@@ -2474,7 +2476,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
file = _tmp2_;
#line 103 "/home/jens/Source/shotwell/src/VideoSupport.vala"
info = NULL;
-#line 2478 "VideoSupport.c"
+#line 2480 "VideoSupport.c"
{
GFileInfo* _tmp3_ = NULL;
GFile* _tmp4_ = NULL;
@@ -2488,7 +2490,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp3_ = _tmp5_;
#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2492 "VideoSupport.c"
+#line 2494 "VideoSupport.c"
goto __catch494_g_error;
}
#line 105 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2501,7 +2503,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
info = _tmp6_;
#line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_tmp3_);
-#line 2505 "VideoSupport.c"
+#line 2507 "VideoSupport.c"
}
goto __finally494;
__catch494_g_error:
@@ -2521,7 +2523,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_object_unref0 (file);
#line 108 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2525 "VideoSupport.c"
+#line 2527 "VideoSupport.c"
}
__finally494:
#line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2536,7 +2538,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
g_clear_error (&_inner_error_);
#line 104 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 2540 "VideoSupport.c"
+#line 2542 "VideoSupport.c"
}
#line 111 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = info;
@@ -2552,7 +2554,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_object_unref0 (file);
#line 112 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2556 "VideoSupport.c"
+#line 2558 "VideoSupport.c"
}
#line 114 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp9_ = file;
@@ -2560,7 +2562,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp10_ = video_reader_is_supported_video_file (_tmp9_);
#line 114 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (!_tmp10_) {
-#line 2564 "VideoSupport.c"
+#line 2566 "VideoSupport.c"
GFile* _tmp11_ = NULL;
gchar* _tmp12_ = NULL;
gchar* _tmp13_ = NULL;
@@ -2582,7 +2584,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_object_unref0 (file);
#line 118 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2586 "VideoSupport.c"
+#line 2588 "VideoSupport.c"
}
#line 121 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp14_ = info;
@@ -2626,7 +2628,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp25_ = video_reader_read_preview_frame (_tmp24_);
#line 133 "/home/jens/Source/shotwell/src/VideoSupport.vala"
preview_frame = _tmp25_;
-#line 2630 "VideoSupport.c"
+#line 2632 "VideoSupport.c"
{
gdouble _tmp26_ = 0.0;
VideoReader* _tmp27_ = NULL;
@@ -2641,7 +2643,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == VIDEO_ERROR) {
-#line 2645 "VideoSupport.c"
+#line 2647 "VideoSupport.c"
goto __catch495_video_error;
}
#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2662,11 +2664,11 @@ 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 2666 "VideoSupport.c"
+#line 2668 "VideoSupport.c"
}
#line 135 "/home/jens/Source/shotwell/src/VideoSupport.vala"
clip_duration = _tmp26_;
-#line 2670 "VideoSupport.c"
+#line 2672 "VideoSupport.c"
}
goto __finally495;
__catch495_video_error:
@@ -2699,7 +2701,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_object_unref0 (file);
#line 138 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 2703 "VideoSupport.c"
+#line 2705 "VideoSupport.c"
} else {
GError* _tmp30_ = NULL;
#line 139 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2710,17 +2712,17 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
is_interpretable = FALSE;
#line 141 "/home/jens/Source/shotwell/src/VideoSupport.vala"
clip_duration = 0.0;
-#line 2714 "VideoSupport.c"
+#line 2716 "VideoSupport.c"
} else {
#line 143 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_error ("VideoSupport.vala:143: can't prepare video for import: an unknown kind" \
" of video error occurred");
-#line 2718 "VideoSupport.c"
+#line 2720 "VideoSupport.c"
}
}
#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 2723 "VideoSupport.c"
+#line 2725 "VideoSupport.c"
}
__finally495:
#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2743,7 +2745,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
g_clear_error (&_inner_error_);
#line 134 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 2746 "VideoSupport.c"
+#line 2748 "VideoSupport.c"
}
{
VideoMetadata* metadata = NULL;
@@ -2770,7 +2772,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
metadata = _tmp32_;
#line 148 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 2773 "VideoSupport.c"
+#line 2775 "VideoSupport.c"
goto __catch496_g_error;
}
#line 149 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2783,7 +2785,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp36_ = creation_date_time;
#line 151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp36_ != NULL) {
-#line 2786 "VideoSupport.c"
+#line 2788 "VideoSupport.c"
MetadataDateTime* _tmp37_ = NULL;
time_t _tmp38_ = 0;
#line 151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2792,15 +2794,15 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp38_ = metadata_date_time_get_timestamp (_tmp37_);
#line 151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp35_ = _tmp38_ != ((time_t) 0);
-#line 2795 "VideoSupport.c"
+#line 2797 "VideoSupport.c"
} else {
#line 151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp35_ = FALSE;
-#line 2799 "VideoSupport.c"
+#line 2801 "VideoSupport.c"
}
#line 151 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp35_) {
-#line 2803 "VideoSupport.c"
+#line 2805 "VideoSupport.c"
MetadataDateTime* _tmp39_ = NULL;
time_t _tmp40_ = 0;
#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2809,7 +2811,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp40_ = metadata_date_time_get_timestamp (_tmp39_);
#line 152 "/home/jens/Source/shotwell/src/VideoSupport.vala"
exposure_time = _tmp40_;
-#line 2812 "VideoSupport.c"
+#line 2814 "VideoSupport.c"
}
#line 154 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp41_ = metadata;
@@ -2827,7 +2829,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp45_ = video_title;
#line 156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp45_ != NULL) {
-#line 2830 "VideoSupport.c"
+#line 2832 "VideoSupport.c"
const gchar* _tmp46_ = NULL;
gchar* _tmp47_ = NULL;
#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2838,13 +2840,13 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_free0 (title);
#line 157 "/home/jens/Source/shotwell/src/VideoSupport.vala"
title = _tmp47_;
-#line 2841 "VideoSupport.c"
+#line 2843 "VideoSupport.c"
}
#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp48_ = video_comment;
#line 158 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp48_ != NULL) {
-#line 2847 "VideoSupport.c"
+#line 2849 "VideoSupport.c"
const gchar* _tmp49_ = NULL;
gchar* _tmp50_ = NULL;
#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2855,7 +2857,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_free0 (comment);
#line 159 "/home/jens/Source/shotwell/src/VideoSupport.vala"
comment = _tmp50_;
-#line 2858 "VideoSupport.c"
+#line 2860 "VideoSupport.c"
}
#line 147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (video_comment);
@@ -2865,7 +2867,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_metadata_date_time_unref0 (creation_date_time);
#line 147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_media_metadata_unref0 (metadata);
-#line 2868 "VideoSupport.c"
+#line 2870 "VideoSupport.c"
}
goto __finally496;
__catch496_g_error:
@@ -2885,7 +2887,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
g_warning ("VideoSupport.vala:161: Unable to read video metadata: %s", _tmp52_);
#line 147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 2888 "VideoSupport.c"
+#line 2890 "VideoSupport.c"
}
__finally496:
#line 147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -2908,13 +2910,13 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
g_clear_error (&_inner_error_);
#line 147 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 2911 "VideoSupport.c"
+#line 2913 "VideoSupport.c"
}
#line 164 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp53_ = exposure_time;
#line 164 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp53_ == ((time_t) 0)) {
-#line 2917 "VideoSupport.c"
+#line 2919 "VideoSupport.c"
gint64 _tmp54_ = 0LL;
VideoReader* _tmp55_ = NULL;
GDateTime* _tmp56_ = NULL;
@@ -2924,7 +2926,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp56_ = _tmp55_->priv->_timestamp;
#line 166 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp56_ != NULL) {
-#line 2927 "VideoSupport.c"
+#line 2929 "VideoSupport.c"
VideoReader* _tmp57_ = NULL;
GDateTime* _tmp58_ = NULL;
gint64 _tmp59_ = 0LL;
@@ -2936,15 +2938,15 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp59_ = g_date_time_to_unix (_tmp58_);
#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp54_ = _tmp59_;
-#line 2939 "VideoSupport.c"
+#line 2941 "VideoSupport.c"
} else {
#line 167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp54_ = (gint64) 0;
-#line 2943 "VideoSupport.c"
+#line 2945 "VideoSupport.c"
}
#line 166 "/home/jens/Source/shotwell/src/VideoSupport.vala"
exposure_time = (time_t) _tmp54_;
-#line 2947 "VideoSupport.c"
+#line 2949 "VideoSupport.c"
}
#line 170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp60_ = params;
@@ -3120,7 +3122,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp122_ = _tmp121_->thumbnails;
#line 189 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp122_ != NULL) {
-#line 3123 "VideoSupport.c"
+#line 3125 "VideoSupport.c"
VideoImportParams* _tmp123_ = NULL;
Thumbnails* _tmp124_ = NULL;
VideoImportParams* _tmp125_ = NULL;
@@ -3142,7 +3144,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_tmp127_ = preview_frame;
#line 191 "/home/jens/Source/shotwell/src/VideoSupport.vala"
thumbnail_cache_generate_for_video_frame (_tmp126_, _tmp127_);
-#line 3145 "VideoSupport.c"
+#line 3147 "VideoSupport.c"
}
#line 197 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = IMPORT_RESULT_SUCCESS;
@@ -3160,7 +3162,7 @@ ImportResult video_reader_prepare_for_import (VideoImportParams* params) {
_g_object_unref0 (file);
#line 197 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3163 "VideoSupport.c"
+#line 3165 "VideoSupport.c"
}
@@ -3172,14 +3174,14 @@ static GDate* _g_date_dup (GDate* self) {
memcpy (dup, self, sizeof (GDate));
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return dup;
-#line 3175 "VideoSupport.c"
+#line 3177 "VideoSupport.c"
}
static gpointer __g_date_dup0 (gpointer self) {
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return self ? _g_date_dup (self) : NULL;
-#line 3182 "VideoSupport.c"
+#line 3184 "VideoSupport.c"
}
@@ -3192,7 +3194,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
_tmp0_ = video_reader_does_file_exist (self);
#line 201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (!_tmp0_) {
-#line 3195 "VideoSupport.c"
+#line 3197 "VideoSupport.c"
GFile* _tmp1_ = NULL;
gchar* _tmp2_ = NULL;
gchar* _tmp3_ = NULL;
@@ -3226,7 +3228,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 3229 "VideoSupport.c"
+#line 3231 "VideoSupport.c"
} else {
#line 202 "/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);
@@ -3234,7 +3236,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
g_clear_error (&_inner_error_);
#line 202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 3237 "VideoSupport.c"
+#line 3239 "VideoSupport.c"
}
}
{
@@ -3259,7 +3261,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
d = _tmp8_;
#line 206 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3262 "VideoSupport.c"
+#line 3264 "VideoSupport.c"
goto __catch497_g_error;
}
#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3282,7 +3284,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 207 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (d);
-#line 3285 "VideoSupport.c"
+#line 3287 "VideoSupport.c"
goto __catch497_g_error;
}
#line 209 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3299,7 +3301,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
_tmp19_ = gst_discoverer_info_get_tags (_tmp18_);
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp19_ != NULL) {
-#line 3302 "VideoSupport.c"
+#line 3304 "VideoSupport.c"
GstDiscovererInfo* _tmp20_ = NULL;
GstTagList* _tmp21_ = NULL;
GDate _tmp22_ = {0};
@@ -3322,21 +3324,21 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
video_date = _tmp25_;
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp17_ = _tmp23_;
-#line 3325 "VideoSupport.c"
+#line 3327 "VideoSupport.c"
} else {
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp17_ = FALSE;
-#line 3329 "VideoSupport.c"
+#line 3331 "VideoSupport.c"
}
#line 215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp17_) {
-#line 3333 "VideoSupport.c"
+#line 3335 "VideoSupport.c"
GDate* _tmp26_ = NULL;
#line 217 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp26_ = video_date;
#line 217 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp26_ != NULL) {
-#line 3339 "VideoSupport.c"
+#line 3341 "VideoSupport.c"
GDate* _tmp27_ = NULL;
GDateYear _tmp28_ = 0U;
GDate* _tmp29_ = NULL;
@@ -3365,7 +3367,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
video_reader_set_timestamp (self, _tmp34_);
#line 218 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_date_time_unref0 (_tmp34_);
-#line 3368 "VideoSupport.c"
+#line 3370 "VideoSupport.c"
}
}
#line 205 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3374,7 +3376,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
_g_object_unref0 (info);
#line 205 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (d);
-#line 3377 "VideoSupport.c"
+#line 3379 "VideoSupport.c"
}
goto __finally497;
__catch497_g_error:
@@ -3416,7 +3418,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
_inner_error_ = _tmp42_;
#line 224 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 3419 "VideoSupport.c"
+#line 3421 "VideoSupport.c"
goto __finally497;
}
__finally497:
@@ -3428,7 +3430,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 205 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 3431 "VideoSupport.c"
+#line 3433 "VideoSupport.c"
} else {
#line 205 "/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);
@@ -3436,7 +3438,7 @@ static void video_reader_read_internal (VideoReader* self, GError** error) {
g_clear_error (&_inner_error_);
#line 205 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 3439 "VideoSupport.c"
+#line 3441 "VideoSupport.c"
}
}
}
@@ -3453,7 +3455,7 @@ static gboolean video_reader_on_thumbnailer_timer (VideoReader* self) {
_tmp0_ = self->priv->thumbnailer_pid;
#line 232 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_ != ((GPid) 0)) {
-#line 3456 "VideoSupport.c"
+#line 3458 "VideoSupport.c"
GPid _tmp1_ = 0;
GPid _tmp2_ = 0;
#line 233 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3464,13 +3466,13 @@ static gboolean video_reader_on_thumbnailer_timer (VideoReader* self) {
_tmp2_ = self->priv->thumbnailer_pid;
#line 234 "/home/jens/Source/shotwell/src/VideoSupport.vala"
kill ((pid_t) _tmp2_, SIGKILL);
-#line 3467 "VideoSupport.c"
+#line 3469 "VideoSupport.c"
}
#line 236 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = FALSE;
#line 236 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3473 "VideoSupport.c"
+#line 3475 "VideoSupport.c"
}
@@ -3479,7 +3481,7 @@ static gboolean _video_reader_on_thumbnailer_timer_gsource_func (gpointer self)
result = video_reader_on_thumbnailer_timer ((VideoReader*) self);
#line 259 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3482 "VideoSupport.c"
+#line 3484 "VideoSupport.c"
}
@@ -3556,7 +3558,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
argv_length1 = _tmp10__length1;
#line 244 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_argv_size_ = argv_length1;
-#line 3559 "VideoSupport.c"
+#line 3561 "VideoSupport.c"
{
gchar** _tmp11_ = NULL;
gint _tmp11__length1 = 0;
@@ -3575,14 +3577,14 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
child_stdout = _tmp13_;
#line 247 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 3578 "VideoSupport.c"
+#line 3580 "VideoSupport.c"
goto __catch498_g_error;
}
#line 250 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp14_ = self->priv->thumbnailer_pid;
#line 250 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_debug ("VideoSupport.vala:250: Spawned thumbnailer, child pid: %d", (gint) _tmp14_);
-#line 3585 "VideoSupport.c"
+#line 3587 "VideoSupport.c"
}
goto __finally498;
__catch498_g_error:
@@ -3605,13 +3607,13 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_tmp17_ = self->priv->thumbnailer_pid;
#line 253 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp17_ != ((GPid) 0)) {
-#line 3608 "VideoSupport.c"
+#line 3610 "VideoSupport.c"
GPid _tmp18_ = 0;
#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp18_ = self->priv->thumbnailer_pid;
#line 254 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_spawn_close_pid (_tmp18_);
-#line 3614 "VideoSupport.c"
+#line 3616 "VideoSupport.c"
}
#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = NULL;
@@ -3621,7 +3623,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 255 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3624 "VideoSupport.c"
+#line 3626 "VideoSupport.c"
}
__finally498:
#line 246 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3634,13 +3636,13 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
g_clear_error (&_inner_error_);
#line 246 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 3637 "VideoSupport.c"
+#line 3639 "VideoSupport.c"
}
#line 259 "/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 262 "/home/jens/Source/shotwell/src/VideoSupport.vala"
buf = NULL;
-#line 3643 "VideoSupport.c"
+#line 3645 "VideoSupport.c"
{
GUnixInputStream* unix_input = NULL;
gint _tmp19_ = 0;
@@ -3665,7 +3667,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (unix_input);
-#line 3668 "VideoSupport.c"
+#line 3670 "VideoSupport.c"
goto __catch499_g_error;
}
#line 265 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3680,7 +3682,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_g_object_unref0 (_tmp21_);
#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (unix_input);
-#line 3683 "VideoSupport.c"
+#line 3685 "VideoSupport.c"
}
goto __finally499;
__catch499_g_error:
@@ -3704,7 +3706,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
buf = NULL;
#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 3707 "VideoSupport.c"
+#line 3709 "VideoSupport.c"
}
__finally499:
#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3719,7 +3721,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
g_clear_error (&_inner_error_);
#line 263 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 3722 "VideoSupport.c"
+#line 3724 "VideoSupport.c"
}
#line 272 "/home/jens/Source/shotwell/src/VideoSupport.vala"
child_status = 0;
@@ -3735,7 +3737,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_tmp30_ = ret_waitpid;
#line 274 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp30_ < 0) {
-#line 3738 "VideoSupport.c"
+#line 3740 "VideoSupport.c"
gint _tmp31_ = 0;
#line 275 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp31_ = ret_waitpid;
@@ -3745,7 +3747,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_g_object_unref0 (buf);
#line 276 "/home/jens/Source/shotwell/src/VideoSupport.vala"
buf = NULL;
-#line 3748 "VideoSupport.c"
+#line 3750 "VideoSupport.c"
} else {
gint _tmp32_ = 0;
gint _tmp33_ = 0;
@@ -3755,7 +3757,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_tmp33_ = WEXITSTATUS (_tmp32_);
#line 277 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (0 != _tmp33_) {
-#line 3758 "VideoSupport.c"
+#line 3760 "VideoSupport.c"
gint _tmp34_ = 0;
gint _tmp35_ = 0;
#line 278 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3768,7 +3770,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
_g_object_unref0 (buf);
#line 280 "/home/jens/Source/shotwell/src/VideoSupport.vala"
buf = NULL;
-#line 3771 "VideoSupport.c"
+#line 3773 "VideoSupport.c"
}
}
#line 283 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3783,7 +3785,7 @@ static GdkPixbuf* video_reader_thumbnailer (VideoReader* self, const gchar* vide
argv = (_vala_array_free (argv, argv_length1, (GDestroyNotify) g_free), NULL);
#line 285 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3786 "VideoSupport.c"
+#line 3788 "VideoSupport.c"
}
@@ -3812,7 +3814,7 @@ static gboolean video_reader_does_file_exist (VideoReader* self) {
result = _tmp4_;
#line 289 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3815 "VideoSupport.c"
+#line 3817 "VideoSupport.c"
}
@@ -3833,7 +3835,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
_tmp0_ = self->priv->preview_frame;
#line 293 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_ != NULL) {
-#line 3836 "VideoSupport.c"
+#line 3838 "VideoSupport.c"
GdkPixbuf* _tmp1_ = NULL;
GdkPixbuf* _tmp2_ = NULL;
#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -3844,7 +3846,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
result = _tmp2_;
#line 294 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3847 "VideoSupport.c"
+#line 3849 "VideoSupport.c"
}
#line 296 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = video_reader_does_file_exist (self);
@@ -3854,7 +3856,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
result = NULL;
#line 297 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3857 "VideoSupport.c"
+#line 3859 "VideoSupport.c"
}
#line 300 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->file;
@@ -3874,7 +3876,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
_tmp8_ = self->priv->preview_frame;
#line 301 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (NULL == _tmp8_) {
-#line 3877 "VideoSupport.c"
+#line 3879 "VideoSupport.c"
GdkPixbuf* _tmp9_ = NULL;
#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp9_ = resources_get_noninterpretable_badge_pixbuf ();
@@ -3882,7 +3884,7 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
_g_object_unref0 (self->priv->preview_frame);
#line 302 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self->priv->preview_frame = _tmp9_;
-#line 3885 "VideoSupport.c"
+#line 3887 "VideoSupport.c"
}
#line 304 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp10_ = self->priv->preview_frame;
@@ -3892,14 +3894,14 @@ GdkPixbuf* video_reader_read_preview_frame (VideoReader* self) {
result = _tmp11_;
#line 304 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3895 "VideoSupport.c"
+#line 3897 "VideoSupport.c"
}
gdouble video_reader_read_clip_duration (VideoReader* self, GError** error) {
gdouble result = 0.0;
gdouble _tmp0_ = 0.0;
- gdouble _tmp1_ = 0.0;
+ gdouble _tmp3_ = 0.0;
GError * _inner_error_ = NULL;
#line 307 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO_READER (self), 0.0);
@@ -3913,29 +3915,32 @@ gdouble video_reader_read_clip_duration (VideoReader* self, GError** error) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == VIDEO_ERROR) {
+#line 3918 "VideoSupport.c"
+ gdouble _tmp1_ = 0.0;
#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_propagate_error (error, _inner_error_);
#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0.0;
-#line 3920 "VideoSupport.c"
+ return _tmp1_;
+#line 3924 "VideoSupport.c"
} else {
+ gdouble _tmp2_ = 0.0;
#line 309 "/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 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 309 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0.0;
-#line 3928 "VideoSupport.c"
+ return _tmp2_;
+#line 3933 "VideoSupport.c"
}
}
}
#line 311 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp1_ = self->priv->clip_duration;
+ _tmp3_ = self->priv->clip_duration;
#line 311 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp1_;
+ result = _tmp3_;
#line 311 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3938 "VideoSupport.c"
+#line 3943 "VideoSupport.c"
}
@@ -3979,13 +3984,13 @@ VideoMetadata* video_reader_read_metadata (VideoReader* self, GError** error) {
_media_metadata_unref0 (metadata);
#line 316 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 3982 "VideoSupport.c"
+#line 3987 "VideoSupport.c"
}
#line 318 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = metadata;
#line 318 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 3988 "VideoSupport.c"
+#line 3993 "VideoSupport.c"
}
@@ -4000,14 +4005,14 @@ GDateTime* video_reader_get_timestamp (VideoReader* self) {
result = _tmp0_;
#line 49 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 4003 "VideoSupport.c"
+#line 4008 "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 4010 "VideoSupport.c"
+#line 4015 "VideoSupport.c"
}
@@ -4024,14 +4029,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 4027 "VideoSupport.c"
+#line 4032 "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 4034 "VideoSupport.c"
+#line 4039 "VideoSupport.c"
}
@@ -4040,7 +4045,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 4043 "VideoSupport.c"
+#line 4048 "VideoSupport.c"
}
}
@@ -4050,11 +4055,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 4053 "VideoSupport.c"
+#line 4058 "VideoSupport.c"
} else {
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 4057 "VideoSupport.c"
+#line 4062 "VideoSupport.c"
}
}
@@ -4062,37 +4067,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 4065 "VideoSupport.c"
+#line 4070 "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 4072 "VideoSupport.c"
+#line 4077 "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 4079 "VideoSupport.c"
+#line 4084 "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 4083 "VideoSupport.c"
+#line 4088 "VideoSupport.c"
}
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = video_reader_ref (object);
-#line 4087 "VideoSupport.c"
+#line 4092 "VideoSupport.c"
} else {
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 4091 "VideoSupport.c"
+#line 4096 "VideoSupport.c"
}
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 4095 "VideoSupport.c"
+#line 4100 "VideoSupport.c"
}
@@ -4103,25 +4108,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 4106 "VideoSupport.c"
+#line 4111 "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 4112 "VideoSupport.c"
+#line 4117 "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 4116 "VideoSupport.c"
+#line 4121 "VideoSupport.c"
} else {
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*object_p = video_reader_ref (value->data[0].v_pointer);
-#line 4120 "VideoSupport.c"
+#line 4125 "VideoSupport.c"
}
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 4124 "VideoSupport.c"
+#line 4129 "VideoSupport.c"
}
@@ -4135,7 +4140,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 4138 "VideoSupport.c"
+#line 4143 "VideoSupport.c"
}
@@ -4144,7 +4149,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 4147 "VideoSupport.c"
+#line 4152 "VideoSupport.c"
}
@@ -4164,17 +4169,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 4167 "VideoSupport.c"
+#line 4172 "VideoSupport.c"
} else {
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 4171 "VideoSupport.c"
+#line 4176 "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 4177 "VideoSupport.c"
+#line 4182 "VideoSupport.c"
}
}
@@ -4193,17 +4198,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 4196 "VideoSupport.c"
+#line 4201 "VideoSupport.c"
} else {
#line 38 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 4200 "VideoSupport.c"
+#line 4205 "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 4206 "VideoSupport.c"
+#line 4211 "VideoSupport.c"
}
}
@@ -4215,7 +4220,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 4218 "VideoSupport.c"
+#line 4223 "VideoSupport.c"
}
@@ -4234,7 +4239,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 4237 "VideoSupport.c"
+#line 4242 "VideoSupport.c"
}
@@ -4250,7 +4255,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 4253 "VideoSupport.c"
+#line 4258 "VideoSupport.c"
}
@@ -4275,7 +4280,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 4278 "VideoSupport.c"
+#line 4283 "VideoSupport.c"
}
@@ -4288,7 +4293,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 4291 "VideoSupport.c"
+#line 4296 "VideoSupport.c"
}
}
@@ -4296,7 +4301,7 @@ void video_reader_unref (gpointer instance) {
static gpointer _video_row_ref0 (gpointer self) {
#line 366 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return self ? video_row_ref (self) : NULL;
-#line 4299 "VideoSupport.c"
+#line 4304 "VideoSupport.c"
}
@@ -4343,7 +4348,7 @@ Video* video_construct (GType object_type, VideoRow* row) {
if ((_tmp8_ & VIDEO_FLAG_TRASH) != ((guint64) 0)) {
#line 371 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = TRUE;
-#line 4346 "VideoSupport.c"
+#line 4351 "VideoSupport.c"
} else {
VideoRow* _tmp9_ = NULL;
guint64 _tmp10_ = 0ULL;
@@ -4353,11 +4358,11 @@ Video* video_construct (GType object_type, VideoRow* row) {
_tmp10_ = _tmp9_->flags;
#line 371 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = (_tmp10_ & VIDEO_FLAG_OFFLINE) != ((guint64) 0);
-#line 4356 "VideoSupport.c"
+#line 4361 "VideoSupport.c"
}
#line 371 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp6_) {
-#line 4360 "VideoSupport.c"
+#line 4365 "VideoSupport.c"
VideoSourceCollection* _tmp11_ = NULL;
VideoRow* _tmp12_ = NULL;
const gchar* _tmp13_ = NULL;
@@ -4369,18 +4374,18 @@ Video* video_construct (GType object_type, VideoRow* row) {
_tmp13_ = _tmp12_->backlinks;
#line 372 "/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 4372 "VideoSupport.c"
+#line 4377 "VideoSupport.c"
}
#line 365 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return self;
-#line 4376 "VideoSupport.c"
+#line 4381 "VideoSupport.c"
}
Video* video_new (VideoRow* row) {
#line 365 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return video_construct (TYPE_VIDEO, row);
-#line 4383 "VideoSupport.c"
+#line 4388 "VideoSupport.c"
}
@@ -4479,7 +4484,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
"l video thumbnails are out of date");
#line 394 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpreter_state_changed = TRUE;
-#line 4481 "VideoSupport.c"
+#line 4486 "VideoSupport.c"
} else {
gint _tmp9_ = 0;
gint _tmp10_ = 0;
@@ -4494,7 +4499,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
" may be out of date");
#line 397 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpreter_state_changed = TRUE;
-#line 4495 "VideoSupport.c"
+#line 4500 "VideoSupport.c"
}
}
#line 406 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4507,7 +4512,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp13_ = feature;
#line 408 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp13_ != NULL) {
-#line 4508 "VideoSupport.c"
+#line 4513 "VideoSupport.c"
GstRegistry* _tmp14_ = NULL;
GstPluginFeature* _tmp15_ = NULL;
#line 409 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4516,7 +4521,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp15_ = feature;
#line 409 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gst_registry_remove_feature (_tmp14_, _tmp15_);
-#line 4517 "VideoSupport.c"
+#line 4522 "VideoSupport.c"
}
#line 412 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_ = registry;
@@ -4530,7 +4535,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp18_ = feature;
#line 414 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp18_ != NULL) {
-#line 4531 "VideoSupport.c"
+#line 4536 "VideoSupport.c"
GstRegistry* _tmp19_ = NULL;
GstPluginFeature* _tmp20_ = NULL;
#line 415 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4539,7 +4544,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp20_ = feature;
#line 415 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gst_registry_remove_feature (_tmp19_, _tmp20_);
-#line 4540 "VideoSupport.c"
+#line 4545 "VideoSupport.c"
}
#line 418 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp21_ = video_source_collection_new ();
@@ -4560,38 +4565,38 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
#line 420 "/home/jens/Source/shotwell/src/VideoSupport.vala"
all = _tmp25_;
#line 421 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp26_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+ _tmp26_ = 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_videos = _tmp26_;
#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp27_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+ _tmp27_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 422 "/home/jens/Source/shotwell/src/VideoSupport.vala"
trashed_videos = _tmp27_;
#line 423 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp28_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
+ _tmp28_ = 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"
offline_videos = _tmp28_;
#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp29_ = all;
#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_COLLECTION, GeeCollection));
+ _tmp30_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp31_ = _tmp30_;
#line 424 "/home/jens/Source/shotwell/src/VideoSupport.vala"
count = _tmp31_;
-#line 4580 "VideoSupport.c"
+#line 4585 "VideoSupport.c"
{
gint ctr = 0;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
ctr = 0;
-#line 4585 "VideoSupport.c"
+#line 4590 "VideoSupport.c"
{
gboolean _tmp32_ = FALSE;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp32_ = TRUE;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 4592 "VideoSupport.c"
+#line 4597 "VideoSupport.c"
gint _tmp34_ = 0;
gint _tmp35_ = 0;
Video* video = NULL;
@@ -4608,13 +4613,13 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
void* _tmp54__target = NULL;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (!_tmp32_) {
-#line 4609 "VideoSupport.c"
+#line 4614 "VideoSupport.c"
gint _tmp33_ = 0;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp33_ = ctr;
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
ctr = _tmp33_ + 1;
-#line 4615 "VideoSupport.c"
+#line 4620 "VideoSupport.c"
}
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp32_ = FALSE;
@@ -4626,7 +4631,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
if (!(_tmp34_ < _tmp35_)) {
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 4627 "VideoSupport.c"
+#line 4632 "VideoSupport.c"
}
#line 426 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp36_ = all;
@@ -4648,13 +4653,13 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp42_ = video_interpreter_state_changed;
#line 428 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp42_) {
-#line 4649 "VideoSupport.c"
+#line 4654 "VideoSupport.c"
Video* _tmp43_ = NULL;
#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp43_ = video;
#line 429 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_set_is_interpretable (_tmp43_, FALSE);
-#line 4655 "VideoSupport.c"
+#line 4660 "VideoSupport.c"
}
#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp44_ = video;
@@ -4662,7 +4667,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp45_ = media_source_is_trashed (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_MEDIA_SOURCE, MediaSource));
#line 431 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp45_) {
-#line 4663 "VideoSupport.c"
+#line 4668 "VideoSupport.c"
GeeArrayList* _tmp46_ = NULL;
Video* _tmp47_ = NULL;
#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4671,7 +4676,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp47_ = video;
#line 432 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp46_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp47_);
-#line 4672 "VideoSupport.c"
+#line 4677 "VideoSupport.c"
} else {
Video* _tmp48_ = NULL;
gboolean _tmp49_ = FALSE;
@@ -4681,7 +4686,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp49_ = media_source_is_offline (G_TYPE_CHECK_INSTANCE_CAST (_tmp48_, TYPE_MEDIA_SOURCE, MediaSource));
#line 433 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp49_) {
-#line 4682 "VideoSupport.c"
+#line 4687 "VideoSupport.c"
GeeArrayList* _tmp50_ = NULL;
Video* _tmp51_ = NULL;
#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4690,7 +4695,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp51_ = video;
#line 434 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp51_);
-#line 4691 "VideoSupport.c"
+#line 4696 "VideoSupport.c"
} else {
GeeArrayList* _tmp52_ = NULL;
Video* _tmp53_ = NULL;
@@ -4700,7 +4705,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp53_ = video;
#line 436 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp52_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp53_);
-#line 4701 "VideoSupport.c"
+#line 4706 "VideoSupport.c"
}
}
#line 438 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -4709,7 +4714,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp54__target = monitor_target;
#line 438 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp54_ != NULL) {
-#line 4710 "VideoSupport.c"
+#line 4715 "VideoSupport.c"
ProgressMonitor _tmp55_ = NULL;
void* _tmp55__target = NULL;
gint _tmp56_ = 0;
@@ -4724,11 +4729,11 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_tmp57_ = count;
#line 439 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp55_ ((guint64) _tmp56_, (guint64) _tmp57_, TRUE, _tmp55__target);
-#line 4725 "VideoSupport.c"
+#line 4730 "VideoSupport.c"
}
#line 425 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (video);
-#line 4729 "VideoSupport.c"
+#line 4734 "VideoSupport.c"
}
}
}
@@ -4766,7 +4771,7 @@ void video_init (ProgressMonitor monitor, void* monitor_target) {
_g_object_unref0 (feature);
#line 375 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (registry);
-#line 4767 "VideoSupport.c"
+#line 4772 "VideoSupport.c"
}
@@ -4779,7 +4784,7 @@ gboolean video_has_interpreter_state_changed (void) {
result = _tmp0_;
#line 448 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 4780 "VideoSupport.c"
+#line 4785 "VideoSupport.c"
}
@@ -4793,7 +4798,7 @@ void video_notify_normal_thumbs_regenerated (void) {
if (_tmp0_) {
#line 453 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 4794 "VideoSupport.c"
+#line 4799 "VideoSupport.c"
}
#line 455 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_message ("VideoSupport.vala:455: normal video thumbnail regeneration completed");
@@ -4803,23 +4808,23 @@ void video_notify_normal_thumbs_regenerated (void) {
_tmp2_ = video_normal_regen_complete;
#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp2_) {
-#line 4804 "VideoSupport.c"
+#line 4809 "VideoSupport.c"
gboolean _tmp3_ = FALSE;
#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = video_offline_regen_complete;
#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = _tmp3_;
-#line 4810 "VideoSupport.c"
+#line 4815 "VideoSupport.c"
} else {
#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = FALSE;
-#line 4814 "VideoSupport.c"
+#line 4819 "VideoSupport.c"
}
#line 458 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp1_) {
#line 459 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_save_interpreter_state ();
-#line 4820 "VideoSupport.c"
+#line 4825 "VideoSupport.c"
}
}
@@ -4834,7 +4839,7 @@ void video_notify_offline_thumbs_regenerated (void) {
if (_tmp0_) {
#line 464 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 4835 "VideoSupport.c"
+#line 4840 "VideoSupport.c"
}
#line 466 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_message ("VideoSupport.vala:466: offline video thumbnail regeneration completed");
@@ -4844,23 +4849,23 @@ void video_notify_offline_thumbs_regenerated (void) {
_tmp2_ = video_normal_regen_complete;
#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp2_) {
-#line 4845 "VideoSupport.c"
+#line 4850 "VideoSupport.c"
gboolean _tmp3_ = FALSE;
#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = video_offline_regen_complete;
#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = _tmp3_;
-#line 4851 "VideoSupport.c"
+#line 4856 "VideoSupport.c"
} else {
#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = FALSE;
-#line 4855 "VideoSupport.c"
+#line 4860 "VideoSupport.c"
}
#line 469 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp1_) {
#line 470 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_save_interpreter_state ();
-#line 4861 "VideoSupport.c"
+#line 4866 "VideoSupport.c"
}
}
@@ -4871,7 +4876,7 @@ static void video_save_interpreter_state (void) {
_tmp0_ = video_interpreter_state_changed;
#line 474 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_) {
-#line 4872 "VideoSupport.c"
+#line 4877 "VideoSupport.c"
ConfigFacade* _tmp1_ = NULL;
ConfigFacade* _tmp2_ = NULL;
gint _tmp3_ = 0;
@@ -4890,7 +4895,7 @@ static void video_save_interpreter_state (void) {
_g_object_unref0 (_tmp2_);
#line 478 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpreter_state_changed = FALSE;
-#line 4890 "VideoSupport.c"
+#line 4895 "VideoSupport.c"
}
}
@@ -4939,13 +4944,13 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
result = NULL;
#line 488 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 4939 "VideoSupport.c"
+#line 4944 "VideoSupport.c"
}
#line 491 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = export_in_place;
#line 491 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp3_) {
-#line 4945 "VideoSupport.c"
+#line 4950 "VideoSupport.c"
ExporterUI* temp_exporter = NULL;
GeeCollection* _tmp4_ = NULL;
Scaling _tmp5_ = {0};
@@ -4987,7 +4992,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
result = temp_exporter;
#line 495 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 4987 "VideoSupport.c"
+#line 4992 "VideoSupport.c"
}
#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp13_ = videos;
@@ -4997,7 +5002,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_tmp15_ = _tmp14_;
#line 499 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp15_ == 1) {
-#line 4997 "VideoSupport.c"
+#line 5002 "VideoSupport.c"
Video* video = NULL;
GFile* save_as = NULL;
Video* _tmp24_ = NULL;
@@ -5008,7 +5013,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
GFile* _tmp29_ = NULL;
#line 500 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video = NULL;
-#line 5008 "VideoSupport.c"
+#line 5013 "VideoSupport.c"
{
GeeIterator* _v_it = NULL;
GeeCollection* _tmp16_ = NULL;
@@ -5021,7 +5026,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_v_it = _tmp17_;
#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 5021 "VideoSupport.c"
+#line 5026 "VideoSupport.c"
GeeIterator* _tmp18_ = NULL;
gboolean _tmp19_ = FALSE;
Video* v = NULL;
@@ -5037,7 +5042,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
if (!_tmp19_) {
#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 5037 "VideoSupport.c"
+#line 5042 "VideoSupport.c"
}
#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp20_ = _v_it;
@@ -5057,11 +5062,11 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_g_object_unref0 (v);
#line 503 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 5057 "VideoSupport.c"
+#line 5062 "VideoSupport.c"
}
#line 501 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_v_it);
-#line 5061 "VideoSupport.c"
+#line 5066 "VideoSupport.c"
}
#line 506 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp24_ = video;
@@ -5089,7 +5094,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_g_object_unref0 (video);
#line 508 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5089 "VideoSupport.c"
+#line 5094 "VideoSupport.c"
}
{
AppWindow* _tmp30_ = NULL;
@@ -5114,7 +5119,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
video_export (_tmp32_, _tmp33_, &_inner_error_);
#line 512 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5114 "VideoSupport.c"
+#line 5119 "VideoSupport.c"
goto __catch500_g_error;
}
#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5125,7 +5130,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
page_window_set_normal_cursor (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, TYPE_PAGE_WINDOW, PageWindow));
#line 513 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_tmp35_);
-#line 5125 "VideoSupport.c"
+#line 5130 "VideoSupport.c"
}
goto __finally500;
__catch500_g_error:
@@ -5152,7 +5157,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
export_error_dialog (_tmp38_, FALSE);
#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 5152 "VideoSupport.c"
+#line 5157 "VideoSupport.c"
}
__finally500:
#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5167,7 +5172,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
g_clear_error (&_inner_error_);
#line 510 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 5167 "VideoSupport.c"
+#line 5172 "VideoSupport.c"
}
#line 519 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = NULL;
@@ -5177,7 +5182,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_g_object_unref0 (video);
#line 519 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5177 "VideoSupport.c"
+#line 5182 "VideoSupport.c"
}
#line 523 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp39_ = _ ("Export Videos");
@@ -5195,7 +5200,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_g_object_unref0 (export_dir);
#line 525 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5195 "VideoSupport.c"
+#line 5200 "VideoSupport.c"
}
#line 527 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp42_ = videos;
@@ -5231,7 +5236,7 @@ ExporterUI* video_export_many (GeeCollection* videos, ExporterCompletionCallback
_g_object_unref0 (export_dir);
#line 531 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5231 "VideoSupport.c"
+#line 5236 "VideoSupport.c"
}
@@ -5242,7 +5247,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
#line 534 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail ((sources == NULL) || IS_SOURCE_COLLECTION (sources));
-#line 5242 "VideoSupport.c"
+#line 5247 "VideoSupport.c"
{
VideoTable* _tmp0_ = NULL;
VideoTable* _tmp1_ = NULL;
@@ -5264,7 +5269,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5264 "VideoSupport.c"
+#line 5269 "VideoSupport.c"
goto __catch501_database_error;
}
#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5273,7 +5278,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
g_clear_error (&_inner_error_);
#line 536 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 5273 "VideoSupport.c"
+#line 5278 "VideoSupport.c"
}
{
VideoRow* _tmp4_ = NULL;
@@ -5281,7 +5286,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
_tmp4_ = self->priv->backing_row;
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5281 "VideoSupport.c"
+#line 5286 "VideoSupport.c"
{
VideoRow* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
@@ -5296,7 +5301,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
_g_free0 (_tmp5_->backlinks);
#line 538 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_->backlinks = _tmp7_;
-#line 5296 "VideoSupport.c"
+#line 5301 "VideoSupport.c"
}
__finally502:
{
@@ -5305,13 +5310,13 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
_tmp8_ = self->priv->backing_row;
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5305 "VideoSupport.c"
+#line 5310 "VideoSupport.c"
}
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5311 "VideoSupport.c"
+#line 5316 "VideoSupport.c"
goto __catch501_database_error;
}
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5320,7 +5325,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
g_clear_error (&_inner_error_);
#line 537 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 5320 "VideoSupport.c"
+#line 5325 "VideoSupport.c"
}
}
}
@@ -5350,7 +5355,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
_g_free0 (_tmp10_);
#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 5350 "VideoSupport.c"
+#line 5355 "VideoSupport.c"
}
__finally501:
#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5361,7 +5366,7 @@ static void video_real_commit_backlinks (DataSource* base, SourceCollection* sou
g_clear_error (&_inner_error_);
#line 535 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 5361 "VideoSupport.c"
+#line 5366 "VideoSupport.c"
}
}
@@ -5374,14 +5379,15 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) {
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
#line 545 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (event_id != NULL, FALSE);
-#line 5374 "VideoSupport.c"
+#line 5379 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ gboolean _tmp13_ = FALSE;
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5381 "VideoSupport.c"
+#line 5387 "VideoSupport.c"
{
gboolean committed = FALSE;
VideoTable* _tmp1_ = NULL;
@@ -5414,7 +5420,7 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) {
_tmp8_ = committed;
#line 549 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp8_) {
-#line 5414 "VideoSupport.c"
+#line 5420 "VideoSupport.c"
VideoRow* _tmp9_ = NULL;
EventID _tmp10_ = {0};
#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5423,22 +5429,22 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) {
_tmp10_ = *event_id;
#line 550 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp9_->event_id = _tmp10_;
-#line 5423 "VideoSupport.c"
+#line 5429 "VideoSupport.c"
}
#line 552 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = committed;
-#line 5427 "VideoSupport.c"
+#line 5433 "VideoSupport.c"
{
VideoRow* _tmp11_ = NULL;
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp11_ = self->priv->backing_row;
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5434 "VideoSupport.c"
+#line 5440 "VideoSupport.c"
}
#line 552 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5438 "VideoSupport.c"
+#line 5444 "VideoSupport.c"
}
__finally503:
{
@@ -5447,15 +5453,15 @@ static gboolean video_real_set_event_id (MediaSource* base, EventID* event_id) {
_tmp12_ = self->priv->backing_row;
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5447 "VideoSupport.c"
+#line 5453 "VideoSupport.c"
}
#line 546 "/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 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 546 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 5455 "VideoSupport.c"
+ return _tmp13_;
+#line 5461 "VideoSupport.c"
}
}
@@ -5478,14 +5484,14 @@ gboolean video_is_duplicate (GFile* file, const gchar* full_md5) {
if (_tmp1_ != NULL) {
#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = TRUE;
-#line 5478 "VideoSupport.c"
+#line 5484 "VideoSupport.c"
} else {
const gchar* _tmp2_ = NULL;
#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp2_ = full_md5;
#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = _tmp2_ != NULL;
-#line 5485 "VideoSupport.c"
+#line 5491 "VideoSupport.c"
}
#line 557 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_vala_assert (_tmp0_, "file != null || full_md5 != null");
@@ -5507,7 +5513,7 @@ gboolean video_is_duplicate (GFile* file, const gchar* full_md5) {
result = _tmp8_;
#line 559 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5507 "VideoSupport.c"
+#line 5513 "VideoSupport.c"
}
@@ -5524,7 +5530,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
_g_object_unref0 (_vala_video);
#line 566 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_vala_video = NULL;
-#line 5524 "VideoSupport.c"
+#line 5530 "VideoSupport.c"
{
VideoID _tmp0_ = {0};
VideoTable* _tmp1_ = NULL;
@@ -5554,7 +5560,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5554 "VideoSupport.c"
+#line 5560 "VideoSupport.c"
goto __catch504_database_error;
}
#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5563,7 +5569,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
g_clear_error (&_inner_error_);
#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 5563 "VideoSupport.c"
+#line 5569 "VideoSupport.c"
}
#line 570 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = video_id_is_invalid (&_tmp0_);
@@ -5575,15 +5581,15 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
if (video) {
#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*video = _vala_video;
-#line 5575 "VideoSupport.c"
+#line 5581 "VideoSupport.c"
} else {
#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_vala_video);
-#line 5579 "VideoSupport.c"
+#line 5585 "VideoSupport.c"
}
#line 571 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5583 "VideoSupport.c"
+#line 5589 "VideoSupport.c"
}
}
goto __finally504;
@@ -5602,15 +5608,15 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
if (video) {
#line 573 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*video = _vala_video;
-#line 5602 "VideoSupport.c"
+#line 5608 "VideoSupport.c"
} else {
#line 573 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_vala_video);
-#line 5606 "VideoSupport.c"
+#line 5612 "VideoSupport.c"
}
#line 573 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5610 "VideoSupport.c"
+#line 5616 "VideoSupport.c"
}
__finally504:
#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5621,7 +5627,7 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
g_clear_error (&_inner_error_);
#line 569 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 5621 "VideoSupport.c"
+#line 5627 "VideoSupport.c"
}
#line 577 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp8_ = params;
@@ -5639,15 +5645,15 @@ ImportResult video_import_create (VideoImportParams* params, Video** video) {
if (video) {
#line 579 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*video = _vala_video;
-#line 5639 "VideoSupport.c"
+#line 5645 "VideoSupport.c"
} else {
#line 579 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_vala_video);
-#line 5643 "VideoSupport.c"
+#line 5649 "VideoSupport.c"
}
#line 579 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5647 "VideoSupport.c"
+#line 5653 "VideoSupport.c"
}
@@ -5655,7 +5661,7 @@ void video_import_failed (Video* video) {
GError * _inner_error_ = NULL;
#line 582 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (IS_VIDEO (video));
-#line 5655 "VideoSupport.c"
+#line 5661 "VideoSupport.c"
{
VideoTable* _tmp0_ = NULL;
VideoTable* _tmp1_ = NULL;
@@ -5677,7 +5683,7 @@ void video_import_failed (Video* video) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5677 "VideoSupport.c"
+#line 5683 "VideoSupport.c"
goto __catch505_database_error;
}
#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5686,7 +5692,7 @@ void video_import_failed (Video* video) {
g_clear_error (&_inner_error_);
#line 584 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 5686 "VideoSupport.c"
+#line 5692 "VideoSupport.c"
}
}
goto __finally505;
@@ -5704,7 +5710,7 @@ void video_import_failed (Video* video) {
app_window_database_error (_tmp4_);
#line 583 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 5704 "VideoSupport.c"
+#line 5710 "VideoSupport.c"
}
__finally505:
#line 583 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5715,7 +5721,7 @@ void video_import_failed (Video* video) {
g_clear_error (&_inner_error_);
#line 583 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 5715 "VideoSupport.c"
+#line 5721 "VideoSupport.c"
}
}
@@ -5740,14 +5746,14 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
backing_length1 = 1;
#line 591 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_backing_size_ = backing_length1;
-#line 5740 "VideoSupport.c"
+#line 5746 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = self->priv->backing_row;
#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5747 "VideoSupport.c"
+#line 5753 "VideoSupport.c"
{
VideoRow* _tmp2_ = NULL;
const gchar* _tmp3_ = NULL;
@@ -5783,7 +5789,7 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
backing[0] = _tmp10_;
#line 593 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp11_ = backing[0];
-#line 5783 "VideoSupport.c"
+#line 5789 "VideoSupport.c"
}
__finally506:
{
@@ -5792,7 +5798,7 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
_tmp12_ = self->priv->backing_row;
#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5792 "VideoSupport.c"
+#line 5798 "VideoSupport.c"
}
#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -5804,7 +5810,7 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
g_clear_error (&_inner_error_);
#line 592 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 5804 "VideoSupport.c"
+#line 5810 "VideoSupport.c"
}
}
#line 597 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -5815,13 +5821,13 @@ static BackingFileState** video_real_get_backing_files_state (MediaSource* base,
if (result_length1) {
#line 597 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*result_length1 = _tmp13__length1;
-#line 5815 "VideoSupport.c"
+#line 5821 "VideoSupport.c"
}
#line 597 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp13_;
#line 597 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5821 "VideoSupport.c"
+#line 5827 "VideoSupport.c"
}
@@ -5847,7 +5853,7 @@ static GdkPixbuf* video_real_get_thumbnail (ThumbnailSource* base, gint scale, G
g_propagate_error (error, _inner_error_);
#line 601 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 5847 "VideoSupport.c"
+#line 5853 "VideoSupport.c"
}
#line 601 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = _tmp0_;
@@ -5859,7 +5865,7 @@ static GdkPixbuf* video_real_get_thumbnail (ThumbnailSource* base, gint scale, G
_g_object_unref0 (_tmp0_);
#line 601 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5859 "VideoSupport.c"
+#line 5865 "VideoSupport.c"
}
@@ -5869,14 +5875,14 @@ static gchar* video_real_get_master_md5 (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 604 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 5869 "VideoSupport.c"
+#line 5875 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 5876 "VideoSupport.c"
+#line 5882 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
@@ -5889,18 +5895,18 @@ static gchar* video_real_get_master_md5 (MediaSource* base) {
_tmp3_ = g_strdup (_tmp2_);
#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp3_;
-#line 5889 "VideoSupport.c"
+#line 5895 "VideoSupport.c"
{
VideoRow* _tmp4_ = NULL;
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->backing_row;
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5896 "VideoSupport.c"
+#line 5902 "VideoSupport.c"
}
#line 606 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5900 "VideoSupport.c"
+#line 5906 "VideoSupport.c"
}
__finally507:
{
@@ -5909,7 +5915,7 @@ static gchar* video_real_get_master_md5 (MediaSource* base) {
_tmp5_ = self->priv->backing_row;
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 5909 "VideoSupport.c"
+#line 5915 "VideoSupport.c"
}
#line 605 "/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);
@@ -5917,7 +5923,7 @@ static gchar* video_real_get_master_md5 (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 605 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 5917 "VideoSupport.c"
+#line 5923 "VideoSupport.c"
}
}
@@ -5943,7 +5949,7 @@ static GdkPixbuf* video_real_get_preview_pixbuf (MediaSource* base, Scaling* sca
g_propagate_error (error, _inner_error_);
#line 611 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 5943 "VideoSupport.c"
+#line 5949 "VideoSupport.c"
}
#line 613 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = scaling_perform_on_pixbuf (scaling, pixbuf, GDK_INTERP_NEAREST, TRUE);
@@ -5953,7 +5959,7 @@ static GdkPixbuf* video_real_get_preview_pixbuf (MediaSource* base, Scaling* sca
_g_object_unref0 (pixbuf);
#line 613 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 5953 "VideoSupport.c"
+#line 5959 "VideoSupport.c"
}
@@ -5994,7 +6000,7 @@ static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, gint scale
_tmp7_ = frame;
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp7_ != NULL) {
-#line 5994 "VideoSupport.c"
+#line 6000 "VideoSupport.c"
GdkPixbuf* _tmp8_ = NULL;
GdkPixbuf* _tmp9_ = NULL;
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -6005,7 +6011,7 @@ static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, gint scale
_g_object_unref0 (_tmp6_);
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = _tmp9_;
-#line 6005 "VideoSupport.c"
+#line 6011 "VideoSupport.c"
} else {
GdkPixbuf* _tmp10_ = NULL;
GdkPixbuf* _tmp11_ = NULL;
@@ -6022,7 +6028,7 @@ static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, gint scale
_tmp6_ = _tmp12_;
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_tmp11_);
-#line 6022 "VideoSupport.c"
+#line 6028 "VideoSupport.c"
}
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp6_;
@@ -6032,7 +6038,7 @@ static GdkPixbuf* video_real_create_thumbnail (ThumbnailSource* base, gint scale
_video_reader_unref0 (reader);
#line 620 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6032 "VideoSupport.c"
+#line 6038 "VideoSupport.c"
}
@@ -6048,7 +6054,7 @@ static gchar* video_real_get_typename (DataSource* base) {
result = _tmp0_;
#line 624 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6048 "VideoSupport.c"
+#line 6054 "VideoSupport.c"
}
@@ -6067,7 +6073,7 @@ static gint64 video_real_get_instance_id (DataSource* base) {
result = _tmp1_;
#line 628 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6067 "VideoSupport.c"
+#line 6073 "VideoSupport.c"
}
@@ -6076,14 +6082,14 @@ static void video_real_get_import_id (MediaSource* base, ImportID* result) {
GError * _inner_error_ = NULL;
#line 631 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6076 "VideoSupport.c"
+#line 6082 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6083 "VideoSupport.c"
+#line 6089 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
ImportID _tmp2_ = {0};
@@ -6093,18 +6099,18 @@ static void video_real_get_import_id (MediaSource* base, ImportID* result) {
_tmp2_ = _tmp1_->import_id;
#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*result = _tmp2_;
-#line 6093 "VideoSupport.c"
+#line 6099 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6100 "VideoSupport.c"
+#line 6106 "VideoSupport.c"
}
#line 633 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6104 "VideoSupport.c"
+#line 6110 "VideoSupport.c"
}
__finally508:
{
@@ -6113,7 +6119,7 @@ static void video_real_get_import_id (MediaSource* base, ImportID* result) {
_tmp4_ = self->priv->backing_row;
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6113 "VideoSupport.c"
+#line 6119 "VideoSupport.c"
}
#line 632 "/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);
@@ -6121,7 +6127,7 @@ static void video_real_get_import_id (MediaSource* base, ImportID* result) {
g_clear_error (&_inner_error_);
#line 632 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6121 "VideoSupport.c"
+#line 6127 "VideoSupport.c"
}
}
@@ -6138,7 +6144,7 @@ static PhotoFileFormat video_real_get_preferred_thumbnail_format (ThumbnailSourc
result = _tmp0_;
#line 638 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6138 "VideoSupport.c"
+#line 6144 "VideoSupport.c"
}
@@ -6148,14 +6154,14 @@ static gchar* video_real_get_title (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 641 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6148 "VideoSupport.c"
+#line 6154 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6155 "VideoSupport.c"
+#line 6161 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
@@ -6168,18 +6174,18 @@ static gchar* video_real_get_title (MediaSource* base) {
_tmp3_ = g_strdup (_tmp2_);
#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp3_;
-#line 6168 "VideoSupport.c"
+#line 6174 "VideoSupport.c"
{
VideoRow* _tmp4_ = NULL;
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->backing_row;
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6175 "VideoSupport.c"
+#line 6181 "VideoSupport.c"
}
#line 643 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6179 "VideoSupport.c"
+#line 6185 "VideoSupport.c"
}
__finally509:
{
@@ -6188,7 +6194,7 @@ static gchar* video_real_get_title (MediaSource* base) {
_tmp5_ = self->priv->backing_row;
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6188 "VideoSupport.c"
+#line 6194 "VideoSupport.c"
}
#line 642 "/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);
@@ -6196,7 +6202,7 @@ static gchar* video_real_get_title (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 642 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 6196 "VideoSupport.c"
+#line 6202 "VideoSupport.c"
}
}
@@ -6217,14 +6223,14 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_tmp1_ = media_source_prep_title (_tmp0_);
#line 648 "/home/jens/Source/shotwell/src/VideoSupport.vala"
new_title = _tmp1_;
-#line 6217 "VideoSupport.c"
+#line 6223 "VideoSupport.c"
{
VideoRow* _tmp2_ = NULL;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp2_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6224 "VideoSupport.c"
+#line 6230 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
@@ -6240,20 +6246,20 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_tmp5_ = new_title;
#line 651 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
-#line 6240 "VideoSupport.c"
+#line 6246 "VideoSupport.c"
{
VideoRow* _tmp6_ = NULL;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6247 "VideoSupport.c"
+#line 6253 "VideoSupport.c"
}
#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_title);
#line 652 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6253 "VideoSupport.c"
+#line 6259 "VideoSupport.c"
}
{
VideoTable* _tmp7_ = NULL;
@@ -6279,7 +6285,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6279 "VideoSupport.c"
+#line 6285 "VideoSupport.c"
goto __catch511_database_error;
}
{
@@ -6288,7 +6294,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_tmp12_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6288 "VideoSupport.c"
+#line 6294 "VideoSupport.c"
}
#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_title);
@@ -6298,7 +6304,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
g_clear_error (&_inner_error_);
#line 655 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6298 "VideoSupport.c"
+#line 6304 "VideoSupport.c"
}
}
goto __finally511;
@@ -6316,32 +6322,32 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
app_window_database_error (_tmp13_);
#line 658 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 6316 "VideoSupport.c"
+#line 6322 "VideoSupport.c"
{
VideoRow* _tmp14_ = NULL;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp14_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6323 "VideoSupport.c"
+#line 6329 "VideoSupport.c"
}
#line 658 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_title);
#line 658 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6329 "VideoSupport.c"
+#line 6335 "VideoSupport.c"
}
__finally511:
#line 654 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6334 "VideoSupport.c"
+#line 6340 "VideoSupport.c"
{
VideoRow* _tmp15_ = NULL;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp15_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6341 "VideoSupport.c"
+#line 6347 "VideoSupport.c"
}
#line 654 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_title);
@@ -6351,7 +6357,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
g_clear_error (&_inner_error_);
#line 654 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6351 "VideoSupport.c"
+#line 6357 "VideoSupport.c"
}
#line 662 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_ = self->priv->backing_row;
@@ -6363,7 +6369,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_g_free0 (_tmp16_->title);
#line 662 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_->title = _tmp18_;
-#line 6363 "VideoSupport.c"
+#line 6369 "VideoSupport.c"
}
__finally510:
{
@@ -6372,7 +6378,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_tmp19_ = self->priv->backing_row;
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6372 "VideoSupport.c"
+#line 6378 "VideoSupport.c"
}
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -6384,7 +6390,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
g_clear_error (&_inner_error_);
#line 650 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6384 "VideoSupport.c"
+#line 6390 "VideoSupport.c"
}
}
#line 665 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -6397,7 +6403,7 @@ static void video_real_set_title (MediaSource* base, const gchar* title) {
_alteration_unref0 (_tmp21_);
#line 647 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_title);
-#line 6397 "VideoSupport.c"
+#line 6403 "VideoSupport.c"
}
@@ -6407,14 +6413,14 @@ static gchar* video_real_get_comment (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 668 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6407 "VideoSupport.c"
+#line 6413 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6414 "VideoSupport.c"
+#line 6420 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
@@ -6427,18 +6433,18 @@ static gchar* video_real_get_comment (MediaSource* base) {
_tmp3_ = g_strdup (_tmp2_);
#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp3_;
-#line 6427 "VideoSupport.c"
+#line 6433 "VideoSupport.c"
{
VideoRow* _tmp4_ = NULL;
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->backing_row;
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6434 "VideoSupport.c"
+#line 6440 "VideoSupport.c"
}
#line 670 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6438 "VideoSupport.c"
+#line 6444 "VideoSupport.c"
}
__finally512:
{
@@ -6447,7 +6453,7 @@ static gchar* video_real_get_comment (MediaSource* base) {
_tmp5_ = self->priv->backing_row;
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6447 "VideoSupport.c"
+#line 6453 "VideoSupport.c"
}
#line 669 "/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);
@@ -6455,7 +6461,7 @@ static gchar* video_real_get_comment (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 669 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 6455 "VideoSupport.c"
+#line 6461 "VideoSupport.c"
}
}
@@ -6466,8 +6472,8 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
gchar* new_comment = NULL;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
- Alteration* _tmp20_ = NULL;
- Alteration* _tmp21_ = NULL;
+ Alteration* _tmp23_ = NULL;
+ Alteration* _tmp24_ = NULL;
GError * _inner_error_ = NULL;
#line 674 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
@@ -6477,21 +6483,21 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
_tmp1_ = media_source_prep_title (_tmp0_);
#line 675 "/home/jens/Source/shotwell/src/VideoSupport.vala"
new_comment = _tmp1_;
-#line 6477 "VideoSupport.c"
+#line 6483 "VideoSupport.c"
{
VideoRow* _tmp2_ = NULL;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp2_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6484 "VideoSupport.c"
+#line 6490 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
- VideoRow* _tmp16_ = NULL;
- const gchar* _tmp17_ = NULL;
- gchar* _tmp18_ = NULL;
+ VideoRow* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ gchar* _tmp20_ = NULL;
#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 678 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -6502,20 +6508,20 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = TRUE;
-#line 6502 "VideoSupport.c"
+#line 6508 "VideoSupport.c"
{
VideoRow* _tmp6_ = NULL;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6509 "VideoSupport.c"
+#line 6515 "VideoSupport.c"
}
#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
#line 679 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6515 "VideoSupport.c"
+#line 6521 "VideoSupport.c"
}
{
VideoTable* _tmp7_ = NULL;
@@ -6539,9 +6545,11 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
_database_table_unref0 (_tmp8_);
#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 6545 "VideoSupport.c"
+ gboolean _tmp13_ = FALSE;
#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6541 "VideoSupport.c"
+#line 6549 "VideoSupport.c"
goto __catch514_database_error;
}
{
@@ -6550,7 +6558,7 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
_tmp12_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6550 "VideoSupport.c"
+#line 6558 "VideoSupport.c"
}
#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
@@ -6559,53 +6567,54 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 682 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 6560 "VideoSupport.c"
+ return _tmp13_;
+#line 6568 "VideoSupport.c"
}
}
goto __finally514;
__catch514_database_error:
{
GError* e = NULL;
- GError* _tmp13_ = NULL;
+ GError* _tmp14_ = NULL;
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
e = _inner_error_;
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_inner_error_ = NULL;
#line 684 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp13_ = e;
+ _tmp14_ = e;
#line 684 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp13_);
+ app_window_database_error (_tmp14_);
#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = FALSE;
#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 6580 "VideoSupport.c"
+#line 6588 "VideoSupport.c"
{
- VideoRow* _tmp14_ = NULL;
+ VideoRow* _tmp15_ = NULL;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp14_ = self->priv->backing_row;
+ _tmp15_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6587 "VideoSupport.c"
+#line 6595 "VideoSupport.c"
}
#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
#line 685 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6593 "VideoSupport.c"
+#line 6601 "VideoSupport.c"
}
__finally514:
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6598 "VideoSupport.c"
+#line 6606 "VideoSupport.c"
+ gboolean _tmp17_ = FALSE;
{
- VideoRow* _tmp15_ = NULL;
+ VideoRow* _tmp16_ = NULL;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp15_ = self->priv->backing_row;
+ _tmp16_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6605 "VideoSupport.c"
+#line 6614 "VideoSupport.c"
}
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
@@ -6614,32 +6623,34 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 681 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 6615 "VideoSupport.c"
+ return _tmp17_;
+#line 6624 "VideoSupport.c"
}
#line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = self->priv->backing_row;
+ _tmp18_ = self->priv->backing_row;
#line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = new_comment;
+ _tmp19_ = new_comment;
#line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = g_strdup (_tmp17_);
+ _tmp20_ = g_strdup (_tmp19_);
#line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _g_free0 (_tmp16_->comment);
+ _g_free0 (_tmp18_->comment);
#line 689 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_->comment = _tmp18_;
-#line 6627 "VideoSupport.c"
+ _tmp18_->comment = _tmp20_;
+#line 6636 "VideoSupport.c"
}
__finally513:
{
- VideoRow* _tmp19_ = NULL;
+ VideoRow* _tmp21_ = NULL;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = self->priv->backing_row;
+ _tmp21_ = self->priv->backing_row;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6636 "VideoSupport.c"
+#line 6645 "VideoSupport.c"
}
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 6649 "VideoSupport.c"
+ gboolean _tmp22_ = FALSE;
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -6647,25 +6658,25 @@ static gboolean video_real_set_comment (MediaSource* base, const gchar* comment)
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 677 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 6648 "VideoSupport.c"
+ return _tmp22_;
+#line 6659 "VideoSupport.c"
}
}
#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = alteration_new ("metadata", "comment");
+ _tmp23_ = alteration_new ("metadata", "comment");
#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = _tmp20_;
+ _tmp24_ = _tmp23_;
#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp21_);
+ data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp24_);
#line 692 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _alteration_unref0 (_tmp21_);
+ _alteration_unref0 (_tmp24_);
#line 694 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = TRUE;
#line 694 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_comment);
#line 694 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6665 "VideoSupport.c"
+#line 6676 "VideoSupport.c"
}
@@ -6675,14 +6686,14 @@ static Rating video_real_get_rating (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 698 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6675 "VideoSupport.c"
+#line 6686 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6682 "VideoSupport.c"
+#line 6693 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
@@ -6692,18 +6703,18 @@ static Rating video_real_get_rating (MediaSource* base) {
_tmp2_ = _tmp1_->rating;
#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp2_;
-#line 6692 "VideoSupport.c"
+#line 6703 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6699 "VideoSupport.c"
+#line 6710 "VideoSupport.c"
}
#line 700 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 6703 "VideoSupport.c"
+#line 6714 "VideoSupport.c"
}
__finally515:
{
@@ -6712,7 +6723,7 @@ static Rating video_real_get_rating (MediaSource* base) {
_tmp4_ = self->priv->backing_row;
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6712 "VideoSupport.c"
+#line 6723 "VideoSupport.c"
}
#line 699 "/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);
@@ -6720,7 +6731,7 @@ static Rating video_real_get_rating (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 699 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return 0;
-#line 6720 "VideoSupport.c"
+#line 6731 "VideoSupport.c"
}
}
@@ -6732,14 +6743,14 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
GError * _inner_error_ = NULL;
#line 704 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6732 "VideoSupport.c"
+#line 6743 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6739 "VideoSupport.c"
+#line 6750 "VideoSupport.c"
{
gboolean _tmp1_ = FALSE;
Rating _tmp2_ = 0;
@@ -6754,7 +6765,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
if (!_tmp3_) {
#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = TRUE;
-#line 6754 "VideoSupport.c"
+#line 6765 "VideoSupport.c"
} else {
Rating _tmp4_ = 0;
VideoRow* _tmp5_ = NULL;
@@ -6767,22 +6778,22 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
_tmp6_ = _tmp5_->rating;
#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = _tmp4_ == _tmp6_;
-#line 6767 "VideoSupport.c"
+#line 6778 "VideoSupport.c"
}
#line 706 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp1_) {
-#line 6771 "VideoSupport.c"
+#line 6782 "VideoSupport.c"
{
VideoRow* _tmp7_ = NULL;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6778 "VideoSupport.c"
+#line 6789 "VideoSupport.c"
}
#line 707 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6782 "VideoSupport.c"
+#line 6793 "VideoSupport.c"
}
{
VideoTable* _tmp8_ = NULL;
@@ -6805,7 +6816,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6805 "VideoSupport.c"
+#line 6816 "VideoSupport.c"
goto __catch517_database_error;
}
{
@@ -6814,7 +6825,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
_tmp12_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6814 "VideoSupport.c"
+#line 6825 "VideoSupport.c"
}
#line 710 "/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);
@@ -6822,7 +6833,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
g_clear_error (&_inner_error_);
#line 710 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6822 "VideoSupport.c"
+#line 6833 "VideoSupport.c"
}
}
goto __finally517;
@@ -6840,30 +6851,30 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
app_window_database_error (_tmp13_);
#line 713 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 6840 "VideoSupport.c"
+#line 6851 "VideoSupport.c"
{
VideoRow* _tmp14_ = NULL;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp14_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6847 "VideoSupport.c"
+#line 6858 "VideoSupport.c"
}
#line 713 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6851 "VideoSupport.c"
+#line 6862 "VideoSupport.c"
}
__finally517:
#line 709 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 6856 "VideoSupport.c"
+#line 6867 "VideoSupport.c"
{
VideoRow* _tmp15_ = NULL;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp15_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6863 "VideoSupport.c"
+#line 6874 "VideoSupport.c"
}
#line 709 "/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);
@@ -6871,7 +6882,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
g_clear_error (&_inner_error_);
#line 709 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6871 "VideoSupport.c"
+#line 6882 "VideoSupport.c"
}
#line 717 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_ = self->priv->backing_row;
@@ -6879,7 +6890,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
_tmp17_ = rating;
#line 717 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_->rating = _tmp17_;
-#line 6879 "VideoSupport.c"
+#line 6890 "VideoSupport.c"
}
__finally516:
{
@@ -6888,7 +6899,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
_tmp18_ = self->priv->backing_row;
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6888 "VideoSupport.c"
+#line 6899 "VideoSupport.c"
}
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -6898,7 +6909,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
g_clear_error (&_inner_error_);
#line 705 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6898 "VideoSupport.c"
+#line 6909 "VideoSupport.c"
}
}
#line 720 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -6909,7 +6920,7 @@ static void video_real_set_rating (MediaSource* base, Rating rating) {
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
#line 720 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (_tmp20_);
-#line 6909 "VideoSupport.c"
+#line 6920 "VideoSupport.c"
}
@@ -6918,14 +6929,14 @@ static void video_real_increase_rating (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 723 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6918 "VideoSupport.c"
+#line 6929 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6925 "VideoSupport.c"
+#line 6936 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
@@ -6938,7 +6949,7 @@ static void video_real_increase_rating (MediaSource* base) {
_tmp3_ = rating_increase (_tmp2_);
#line 725 "/home/jens/Source/shotwell/src/VideoSupport.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_);
-#line 6938 "VideoSupport.c"
+#line 6949 "VideoSupport.c"
}
__finally518:
{
@@ -6947,7 +6958,7 @@ static void video_real_increase_rating (MediaSource* base) {
_tmp4_ = self->priv->backing_row;
#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6947 "VideoSupport.c"
+#line 6958 "VideoSupport.c"
}
#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -6957,7 +6968,7 @@ static void video_real_increase_rating (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 724 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 6957 "VideoSupport.c"
+#line 6968 "VideoSupport.c"
}
}
}
@@ -6968,14 +6979,14 @@ static void video_real_decrease_rating (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 729 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 6968 "VideoSupport.c"
+#line 6979 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 6975 "VideoSupport.c"
+#line 6986 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
Rating _tmp2_ = 0;
@@ -6988,7 +6999,7 @@ static void video_real_decrease_rating (MediaSource* base) {
_tmp3_ = rating_decrease (_tmp2_);
#line 731 "/home/jens/Source/shotwell/src/VideoSupport.vala"
media_source_set_rating (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource), _tmp3_);
-#line 6988 "VideoSupport.c"
+#line 6999 "VideoSupport.c"
}
__finally519:
{
@@ -6997,7 +7008,7 @@ static void video_real_decrease_rating (MediaSource* base) {
_tmp4_ = self->priv->backing_row;
#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 6997 "VideoSupport.c"
+#line 7008 "VideoSupport.c"
}
#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -7007,7 +7018,7 @@ static void video_real_decrease_rating (MediaSource* base) {
g_clear_error (&_inner_error_);
#line 730 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7007 "VideoSupport.c"
+#line 7018 "VideoSupport.c"
}
}
}
@@ -7025,7 +7036,7 @@ static gboolean video_real_is_trashed (MediaSource* base) {
result = _tmp0_;
#line 736 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7025 "VideoSupport.c"
+#line 7036 "VideoSupport.c"
}
@@ -7041,7 +7052,7 @@ static gboolean video_real_is_offline (Monitorable* base) {
result = _tmp0_;
#line 740 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7041 "VideoSupport.c"
+#line 7052 "VideoSupport.c"
}
@@ -7051,7 +7062,7 @@ static void video_real_mark_offline (Monitorable* base) {
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
#line 744 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_add_flags (self, VIDEO_FLAG_OFFLINE, NULL);
-#line 7051 "VideoSupport.c"
+#line 7062 "VideoSupport.c"
}
@@ -7067,21 +7078,21 @@ static void video_real_mark_online (Monitorable* base) {
_tmp1_ = video_get_is_interpretable (self);
#line 750 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (!_tmp1_) {
-#line 7067 "VideoSupport.c"
+#line 7078 "VideoSupport.c"
gboolean _tmp2_ = FALSE;
#line 750 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp2_ = video_has_interpreter_state_changed ();
#line 750 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = _tmp2_;
-#line 7073 "VideoSupport.c"
+#line 7084 "VideoSupport.c"
} else {
#line 750 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = FALSE;
-#line 7077 "VideoSupport.c"
+#line 7088 "VideoSupport.c"
}
#line 750 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_) {
-#line 7081 "VideoSupport.c"
+#line 7092 "VideoSupport.c"
VideoInterpretableResults* _tmp3_ = NULL;
VideoInterpretableResults* _tmp4_ = NULL;
#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -7092,7 +7103,7 @@ static void video_real_mark_online (Monitorable* base) {
video_interpretable_results_foreground_finish (_tmp4_);
#line 751 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_video_interpretable_results_unref0 (_tmp4_);
-#line 7092 "VideoSupport.c"
+#line 7103 "VideoSupport.c"
}
}
@@ -7103,7 +7114,7 @@ static void video_real_trash (MediaSource* base) {
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
#line 755 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_add_flags (self, VIDEO_FLAG_TRASH, NULL);
-#line 7103 "VideoSupport.c"
+#line 7114 "VideoSupport.c"
}
@@ -7113,7 +7124,7 @@ static void video_real_untrash (MediaSource* base) {
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
#line 759 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_remove_flags (self, VIDEO_FLAG_TRASH, NULL);
-#line 7113 "VideoSupport.c"
+#line 7124 "VideoSupport.c"
}
@@ -7129,7 +7140,7 @@ static gboolean video_real_is_flagged (Flaggable* base) {
result = _tmp0_;
#line 763 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7129 "VideoSupport.c"
+#line 7140 "VideoSupport.c"
}
@@ -7147,7 +7158,7 @@ static void video_real_mark_flagged (Flaggable* base) {
video_add_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_);
#line 767 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (_tmp1_);
-#line 7147 "VideoSupport.c"
+#line 7158 "VideoSupport.c"
}
@@ -7165,7 +7176,7 @@ static void video_real_mark_unflagged (Flaggable* base) {
video_remove_flags (self, VIDEO_FLAG_FLAGGED, _tmp1_);
#line 771 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (_tmp1_);
-#line 7165 "VideoSupport.c"
+#line 7176 "VideoSupport.c"
}
@@ -7174,14 +7185,14 @@ static void video_real_get_event_id (MediaSource* base, EventID* result) {
GError * _inner_error_ = NULL;
#line 774 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7174 "VideoSupport.c"
+#line 7185 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7181 "VideoSupport.c"
+#line 7192 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
EventID _tmp2_ = {0};
@@ -7191,18 +7202,18 @@ static void video_real_get_event_id (MediaSource* base, EventID* result) {
_tmp2_ = _tmp1_->event_id;
#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*result = _tmp2_;
-#line 7191 "VideoSupport.c"
+#line 7202 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7198 "VideoSupport.c"
+#line 7209 "VideoSupport.c"
}
#line 776 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7202 "VideoSupport.c"
+#line 7213 "VideoSupport.c"
}
__finally520:
{
@@ -7211,7 +7222,7 @@ static void video_real_get_event_id (MediaSource* base, EventID* result) {
_tmp4_ = self->priv->backing_row;
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7211 "VideoSupport.c"
+#line 7222 "VideoSupport.c"
}
#line 775 "/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);
@@ -7219,7 +7230,7 @@ static void video_real_get_event_id (MediaSource* base, EventID* result) {
g_clear_error (&_inner_error_);
#line 775 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7219 "VideoSupport.c"
+#line 7230 "VideoSupport.c"
}
}
@@ -7230,14 +7241,14 @@ static gchar* video_real_to_string (DataObject* base) {
GError * _inner_error_ = NULL;
#line 780 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7230 "VideoSupport.c"
+#line 7241 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7237 "VideoSupport.c"
+#line 7248 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
VideoID _tmp2_ = {0};
@@ -7270,18 +7281,18 @@ static gchar* video_real_to_string (DataObject* base) {
_g_free0 (_tmp5_);
#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp9_;
-#line 7270 "VideoSupport.c"
+#line 7281 "VideoSupport.c"
{
VideoRow* _tmp10_ = NULL;
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp10_ = self->priv->backing_row;
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7277 "VideoSupport.c"
+#line 7288 "VideoSupport.c"
}
#line 782 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7281 "VideoSupport.c"
+#line 7292 "VideoSupport.c"
}
__finally521:
{
@@ -7290,7 +7301,7 @@ static gchar* video_real_to_string (DataObject* base) {
_tmp11_ = self->priv->backing_row;
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7290 "VideoSupport.c"
+#line 7301 "VideoSupport.c"
}
#line 781 "/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);
@@ -7298,7 +7309,7 @@ static gchar* video_real_to_string (DataObject* base) {
g_clear_error (&_inner_error_);
#line 781 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 7298 "VideoSupport.c"
+#line 7309 "VideoSupport.c"
}
}
@@ -7307,14 +7318,14 @@ void video_get_video_id (Video* self, VideoID* result) {
GError * _inner_error_ = NULL;
#line 786 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (IS_VIDEO (self));
-#line 7307 "VideoSupport.c"
+#line 7318 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7314 "VideoSupport.c"
+#line 7325 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
VideoID _tmp2_ = {0};
@@ -7324,18 +7335,18 @@ void video_get_video_id (Video* self, VideoID* result) {
_tmp2_ = _tmp1_->video_id;
#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*result = _tmp2_;
-#line 7324 "VideoSupport.c"
+#line 7335 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7331 "VideoSupport.c"
+#line 7342 "VideoSupport.c"
}
#line 788 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7335 "VideoSupport.c"
+#line 7346 "VideoSupport.c"
}
__finally522:
{
@@ -7344,7 +7355,7 @@ void video_get_video_id (Video* self, VideoID* result) {
_tmp4_ = self->priv->backing_row;
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7344 "VideoSupport.c"
+#line 7355 "VideoSupport.c"
}
#line 787 "/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);
@@ -7352,7 +7363,7 @@ void video_get_video_id (Video* self, VideoID* result) {
g_clear_error (&_inner_error_);
#line 787 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7352 "VideoSupport.c"
+#line 7363 "VideoSupport.c"
}
}
@@ -7363,14 +7374,15 @@ static time_t video_real_get_exposure_time (Dateable* base) {
GError * _inner_error_ = NULL;
#line 792 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7363 "VideoSupport.c"
+#line 7374 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ time_t _tmp5_ = 0;
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7370 "VideoSupport.c"
+#line 7382 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
time_t _tmp2_ = 0;
@@ -7380,18 +7392,18 @@ static time_t video_real_get_exposure_time (Dateable* base) {
_tmp2_ = _tmp1_->exposure_time;
#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp2_;
-#line 7380 "VideoSupport.c"
+#line 7392 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7387 "VideoSupport.c"
+#line 7399 "VideoSupport.c"
}
#line 794 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7391 "VideoSupport.c"
+#line 7403 "VideoSupport.c"
}
__finally523:
{
@@ -7400,15 +7412,15 @@ static time_t video_real_get_exposure_time (Dateable* base) {
_tmp4_ = self->priv->backing_row;
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7400 "VideoSupport.c"
+#line 7412 "VideoSupport.c"
}
#line 793 "/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 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 793 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 7408 "VideoSupport.c"
+ return _tmp5_;
+#line 7420 "VideoSupport.c"
}
}
@@ -7420,14 +7432,14 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
GError * _inner_error_ = NULL;
#line 798 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7420 "VideoSupport.c"
+#line 7432 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7427 "VideoSupport.c"
+#line 7439 "VideoSupport.c"
{
VideoRow* _tmp9_ = NULL;
time_t _tmp10_ = 0;
@@ -7453,7 +7465,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
_database_table_unref0 (_tmp2_);
#line 801 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7453 "VideoSupport.c"
+#line 7465 "VideoSupport.c"
goto __catch525_g_error;
}
}
@@ -7475,19 +7487,19 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
g_debug ("VideoSupport.vala:803: Warning - %s", _tmp7_);
#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 7475 "VideoSupport.c"
+#line 7487 "VideoSupport.c"
}
__finally525:
#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7480 "VideoSupport.c"
+#line 7492 "VideoSupport.c"
{
VideoRow* _tmp8_ = NULL;
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp8_ = self->priv->backing_row;
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7487 "VideoSupport.c"
+#line 7499 "VideoSupport.c"
}
#line 800 "/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);
@@ -7495,7 +7507,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
g_clear_error (&_inner_error_);
#line 800 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7495 "VideoSupport.c"
+#line 7507 "VideoSupport.c"
}
#line 805 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp9_ = self->priv->backing_row;
@@ -7503,7 +7515,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
_tmp10_ = time;
#line 805 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp9_->exposure_time = _tmp10_;
-#line 7503 "VideoSupport.c"
+#line 7515 "VideoSupport.c"
}
__finally524:
{
@@ -7512,7 +7524,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
_tmp11_ = self->priv->backing_row;
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7512 "VideoSupport.c"
+#line 7524 "VideoSupport.c"
}
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -7522,7 +7534,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
g_clear_error (&_inner_error_);
#line 799 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7522 "VideoSupport.c"
+#line 7534 "VideoSupport.c"
}
}
#line 808 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -7533,7 +7545,7 @@ static void video_real_set_exposure_time (Dateable* base, time_t time) {
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp13_);
#line 808 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (_tmp13_);
-#line 7533 "VideoSupport.c"
+#line 7545 "VideoSupport.c"
}
@@ -7541,14 +7553,14 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) {
GError * _inner_error_ = NULL;
#line 811 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (IS_VIDEO (self));
-#line 7541 "VideoSupport.c"
+#line 7553 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7548 "VideoSupport.c"
+#line 7560 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
gint _tmp2_ = 0;
@@ -7567,18 +7579,18 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) {
dimensions_init (&_tmp5_, _tmp2_, _tmp4_);
#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*result = _tmp5_;
-#line 7567 "VideoSupport.c"
+#line 7579 "VideoSupport.c"
{
VideoRow* _tmp6_ = NULL;
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = self->priv->backing_row;
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7574 "VideoSupport.c"
+#line 7586 "VideoSupport.c"
}
#line 813 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7578 "VideoSupport.c"
+#line 7590 "VideoSupport.c"
}
__finally526:
{
@@ -7587,7 +7599,7 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) {
_tmp7_ = self->priv->backing_row;
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7587 "VideoSupport.c"
+#line 7599 "VideoSupport.c"
}
#line 812 "/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);
@@ -7595,7 +7607,7 @@ void video_get_frame_dimensions (Video* self, Dimensions* result) {
g_clear_error (&_inner_error_);
#line 812 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7595 "VideoSupport.c"
+#line 7607 "VideoSupport.c"
}
}
@@ -7611,7 +7623,7 @@ static void video_real_get_dimensions (MediaSource* base, PhotoException disallo
*result = _tmp0_;
#line 818 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7611 "VideoSupport.c"
+#line 7623 "VideoSupport.c"
}
@@ -7627,7 +7639,7 @@ static guint64 video_real_get_filesize (MediaSource* base) {
result = _tmp0_;
#line 822 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7627 "VideoSupport.c"
+#line 7639 "VideoSupport.c"
}
@@ -7637,14 +7649,15 @@ static guint64 video_real_get_master_filesize (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 825 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7637 "VideoSupport.c"
+#line 7649 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ guint64 _tmp5_ = 0ULL;
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7644 "VideoSupport.c"
+#line 7657 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
gint64 _tmp2_ = 0LL;
@@ -7654,18 +7667,18 @@ static guint64 video_real_get_master_filesize (MediaSource* base) {
_tmp2_ = _tmp1_->filesize;
#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = (guint64) _tmp2_;
-#line 7654 "VideoSupport.c"
+#line 7667 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7661 "VideoSupport.c"
+#line 7674 "VideoSupport.c"
}
#line 827 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7665 "VideoSupport.c"
+#line 7678 "VideoSupport.c"
}
__finally527:
{
@@ -7674,15 +7687,15 @@ static guint64 video_real_get_master_filesize (MediaSource* base) {
_tmp4_ = self->priv->backing_row;
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7674 "VideoSupport.c"
+#line 7687 "VideoSupport.c"
}
#line 826 "/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 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 826 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 7682 "VideoSupport.c"
+ return _tmp5_;
+#line 7695 "VideoSupport.c"
}
}
@@ -7693,14 +7706,15 @@ static time_t video_real_get_timestamp (MediaSource* base) {
GError * _inner_error_ = NULL;
#line 831 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO, Video);
-#line 7693 "VideoSupport.c"
+#line 7706 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ time_t _tmp5_ = 0;
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7700 "VideoSupport.c"
+#line 7714 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
time_t _tmp2_ = 0;
@@ -7710,18 +7724,18 @@ static time_t video_real_get_timestamp (MediaSource* base) {
_tmp2_ = _tmp1_->timestamp;
#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp2_;
-#line 7710 "VideoSupport.c"
+#line 7724 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7717 "VideoSupport.c"
+#line 7731 "VideoSupport.c"
}
#line 833 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7721 "VideoSupport.c"
+#line 7735 "VideoSupport.c"
}
__finally528:
{
@@ -7730,15 +7744,15 @@ static time_t video_real_get_timestamp (MediaSource* base) {
_tmp4_ = self->priv->backing_row;
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7730 "VideoSupport.c"
+#line 7744 "VideoSupport.c"
}
#line 832 "/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 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 832 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0;
-#line 7738 "VideoSupport.c"
+ return _tmp5_;
+#line 7752 "VideoSupport.c"
}
}
@@ -7761,7 +7775,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
g_file_info_get_modification_time (_tmp0_, &_tmp1_);
#line 838 "/home/jens/Source/shotwell/src/VideoSupport.vala"
time_val = _tmp1_;
-#line 7761 "VideoSupport.c"
+#line 7775 "VideoSupport.c"
{
{
VideoRow* _tmp2_ = NULL;
@@ -7769,7 +7783,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_tmp2_ = self->priv->backing_row;
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7769 "VideoSupport.c"
+#line 7783 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
time_t _tmp4_ = 0;
@@ -7794,18 +7808,18 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_tmp6_ = _tmp5_.tv_sec;
#line 842 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp4_ == ((time_t) _tmp6_)) {
-#line 7794 "VideoSupport.c"
+#line 7808 "VideoSupport.c"
{
VideoRow* _tmp7_ = NULL;
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = self->priv->backing_row;
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7801 "VideoSupport.c"
+#line 7815 "VideoSupport.c"
}
#line 843 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7805 "VideoSupport.c"
+#line 7819 "VideoSupport.c"
}
#line 845 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp8_ = video_table_get_instance ();
@@ -7825,7 +7839,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_database_table_unref0 (_tmp9_);
#line 845 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 7825 "VideoSupport.c"
+#line 7839 "VideoSupport.c"
goto __finally530;
}
#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -7836,7 +7850,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_tmp16_ = _tmp15_.tv_sec;
#line 846 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp14_->timestamp = (time_t) _tmp16_;
-#line 7836 "VideoSupport.c"
+#line 7850 "VideoSupport.c"
}
__finally530:
{
@@ -7845,13 +7859,13 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_tmp17_ = self->priv->backing_row;
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7845 "VideoSupport.c"
+#line 7859 "VideoSupport.c"
}
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 7851 "VideoSupport.c"
+#line 7865 "VideoSupport.c"
goto __catch529_database_error;
}
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -7860,7 +7874,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
g_clear_error (&_inner_error_);
#line 841 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7860 "VideoSupport.c"
+#line 7874 "VideoSupport.c"
}
}
}
@@ -7881,7 +7895,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
_g_error_free0 (err);
#line 851 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7881 "VideoSupport.c"
+#line 7895 "VideoSupport.c"
}
__finally529:
#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -7892,7 +7906,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
g_clear_error (&_inner_error_);
#line 840 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 7892 "VideoSupport.c"
+#line 7906 "VideoSupport.c"
}
#line 854 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp19_ = alteration_new ("metadata", "master-timestamp");
@@ -7902,7 +7916,7 @@ static void video_real_set_master_timestamp (Monitorable* base, GFileInfo* info)
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp20_);
#line 854 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (_tmp20_);
-#line 7902 "VideoSupport.c"
+#line 7916 "VideoSupport.c"
}
@@ -7911,14 +7925,14 @@ gchar* video_get_filename (Video* self) {
GError * _inner_error_ = NULL;
#line 857 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), NULL);
-#line 7911 "VideoSupport.c"
+#line 7925 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 7918 "VideoSupport.c"
+#line 7932 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
const gchar* _tmp2_ = NULL;
@@ -7931,18 +7945,18 @@ gchar* video_get_filename (Video* self) {
_tmp3_ = g_strdup (_tmp2_);
#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp3_;
-#line 7931 "VideoSupport.c"
+#line 7945 "VideoSupport.c"
{
VideoRow* _tmp4_ = NULL;
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->backing_row;
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7938 "VideoSupport.c"
+#line 7952 "VideoSupport.c"
}
#line 859 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7942 "VideoSupport.c"
+#line 7956 "VideoSupport.c"
}
__finally531:
{
@@ -7951,7 +7965,7 @@ gchar* video_get_filename (Video* self) {
_tmp5_ = self->priv->backing_row;
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 7951 "VideoSupport.c"
+#line 7965 "VideoSupport.c"
}
#line 858 "/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);
@@ -7959,7 +7973,7 @@ gchar* video_get_filename (Video* self) {
g_clear_error (&_inner_error_);
#line 858 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 7959 "VideoSupport.c"
+#line 7973 "VideoSupport.c"
}
}
@@ -7987,7 +8001,7 @@ static GFile* video_real_get_file (MediaSource* base) {
result = _tmp3_;
#line 864 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 7987 "VideoSupport.c"
+#line 8001 "VideoSupport.c"
}
@@ -8003,7 +8017,7 @@ static GFile* video_real_get_master_file (MediaSource* base) {
result = _tmp0_;
#line 868 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8003 "VideoSupport.c"
+#line 8017 "VideoSupport.c"
}
@@ -8043,11 +8057,11 @@ void video_export (Video* self, GFile* dest_file, GError** error) {
_g_object_unref0 (source_file);
#line 873 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8043 "VideoSupport.c"
+#line 8057 "VideoSupport.c"
}
#line 871 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (source_file);
-#line 8047 "VideoSupport.c"
+#line 8061 "VideoSupport.c"
}
@@ -8056,14 +8070,15 @@ gdouble video_get_clip_duration (Video* self) {
GError * _inner_error_ = NULL;
#line 877 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), 0.0);
-#line 8056 "VideoSupport.c"
+#line 8070 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ gdouble _tmp5_ = 0.0;
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8063 "VideoSupport.c"
+#line 8078 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
gdouble _tmp2_ = 0.0;
@@ -8073,18 +8088,18 @@ gdouble video_get_clip_duration (Video* self) {
_tmp2_ = _tmp1_->clip_duration;
#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp2_;
-#line 8073 "VideoSupport.c"
+#line 8088 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8080 "VideoSupport.c"
+#line 8095 "VideoSupport.c"
}
#line 879 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8084 "VideoSupport.c"
+#line 8099 "VideoSupport.c"
}
__finally532:
{
@@ -8093,15 +8108,15 @@ gdouble video_get_clip_duration (Video* self) {
_tmp4_ = self->priv->backing_row;
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8093 "VideoSupport.c"
+#line 8108 "VideoSupport.c"
}
#line 878 "/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 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 878 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0.0;
-#line 8101 "VideoSupport.c"
+ return _tmp5_;
+#line 8116 "VideoSupport.c"
}
}
@@ -8111,14 +8126,15 @@ gboolean video_get_is_interpretable (Video* self) {
GError * _inner_error_ = NULL;
#line 883 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), FALSE);
-#line 8111 "VideoSupport.c"
+#line 8126 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ gboolean _tmp5_ = FALSE;
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8118 "VideoSupport.c"
+#line 8134 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
@@ -8128,18 +8144,18 @@ gboolean video_get_is_interpretable (Video* self) {
_tmp2_ = _tmp1_->is_interpretable;
#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp2_;
-#line 8128 "VideoSupport.c"
+#line 8144 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->priv->backing_row;
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8135 "VideoSupport.c"
+#line 8151 "VideoSupport.c"
}
#line 885 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8139 "VideoSupport.c"
+#line 8155 "VideoSupport.c"
}
__finally533:
{
@@ -8148,15 +8164,15 @@ gboolean video_get_is_interpretable (Video* self) {
_tmp4_ = self->priv->backing_row;
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8148 "VideoSupport.c"
+#line 8164 "VideoSupport.c"
}
#line 884 "/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 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 884 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 8156 "VideoSupport.c"
+ return _tmp5_;
+#line 8172 "VideoSupport.c"
}
}
@@ -8165,14 +8181,14 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
GError * _inner_error_ = NULL;
#line 889 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (IS_VIDEO (self));
-#line 8165 "VideoSupport.c"
+#line 8181 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8172 "VideoSupport.c"
+#line 8188 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
@@ -8187,18 +8203,18 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
_tmp3_ = is_interpretable;
#line 891 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp2_ == _tmp3_) {
-#line 8187 "VideoSupport.c"
+#line 8203 "VideoSupport.c"
{
VideoRow* _tmp4_ = NULL;
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = self->priv->backing_row;
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8194 "VideoSupport.c"
+#line 8210 "VideoSupport.c"
}
#line 892 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8198 "VideoSupport.c"
+#line 8214 "VideoSupport.c"
}
#line 894 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_ = self->priv->backing_row;
@@ -8206,7 +8222,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
_tmp6_ = is_interpretable;
#line 894 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_->is_interpretable = _tmp6_;
-#line 8206 "VideoSupport.c"
+#line 8222 "VideoSupport.c"
}
__finally534:
{
@@ -8215,7 +8231,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
_tmp7_ = self->priv->backing_row;
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8215 "VideoSupport.c"
+#line 8231 "VideoSupport.c"
}
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -8225,7 +8241,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
g_clear_error (&_inner_error_);
#line 890 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8225 "VideoSupport.c"
+#line 8241 "VideoSupport.c"
}
}
{
@@ -8249,7 +8265,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8249 "VideoSupport.c"
+#line 8265 "VideoSupport.c"
goto __catch535_database_error;
}
#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8258,7 +8274,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
g_clear_error (&_inner_error_);
#line 898 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8258 "VideoSupport.c"
+#line 8274 "VideoSupport.c"
}
}
goto __finally535;
@@ -8276,7 +8292,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
app_window_database_error (_tmp12_);
#line 897 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 8276 "VideoSupport.c"
+#line 8292 "VideoSupport.c"
}
__finally535:
#line 897 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8287,7 +8303,7 @@ static void video_set_is_interpretable (Video* self, gboolean is_interpretable)
g_clear_error (&_inner_error_);
#line 897 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8287 "VideoSupport.c"
+#line 8303 "VideoSupport.c"
}
}
@@ -8336,7 +8352,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_object_unref0 (_tmp2_);
#line 913 "/home/jens/Source/shotwell/src/VideoSupport.vala"
backing_file_reader = _tmp4_;
-#line 8336 "VideoSupport.c"
+#line 8352 "VideoSupport.c"
{
gdouble _tmp5_ = 0.0;
VideoReader* _tmp6_ = NULL;
@@ -8353,7 +8369,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == VIDEO_ERROR) {
-#line 8353 "VideoSupport.c"
+#line 8369 "VideoSupport.c"
goto __catch536_video_error;
}
#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8368,7 +8384,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
g_clear_error (&_inner_error_);
#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 8368 "VideoSupport.c"
+#line 8384 "VideoSupport.c"
}
#line 915 "/home/jens/Source/shotwell/src/VideoSupport.vala"
clip_duration = _tmp5_;
@@ -8380,7 +8396,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_object_unref0 (preview_frame);
#line 916 "/home/jens/Source/shotwell/src/VideoSupport.vala"
preview_frame = _tmp9_;
-#line 8380 "VideoSupport.c"
+#line 8396 "VideoSupport.c"
}
goto __finally536;
__catch536_video_error:
@@ -8413,7 +8429,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_object_unref0 (preview_frame);
#line 923 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8413 "VideoSupport.c"
+#line 8429 "VideoSupport.c"
}
__finally536:
#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8430,13 +8446,13 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
g_clear_error (&_inner_error_);
#line 914 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 8430 "VideoSupport.c"
+#line 8446 "VideoSupport.c"
}
#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp13_ = video_get_is_interpretable (self);
#line 927 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp13_) {
-#line 8436 "VideoSupport.c"
+#line 8452 "VideoSupport.c"
VideoInterpretableResults* _tmp14_ = NULL;
VideoInterpretableResults* _tmp15_ = NULL;
#line 928 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8455,7 +8471,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_object_unref0 (preview_frame);
#line 931 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8455 "VideoSupport.c"
+#line 8471 "VideoSupport.c"
}
#line 934 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp16_ = media_source_get_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE, MediaSource));
@@ -8471,14 +8487,14 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_free0 (_tmp19_);
#line 934 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_tmp17_);
-#line 8471 "VideoSupport.c"
+#line 8487 "VideoSupport.c"
{
VideoRow* _tmp20_ = NULL;
#line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp20_ = self->priv->backing_row;
#line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8478 "VideoSupport.c"
+#line 8494 "VideoSupport.c"
{
VideoRow* _tmp21_ = NULL;
gdouble _tmp22_ = 0.0;
@@ -8488,7 +8504,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_tmp22_ = clip_duration;
#line 938 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp21_->clip_duration = _tmp22_;
-#line 8488 "VideoSupport.c"
+#line 8504 "VideoSupport.c"
}
__finally537:
{
@@ -8497,7 +8513,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_tmp23_ = self->priv->backing_row;
#line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8497 "VideoSupport.c"
+#line 8513 "VideoSupport.c"
}
#line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
@@ -8513,7 +8529,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
g_clear_error (&_inner_error_);
#line 937 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 8513 "VideoSupport.c"
+#line 8529 "VideoSupport.c"
}
}
#line 941 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8542,7 +8558,7 @@ VideoInterpretableResults* video_check_is_interpretable (Video* self) {
_g_object_unref0 (preview_frame);
#line 945 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8542 "VideoSupport.c"
+#line 8558 "VideoSupport.c"
}
@@ -8559,7 +8575,7 @@ static void video_real_destroy (DataSource* base) {
video_id = _tmp0_;
#line 951 "/home/jens/Source/shotwell/src/VideoSupport.vala"
thumbnail_cache_remove (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 8559 "VideoSupport.c"
+#line 8575 "VideoSupport.c"
{
VideoTable* _tmp1_ = NULL;
VideoTable* _tmp2_ = NULL;
@@ -8578,7 +8594,7 @@ static void video_real_destroy (DataSource* base) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8578 "VideoSupport.c"
+#line 8594 "VideoSupport.c"
goto __catch538_database_error;
}
#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8587,7 +8603,7 @@ static void video_real_destroy (DataSource* base) {
g_clear_error (&_inner_error_);
#line 954 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8587 "VideoSupport.c"
+#line 8603 "VideoSupport.c"
}
}
goto __finally538;
@@ -8610,7 +8626,7 @@ static void video_real_destroy (DataSource* base) {
_g_free0 (_tmp5_);
#line 953 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 8610 "VideoSupport.c"
+#line 8626 "VideoSupport.c"
}
__finally538:
#line 953 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8621,11 +8637,11 @@ static void video_real_destroy (DataSource* base) {
g_clear_error (&_inner_error_);
#line 953 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 8621 "VideoSupport.c"
+#line 8637 "VideoSupport.c"
}
#line 959 "/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 8625 "VideoSupport.c"
+#line 8641 "VideoSupport.c"
}
@@ -8650,27 +8666,29 @@ static gboolean video_real_internal_delete_backing (DataSource* base, GError** e
_tmp2_ = _tmp3_;
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 8666 "VideoSupport.c"
+ gboolean _tmp4_ = FALSE;
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_propagate_error (error, _inner_error_);
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 8654 "VideoSupport.c"
+ return _tmp4_;
+#line 8672 "VideoSupport.c"
}
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp2_) {
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = ret;
-#line 8660 "VideoSupport.c"
+#line 8678 "VideoSupport.c"
} else {
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = FALSE;
-#line 8664 "VideoSupport.c"
+#line 8682 "VideoSupport.c"
}
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp1_;
#line 966 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8670 "VideoSupport.c"
+#line 8688 "VideoSupport.c"
}
@@ -8691,7 +8709,7 @@ static void video_notify_flags_altered (Video* self, Alteration* additional_alte
_tmp1_ = additional_alteration;
#line 971 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp1_ != NULL) {
-#line 8691 "VideoSupport.c"
+#line 8709 "VideoSupport.c"
Alteration* _tmp2_ = NULL;
Alteration* _tmp3_ = NULL;
Alteration* _tmp4_ = NULL;
@@ -8705,7 +8723,7 @@ static void video_notify_flags_altered (Video* self, Alteration* additional_alte
_alteration_unref0 (alteration);
#line 972 "/home/jens/Source/shotwell/src/VideoSupport.vala"
alteration = _tmp4_;
-#line 8705 "VideoSupport.c"
+#line 8723 "VideoSupport.c"
}
#line 974 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_ = alteration;
@@ -8713,27 +8731,27 @@ static void video_notify_flags_altered (Video* self, Alteration* additional_alte
data_object_notify_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATA_OBJECT, DataObject), _tmp5_);
#line 969 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_alteration_unref0 (alteration);
-#line 8713 "VideoSupport.c"
+#line 8731 "VideoSupport.c"
}
guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 new_flags = 0ULL;
- Alteration* _tmp24_ = NULL;
+ Alteration* _tmp27_ = NULL;
GError * _inner_error_ = NULL;
#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), 0ULL);
#line 977 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 8726 "VideoSupport.c"
+#line 8744 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8733 "VideoSupport.c"
+#line 8751 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
@@ -8742,8 +8760,8 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition
VideoRow* _tmp5_ = NULL;
guint64 _tmp6_ = 0ULL;
guint64 _tmp7_ = 0ULL;
- VideoRow* _tmp21_ = NULL;
- guint64 _tmp22_ = 0ULL;
+ VideoRow* _tmp23_ = NULL;
+ guint64 _tmp24_ = 0ULL;
#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = self->priv->backing_row;
#line 980 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8762,7 +8780,7 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition
_tmp7_ = new_flags;
#line 981 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp6_ == _tmp7_) {
-#line 8762 "VideoSupport.c"
+#line 8780 "VideoSupport.c"
VideoRow* _tmp8_ = NULL;
guint64 _tmp9_ = 0ULL;
#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8771,18 +8789,18 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition
_tmp9_ = _tmp8_->flags;
#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp9_;
-#line 8771 "VideoSupport.c"
+#line 8789 "VideoSupport.c"
{
VideoRow* _tmp10_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp10_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8778 "VideoSupport.c"
+#line 8796 "VideoSupport.c"
}
#line 982 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8782 "VideoSupport.c"
+#line 8800 "VideoSupport.c"
}
{
VideoTable* _tmp11_ = NULL;
@@ -8803,9 +8821,11 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition
_database_table_unref0 (_tmp12_);
#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 8821 "VideoSupport.c"
+ guint64 _tmp16_ = 0ULL;
#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 8805 "VideoSupport.c"
+#line 8825 "VideoSupport.c"
goto __catch540_database_error;
}
{
@@ -8814,130 +8834,133 @@ guint64 video_add_flags (Video* self, guint64 flags_to_add, Alteration* addition
_tmp15_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8814 "VideoSupport.c"
+#line 8834 "VideoSupport.c"
}
#line 985 "/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"
g_clear_error (&_inner_error_);
#line 985 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 8822 "VideoSupport.c"
+ return _tmp16_;
+#line 8842 "VideoSupport.c"
}
}
goto __finally540;
__catch540_database_error:
{
GError* e = NULL;
- GError* _tmp16_ = NULL;
- VideoRow* _tmp17_ = NULL;
- guint64 _tmp18_ = 0ULL;
+ GError* _tmp17_ = NULL;
+ VideoRow* _tmp18_ = NULL;
+ guint64 _tmp19_ = 0ULL;
#line 984 "/home/jens/Source/shotwell/src/VideoSupport.vala"
e = _inner_error_;
#line 984 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_inner_error_ = NULL;
#line 987 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = e;
+ _tmp17_ = e;
#line 987 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp16_);
+ app_window_database_error (_tmp17_);
#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->backing_row;
+ _tmp18_ = self->priv->backing_row;
#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = _tmp17_->flags;
+ _tmp19_ = _tmp18_->flags;
#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp18_;
+ result = _tmp19_;
#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 8848 "VideoSupport.c"
+#line 8868 "VideoSupport.c"
{
- VideoRow* _tmp19_ = NULL;
+ VideoRow* _tmp20_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = self->priv->backing_row;
+ _tmp20_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8855 "VideoSupport.c"
+#line 8875 "VideoSupport.c"
}
#line 988 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8859 "VideoSupport.c"
+#line 8879 "VideoSupport.c"
}
__finally540:
#line 984 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 8864 "VideoSupport.c"
+#line 8884 "VideoSupport.c"
+ guint64 _tmp22_ = 0ULL;
{
- VideoRow* _tmp20_ = NULL;
+ VideoRow* _tmp21_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = self->priv->backing_row;
+ _tmp21_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8871 "VideoSupport.c"
+#line 8892 "VideoSupport.c"
}
#line 984 "/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 984 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 984 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 8879 "VideoSupport.c"
+ return _tmp22_;
+#line 8900 "VideoSupport.c"
}
#line 991 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = self->priv->backing_row;
+ _tmp23_ = self->priv->backing_row;
#line 991 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = new_flags;
+ _tmp24_ = new_flags;
#line 991 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_->flags = _tmp22_;
-#line 8887 "VideoSupport.c"
+ _tmp23_->flags = _tmp24_;
+#line 8908 "VideoSupport.c"
}
__finally539:
{
- VideoRow* _tmp23_ = NULL;
+ VideoRow* _tmp25_ = NULL;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = self->priv->backing_row;
+ _tmp25_ = self->priv->backing_row;
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8896 "VideoSupport.c"
+#line 8917 "VideoSupport.c"
}
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 8921 "VideoSupport.c"
+ guint64 _tmp26_ = 0ULL;
#line 979 "/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 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 979 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 8906 "VideoSupport.c"
+ return _tmp26_;
+#line 8929 "VideoSupport.c"
}
}
#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = additional_alteration;
+ _tmp27_ = additional_alteration;
#line 994 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_notify_flags_altered (self, _tmp24_);
+ video_notify_flags_altered (self, _tmp27_);
#line 996 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = new_flags;
#line 996 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8917 "VideoSupport.c"
+#line 8940 "VideoSupport.c"
}
guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* additional_alteration) {
guint64 result = 0ULL;
guint64 new_flags = 0ULL;
- Alteration* _tmp24_ = NULL;
+ Alteration* _tmp27_ = NULL;
GError * _inner_error_ = NULL;
#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), 0ULL);
#line 999 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail ((additional_alteration == NULL) || IS_ALTERATION (additional_alteration), 0ULL);
-#line 8930 "VideoSupport.c"
+#line 8953 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 8937 "VideoSupport.c"
+#line 8960 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
@@ -8946,8 +8969,8 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad
VideoRow* _tmp5_ = NULL;
guint64 _tmp6_ = 0ULL;
guint64 _tmp7_ = 0ULL;
- VideoRow* _tmp21_ = NULL;
- guint64 _tmp22_ = 0ULL;
+ VideoRow* _tmp23_ = NULL;
+ guint64 _tmp24_ = 0ULL;
#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = self->priv->backing_row;
#line 1002 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8966,7 +8989,7 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad
_tmp7_ = new_flags;
#line 1003 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp6_ == _tmp7_) {
-#line 8966 "VideoSupport.c"
+#line 8989 "VideoSupport.c"
VideoRow* _tmp8_ = NULL;
guint64 _tmp9_ = 0ULL;
#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -8975,18 +8998,18 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad
_tmp9_ = _tmp8_->flags;
#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp9_;
-#line 8975 "VideoSupport.c"
+#line 8998 "VideoSupport.c"
{
VideoRow* _tmp10_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp10_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 8982 "VideoSupport.c"
+#line 9005 "VideoSupport.c"
}
#line 1004 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 8986 "VideoSupport.c"
+#line 9009 "VideoSupport.c"
}
{
VideoTable* _tmp11_ = NULL;
@@ -9007,9 +9030,11 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad
_database_table_unref0 (_tmp12_);
#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 9030 "VideoSupport.c"
+ guint64 _tmp16_ = 0ULL;
#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 9009 "VideoSupport.c"
+#line 9034 "VideoSupport.c"
goto __catch542_database_error;
}
{
@@ -9018,110 +9043,113 @@ guint64 video_remove_flags (Video* self, guint64 flags_to_remove, Alteration* ad
_tmp15_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9018 "VideoSupport.c"
+#line 9043 "VideoSupport.c"
}
#line 1007 "/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"
g_clear_error (&_inner_error_);
#line 1007 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 9026 "VideoSupport.c"
+ return _tmp16_;
+#line 9051 "VideoSupport.c"
}
}
goto __finally542;
__catch542_database_error:
{
GError* e = NULL;
- GError* _tmp16_ = NULL;
- VideoRow* _tmp17_ = NULL;
- guint64 _tmp18_ = 0ULL;
+ GError* _tmp17_ = NULL;
+ VideoRow* _tmp18_ = NULL;
+ guint64 _tmp19_ = 0ULL;
#line 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala"
e = _inner_error_;
#line 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_inner_error_ = NULL;
#line 1009 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp16_ = e;
+ _tmp17_ = e;
#line 1009 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- app_window_database_error (_tmp16_);
+ app_window_database_error (_tmp17_);
#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp17_ = self->priv->backing_row;
+ _tmp18_ = self->priv->backing_row;
#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp18_ = _tmp17_->flags;
+ _tmp19_ = _tmp18_->flags;
#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- result = _tmp18_;
+ result = _tmp19_;
#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (e);
-#line 9052 "VideoSupport.c"
+#line 9077 "VideoSupport.c"
{
- VideoRow* _tmp19_ = NULL;
+ VideoRow* _tmp20_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp19_ = self->priv->backing_row;
+ _tmp20_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9059 "VideoSupport.c"
+#line 9084 "VideoSupport.c"
}
#line 1010 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 9063 "VideoSupport.c"
+#line 9088 "VideoSupport.c"
}
__finally542:
#line 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9068 "VideoSupport.c"
+#line 9093 "VideoSupport.c"
+ guint64 _tmp22_ = 0ULL;
{
- VideoRow* _tmp20_ = NULL;
+ VideoRow* _tmp21_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp20_ = self->priv->backing_row;
+ _tmp21_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9075 "VideoSupport.c"
+#line 9101 "VideoSupport.c"
}
#line 1006 "/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 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 1006 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 9083 "VideoSupport.c"
+ return _tmp22_;
+#line 9109 "VideoSupport.c"
}
#line 1013 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_ = self->priv->backing_row;
+ _tmp23_ = self->priv->backing_row;
#line 1013 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp22_ = new_flags;
+ _tmp24_ = new_flags;
#line 1013 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp21_->flags = _tmp22_;
-#line 9091 "VideoSupport.c"
+ _tmp23_->flags = _tmp24_;
+#line 9117 "VideoSupport.c"
}
__finally541:
{
- VideoRow* _tmp23_ = NULL;
+ VideoRow* _tmp25_ = NULL;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp23_ = self->priv->backing_row;
+ _tmp25_ = self->priv->backing_row;
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9100 "VideoSupport.c"
+#line 9126 "VideoSupport.c"
}
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
+#line 9130 "VideoSupport.c"
+ guint64 _tmp26_ = 0ULL;
#line 1001 "/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 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 1001 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return 0ULL;
-#line 9110 "VideoSupport.c"
+ return _tmp26_;
+#line 9138 "VideoSupport.c"
}
}
#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp24_ = additional_alteration;
+ _tmp27_ = additional_alteration;
#line 1016 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- video_notify_flags_altered (self, _tmp24_);
+ video_notify_flags_altered (self, _tmp27_);
#line 1018 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = new_flags;
#line 1018 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 9121 "VideoSupport.c"
+#line 9149 "VideoSupport.c"
}
@@ -9130,14 +9158,15 @@ gboolean video_is_flag_set (Video* self, guint64 flag) {
GError * _inner_error_ = NULL;
#line 1021 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_val_if_fail (IS_VIDEO (self), FALSE);
-#line 9130 "VideoSupport.c"
+#line 9158 "VideoSupport.c"
{
VideoRow* _tmp0_ = NULL;
+ gboolean _tmp7_ = FALSE;
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp0_ = self->priv->backing_row;
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 9137 "VideoSupport.c"
+#line 9166 "VideoSupport.c"
{
VideoRow* _tmp1_ = NULL;
guint64 _tmp2_ = 0ULL;
@@ -9153,18 +9182,18 @@ gboolean video_is_flag_set (Video* self, guint64 flag) {
_tmp4_ = media_source_internal_is_flag_set (_tmp2_, _tmp3_);
#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala"
result = _tmp4_;
-#line 9153 "VideoSupport.c"
+#line 9182 "VideoSupport.c"
{
VideoRow* _tmp5_ = NULL;
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_ = self->priv->backing_row;
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9160 "VideoSupport.c"
+#line 9189 "VideoSupport.c"
}
#line 1023 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 9164 "VideoSupport.c"
+#line 9193 "VideoSupport.c"
}
__finally543:
{
@@ -9173,15 +9202,15 @@ gboolean video_is_flag_set (Video* self, guint64 flag) {
_tmp6_ = self->priv->backing_row;
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9173 "VideoSupport.c"
+#line 9202 "VideoSupport.c"
}
#line 1022 "/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 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_clear_error (&_inner_error_);
#line 1022 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- return FALSE;
-#line 9181 "VideoSupport.c"
+ return _tmp7_;
+#line 9210 "VideoSupport.c"
}
}
@@ -9212,7 +9241,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
new_filepath = _tmp1_;
#line 1029 "/home/jens/Source/shotwell/src/VideoSupport.vala"
old_filepath = NULL;
-#line 9212 "VideoSupport.c"
+#line 9241 "VideoSupport.c"
{
{
VideoRow* _tmp2_ = NULL;
@@ -9220,7 +9249,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_tmp2_ = self->priv->backing_row;
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_lock (&self->priv->__lock_backing_row);
-#line 9220 "VideoSupport.c"
+#line 9249 "VideoSupport.c"
{
VideoRow* _tmp3_ = NULL;
const gchar* _tmp4_ = NULL;
@@ -9244,14 +9273,14 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_tmp5_ = new_filepath;
#line 1032 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
-#line 9244 "VideoSupport.c"
+#line 9273 "VideoSupport.c"
{
VideoRow* _tmp6_ = NULL;
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = self->priv->backing_row;
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9251 "VideoSupport.c"
+#line 9280 "VideoSupport.c"
}
#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (old_filepath);
@@ -9259,7 +9288,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_g_free0 (new_filepath);
#line 1033 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 9259 "VideoSupport.c"
+#line 9288 "VideoSupport.c"
}
#line 1035 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = self->priv->backing_row;
@@ -9287,7 +9316,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_database_table_unref0 (_tmp11_);
#line 1037 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9287 "VideoSupport.c"
+#line 9316 "VideoSupport.c"
goto __finally545;
}
#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9300,7 +9329,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_g_free0 (_tmp15_->filepath);
#line 1038 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp15_->filepath = _tmp17_;
-#line 9300 "VideoSupport.c"
+#line 9329 "VideoSupport.c"
}
__finally545:
{
@@ -9309,13 +9338,13 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_tmp18_ = self->priv->backing_row;
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_unlock (&self->priv->__lock_backing_row);
-#line 9309 "VideoSupport.c"
+#line 9338 "VideoSupport.c"
}
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 9315 "VideoSupport.c"
+#line 9344 "VideoSupport.c"
goto __catch544_database_error;
}
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9328,7 +9357,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
g_clear_error (&_inner_error_);
#line 1031 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 9328 "VideoSupport.c"
+#line 9357 "VideoSupport.c"
}
}
}
@@ -9353,7 +9382,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_g_free0 (new_filepath);
#line 1043 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 9353 "VideoSupport.c"
+#line 9382 "VideoSupport.c"
}
__finally544:
#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9368,7 +9397,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
g_clear_error (&_inner_error_);
#line 1030 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 9368 "VideoSupport.c"
+#line 9397 "VideoSupport.c"
}
#line 1046 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp20_ = old_filepath;
@@ -9398,7 +9427,7 @@ static void video_real_set_master_file (Monitorable* base, GFile* file) {
_g_free0 (old_filepath);
#line 1027 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_free0 (new_filepath);
-#line 9398 "VideoSupport.c"
+#line 9427 "VideoSupport.c"
}
@@ -9439,7 +9468,7 @@ VideoMetadata* video_read_metadata (Video* self, GError** error) {
g_propagate_error (error, _inner_error_);
#line 1053 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 9439 "VideoSupport.c"
+#line 9468 "VideoSupport.c"
}
#line 1053 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp7_ = _tmp0_;
@@ -9451,7 +9480,7 @@ VideoMetadata* video_read_metadata (Video* self, GError** error) {
_media_metadata_unref0 (_tmp0_);
#line 1053 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 9451 "VideoSupport.c"
+#line 9480 "VideoSupport.c"
}
@@ -9473,14 +9502,14 @@ VideoInterpretableResults* video_interpretable_results_construct (GType object_t
self->video = _tmp1_;
#line 335 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return self;
-#line 9473 "VideoSupport.c"
+#line 9502 "VideoSupport.c"
}
VideoInterpretableResults* video_interpretable_results_new (Video* video) {
#line 335 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return video_interpretable_results_construct (VIDEO_TYPE_INTERPRETABLE_RESULTS, video);
-#line 9480 "VideoSupport.c"
+#line 9509 "VideoSupport.c"
}
@@ -9494,7 +9523,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s
_tmp0_ = self->update_interpretable;
#line 340 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_) {
-#line 9494 "VideoSupport.c"
+#line 9523 "VideoSupport.c"
Video* _tmp1_ = NULL;
gboolean _tmp2_ = FALSE;
#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9503,13 +9532,13 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s
_tmp2_ = self->is_interpretable;
#line 341 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_set_is_interpretable (_tmp1_, _tmp2_);
-#line 9503 "VideoSupport.c"
+#line 9532 "VideoSupport.c"
}
#line 343 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = self->new_thumbnail;
#line 343 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp3_ != NULL) {
-#line 9509 "VideoSupport.c"
+#line 9538 "VideoSupport.c"
{
Video* _tmp4_ = NULL;
GdkPixbuf* _tmp5_ = NULL;
@@ -9524,7 +9553,7 @@ 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 345 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9524 "VideoSupport.c"
+#line 9553 "VideoSupport.c"
goto __catch546_g_error;
}
#line 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9535,14 +9564,14 @@ 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 346 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 9535 "VideoSupport.c"
+#line 9564 "VideoSupport.c"
goto __catch546_g_error;
}
#line 348 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp8_ = self->video;
#line 348 "/home/jens/Source/shotwell/src/VideoSupport.vala"
thumbnail_source_notify_thumbnail_altered (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_THUMBNAIL_SOURCE, ThumbnailSource));
-#line 9542 "VideoSupport.c"
+#line 9571 "VideoSupport.c"
}
goto __finally546;
__catch546_g_error:
@@ -9573,7 +9602,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s
_g_free0 (_tmp11_);
#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_error_free0 (err);
-#line 9573 "VideoSupport.c"
+#line 9602 "VideoSupport.c"
}
__finally546:
#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -9584,7 +9613,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s
g_clear_error (&_inner_error_);
#line 344 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 9584 "VideoSupport.c"
+#line 9613 "VideoSupport.c"
}
}
}
@@ -9593,7 +9622,7 @@ void video_interpretable_results_foreground_finish (VideoInterpretableResults* s
static void video_value_interpretable_results_init (GValue* value) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 9593 "VideoSupport.c"
+#line 9622 "VideoSupport.c"
}
@@ -9602,7 +9631,7 @@ static void video_value_interpretable_results_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpretable_results_unref (value->data[0].v_pointer);
-#line 9602 "VideoSupport.c"
+#line 9631 "VideoSupport.c"
}
}
@@ -9612,11 +9641,11 @@ static void video_value_interpretable_results_copy_value (const GValue* src_valu
if (src_value->data[0].v_pointer) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
dest_value->data[0].v_pointer = video_interpretable_results_ref (src_value->data[0].v_pointer);
-#line 9612 "VideoSupport.c"
+#line 9641 "VideoSupport.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
dest_value->data[0].v_pointer = NULL;
-#line 9616 "VideoSupport.c"
+#line 9645 "VideoSupport.c"
}
}
@@ -9624,37 +9653,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 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return value->data[0].v_pointer;
-#line 9624 "VideoSupport.c"
+#line 9653 "VideoSupport.c"
}
static gchar* video_value_interpretable_results_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (collect_values[0].v_pointer) {
-#line 9631 "VideoSupport.c"
+#line 9660 "VideoSupport.c"
VideoInterpretableResults* object;
object = collect_values[0].v_pointer;
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (object->parent_instance.g_class == NULL) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 9638 "VideoSupport.c"
+#line 9667 "VideoSupport.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 329 "/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 9642 "VideoSupport.c"
+#line 9671 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = video_interpretable_results_ref (object);
-#line 9646 "VideoSupport.c"
+#line 9675 "VideoSupport.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 9650 "VideoSupport.c"
+#line 9679 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 9654 "VideoSupport.c"
+#line 9683 "VideoSupport.c"
}
@@ -9665,25 +9694,25 @@ static gchar* video_value_interpretable_results_lcopy_value (const GValue* value
if (!object_p) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 9665 "VideoSupport.c"
+#line 9694 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (!value->data[0].v_pointer) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*object_p = NULL;
-#line 9671 "VideoSupport.c"
+#line 9700 "VideoSupport.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*object_p = value->data[0].v_pointer;
-#line 9675 "VideoSupport.c"
+#line 9704 "VideoSupport.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*object_p = video_interpretable_results_ref (value->data[0].v_pointer);
-#line 9679 "VideoSupport.c"
+#line 9708 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return NULL;
-#line 9683 "VideoSupport.c"
+#line 9712 "VideoSupport.c"
}
@@ -9697,7 +9726,7 @@ GParamSpec* video_param_spec_interpretable_results (const gchar* name, const gch
G_PARAM_SPEC (spec)->value_type = object_type;
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return G_PARAM_SPEC (spec);
-#line 9697 "VideoSupport.c"
+#line 9726 "VideoSupport.c"
}
@@ -9706,7 +9735,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 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return value->data[0].v_pointer;
-#line 9706 "VideoSupport.c"
+#line 9735 "VideoSupport.c"
}
@@ -9726,17 +9755,17 @@ void video_value_set_interpretable_results (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpretable_results_ref (value->data[0].v_pointer);
-#line 9726 "VideoSupport.c"
+#line 9755 "VideoSupport.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 9730 "VideoSupport.c"
+#line 9759 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (old) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpretable_results_unref (old);
-#line 9736 "VideoSupport.c"
+#line 9765 "VideoSupport.c"
}
}
@@ -9755,17 +9784,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 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = v_object;
-#line 9755 "VideoSupport.c"
+#line 9784 "VideoSupport.c"
} else {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
value->data[0].v_pointer = NULL;
-#line 9759 "VideoSupport.c"
+#line 9788 "VideoSupport.c"
}
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (old) {
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_interpretable_results_unref (old);
-#line 9765 "VideoSupport.c"
+#line 9794 "VideoSupport.c"
}
}
@@ -9775,7 +9804,7 @@ static void video_interpretable_results_class_init (VideoInterpretableResultsCla
video_interpretable_results_parent_class = g_type_class_peek_parent (klass);
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
((VideoInterpretableResultsClass *) klass)->finalize = video_interpretable_results_finalize;
-#line 9775 "VideoSupport.c"
+#line 9804 "VideoSupport.c"
}
@@ -9788,7 +9817,7 @@ static void video_interpretable_results_instance_init (VideoInterpretableResults
self->new_thumbnail = NULL;
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self->ref_count = 1;
-#line 9788 "VideoSupport.c"
+#line 9817 "VideoSupport.c"
}
@@ -9802,7 +9831,7 @@ static void video_interpretable_results_finalize (VideoInterpretableResults* obj
_g_object_unref0 (self->video);
#line 333 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (self->new_thumbnail);
-#line 9802 "VideoSupport.c"
+#line 9831 "VideoSupport.c"
}
@@ -9827,7 +9856,7 @@ gpointer video_interpretable_results_ref (gpointer instance) {
g_atomic_int_inc (&self->ref_count);
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return instance;
-#line 9827 "VideoSupport.c"
+#line 9856 "VideoSupport.c"
}
@@ -9840,7 +9869,7 @@ void video_interpretable_results_unref (gpointer instance) {
VIDEO_INTERPRETABLE_RESULTS_GET_CLASS (self)->finalize (self);
#line 329 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 9840 "VideoSupport.c"
+#line 9869 "VideoSupport.c"
}
}
@@ -9851,80 +9880,80 @@ static void video_class_init (VideoClass * klass) {
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_type_class_add_private (klass, sizeof (VideoPrivate));
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->commit_backlinks = video_real_commit_backlinks;
+ ((DataSourceClass *) klass)->commit_backlinks = (void (*)(DataSource*, SourceCollection*, const gchar*)) video_real_commit_backlinks;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_event_id = video_real_set_event_id;
+ ((MediaSourceClass *) klass)->set_event_id = (gboolean (*)(MediaSource*, EventID*)) video_real_set_event_id;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_backing_files_state = video_real_get_backing_files_state;
+ ((MediaSourceClass *) klass)->get_backing_files_state = (BackingFileState** (*)(MediaSource*, int*)) video_real_get_backing_files_state;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->get_thumbnail = video_real_get_thumbnail;
+ ((ThumbnailSourceClass *) klass)->get_thumbnail = (GdkPixbuf* (*)(ThumbnailSource*, gint, GError**)) video_real_get_thumbnail;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_md5 = video_real_get_master_md5;
+ ((MediaSourceClass *) klass)->get_master_md5 = (gchar* (*)(MediaSource*)) video_real_get_master_md5;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_preview_pixbuf = video_real_get_preview_pixbuf;
+ ((MediaSourceClass *) klass)->get_preview_pixbuf = (GdkPixbuf* (*)(MediaSource*, Scaling*, GError**)) video_real_get_preview_pixbuf;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->create_thumbnail = video_real_create_thumbnail;
+ ((ThumbnailSourceClass *) klass)->create_thumbnail = (GdkPixbuf* (*)(ThumbnailSource*, gint, GError**)) video_real_create_thumbnail;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->get_typename = video_real_get_typename;
+ ((DataSourceClass *) klass)->get_typename = (gchar* (*)(DataSource*)) video_real_get_typename;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->get_instance_id = video_real_get_instance_id;
+ ((DataSourceClass *) klass)->get_instance_id = (gint64 (*)(DataSource*)) video_real_get_instance_id;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_import_id = video_real_get_import_id;
+ ((MediaSourceClass *) klass)->get_import_id = (void (*)(MediaSource*, ImportID*)) video_real_get_import_id;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = video_real_get_preferred_thumbnail_format;
+ ((ThumbnailSourceClass *) klass)->get_preferred_thumbnail_format = (PhotoFileFormat (*)(ThumbnailSource*)) video_real_get_preferred_thumbnail_format;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_title = video_real_get_title;
+ ((MediaSourceClass *) klass)->get_title = (gchar* (*)(MediaSource*)) video_real_get_title;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_title = video_real_set_title;
+ ((MediaSourceClass *) klass)->set_title = (void (*)(MediaSource*, const gchar*)) video_real_set_title;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_comment = video_real_get_comment;
+ ((MediaSourceClass *) klass)->get_comment = (gchar* (*)(MediaSource*)) video_real_get_comment;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_comment = video_real_set_comment;
+ ((MediaSourceClass *) klass)->set_comment = (gboolean (*)(MediaSource*, const gchar*)) video_real_set_comment;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_rating = video_real_get_rating;
+ ((MediaSourceClass *) klass)->get_rating = (Rating (*)(MediaSource*)) video_real_get_rating;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->set_rating = video_real_set_rating;
+ ((MediaSourceClass *) klass)->set_rating = (void (*)(MediaSource*, Rating)) video_real_set_rating;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->increase_rating = video_real_increase_rating;
+ ((MediaSourceClass *) klass)->increase_rating = (void (*)(MediaSource*)) video_real_increase_rating;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->decrease_rating = video_real_decrease_rating;
+ ((MediaSourceClass *) klass)->decrease_rating = (void (*)(MediaSource*)) video_real_decrease_rating;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->is_trashed = video_real_is_trashed;
+ ((MediaSourceClass *) klass)->is_trashed = (gboolean (*)(MediaSource*)) video_real_is_trashed;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->is_offline = video_real_is_offline;
+ ((MediaSourceClass *) klass)->is_offline = (gboolean (*)(MediaSource*)) video_real_is_offline;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->mark_offline = video_real_mark_offline;
+ ((MediaSourceClass *) klass)->mark_offline = (void (*)(MediaSource*)) video_real_mark_offline;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->mark_online = video_real_mark_online;
+ ((MediaSourceClass *) klass)->mark_online = (void (*)(MediaSource*)) video_real_mark_online;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->trash = video_real_trash;
+ ((MediaSourceClass *) klass)->trash = (void (*)(MediaSource*)) video_real_trash;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->untrash = video_real_untrash;
+ ((MediaSourceClass *) klass)->untrash = (void (*)(MediaSource*)) video_real_untrash;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_event_id = video_real_get_event_id;
+ ((MediaSourceClass *) klass)->get_event_id = (void (*)(MediaSource*, EventID*)) video_real_get_event_id;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataObjectClass *) klass)->to_string = video_real_to_string;
+ ((DataObjectClass *) klass)->to_string = (gchar* (*)(DataObject*)) video_real_to_string;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_exposure_time = video_real_get_exposure_time;
+ ((MediaSourceClass *) klass)->get_exposure_time = (time_t (*)(MediaSource*)) video_real_get_exposure_time;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_dimensions = video_real_get_dimensions;
+ ((MediaSourceClass *) klass)->get_dimensions = (void (*)(MediaSource*, PhotoException, Dimensions*)) video_real_get_dimensions;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_filesize = video_real_get_filesize;
+ ((MediaSourceClass *) klass)->get_filesize = (guint64 (*)(MediaSource*)) video_real_get_filesize;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_filesize = video_real_get_master_filesize;
+ ((MediaSourceClass *) klass)->get_master_filesize = (guint64 (*)(MediaSource*)) video_real_get_master_filesize;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_timestamp = video_real_get_timestamp;
+ ((MediaSourceClass *) klass)->get_timestamp = (time_t (*)(MediaSource*)) video_real_get_timestamp;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_file = video_real_get_file;
+ ((MediaSourceClass *) klass)->get_file = (GFile* (*)(MediaSource*)) video_real_get_file;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceClass *) klass)->get_master_file = video_real_get_master_file;
+ ((MediaSourceClass *) klass)->get_master_file = (GFile* (*)(MediaSource*)) video_real_get_master_file;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->destroy = video_real_destroy;
+ ((DataSourceClass *) klass)->destroy = (void (*)(DataSource*)) video_real_destroy;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataSourceClass *) klass)->internal_delete_backing = video_real_internal_delete_backing;
+ ((DataSourceClass *) klass)->internal_delete_backing = (gboolean (*)(DataSource*, GError**)) video_real_internal_delete_backing;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
G_OBJECT_CLASS (klass)->finalize = video_finalize;
-#line 9924 "VideoSupport.c"
+#line 9953 "VideoSupport.c"
}
@@ -9937,7 +9966,7 @@ static void video_flaggable_interface_init (FlaggableIface * iface) {
iface->mark_flagged = (void (*)(Flaggable*)) video_real_mark_flagged;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
iface->mark_unflagged = (void (*)(Flaggable*)) video_real_mark_unflagged;
-#line 9937 "VideoSupport.c"
+#line 9966 "VideoSupport.c"
}
@@ -9954,7 +9983,7 @@ static void video_monitorable_interface_init (MonitorableIface * iface) {
iface->set_master_timestamp = (void (*)(Monitorable*, GFileInfo*)) video_real_set_master_timestamp;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
iface->set_master_file = (void (*)(Monitorable*, GFile*)) video_real_set_master_file;
-#line 9954 "VideoSupport.c"
+#line 9983 "VideoSupport.c"
}
@@ -9965,7 +9994,7 @@ static void video_dateable_interface_init (DateableIface * iface) {
iface->get_exposure_time = (time_t (*)(Dateable*)) video_real_get_exposure_time;
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
iface->set_exposure_time = (void (*)(Dateable*, time_t)) video_real_set_exposure_time;
-#line 9965 "VideoSupport.c"
+#line 9994 "VideoSupport.c"
}
@@ -9974,7 +10003,7 @@ static void video_instance_init (Video * self) {
self->priv = VIDEO_GET_PRIVATE (self);
#line 363 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_rec_mutex_init (&self->priv->__lock_backing_row);
-#line 9974 "VideoSupport.c"
+#line 10003 "VideoSupport.c"
}
@@ -9988,7 +10017,7 @@ static void video_finalize (GObject* obj) {
_video_row_unref0 (self->priv->backing_row);
#line 322 "/home/jens/Source/shotwell/src/VideoSupport.vala"
G_OBJECT_CLASS (video_parent_class)->finalize (obj);
-#line 9988 "VideoSupport.c"
+#line 10017 "VideoSupport.c"
}
@@ -10027,7 +10056,7 @@ static gint _uint64_compare_gcompare_data_func (gconstpointer a, gconstpointer b
result = uint64_compare ((guint64*) a, (guint64*) b);
#line 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10027 "VideoSupport.c"
+#line 10056 "VideoSupport.c"
}
@@ -10039,7 +10068,7 @@ static guint64* _uint64_dup (guint64* self) {
memcpy (dup, self, sizeof (guint64));
#line 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return dup;
-#line 10039 "VideoSupport.c"
+#line 10068 "VideoSupport.c"
}
@@ -10048,21 +10077,21 @@ static gint64 _video_source_collection_get_video_key_get_source_database_key (Da
result = video_source_collection_get_video_key (source);
#line 1079 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10048 "VideoSupport.c"
+#line 10077 "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 1081 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_source_collection_on_trashcan_contents_altered ((VideoSourceCollection*) self, added, removed);
-#line 10055 "VideoSupport.c"
+#line 10084 "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 1082 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_source_collection_on_offline_contents_altered ((VideoSourceCollection*) self, added, removed);
-#line 10062 "VideoSupport.c"
+#line 10091 "VideoSupport.c"
}
@@ -10092,14 +10121,14 @@ VideoSourceCollection* video_source_collection_construct (GType object_type) {
_source_holding_tank_unref0 (_tmp3_);
#line 1078 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return self;
-#line 10092 "VideoSupport.c"
+#line 10121 "VideoSupport.c"
}
VideoSourceCollection* video_source_collection_new (void) {
#line 1078 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return video_source_collection_construct (TYPE_VIDEO_SOURCE_COLLECTION);
-#line 10099 "VideoSupport.c"
+#line 10128 "VideoSupport.c"
}
@@ -10108,7 +10137,7 @@ static gboolean _video_source_collection_is_video_trashed_source_holding_tank_ch
result = video_source_collection_is_video_trashed (source);
#line 1086 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10108 "VideoSupport.c"
+#line 10137 "VideoSupport.c"
}
@@ -10124,7 +10153,7 @@ static MediaSourceHoldingTank* video_source_collection_real_create_trashcan (Med
result = _tmp0_;
#line 1086 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10124 "VideoSupport.c"
+#line 10153 "VideoSupport.c"
}
@@ -10133,7 +10162,7 @@ static gboolean _video_source_collection_is_video_offline_source_holding_tank_ch
result = video_source_collection_is_video_offline (source);
#line 1090 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10133 "VideoSupport.c"
+#line 10162 "VideoSupport.c"
}
@@ -10149,7 +10178,7 @@ static MediaSourceHoldingTank* video_source_collection_real_create_offline_bin (
result = _tmp0_;
#line 1090 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10149 "VideoSupport.c"
+#line 10178 "VideoSupport.c"
}
@@ -10172,7 +10201,7 @@ static MediaMonitor* video_source_collection_real_create_media_monitor (MediaSou
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_MEDIA_MONITOR, MediaMonitor);
#line 1094 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10172 "VideoSupport.c"
+#line 10201 "VideoSupport.c"
}
@@ -10190,7 +10219,7 @@ static gboolean video_source_collection_real_holds_type_of_source (SourceCollect
result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO);
#line 1098 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10190 "VideoSupport.c"
+#line 10219 "VideoSupport.c"
}
@@ -10206,7 +10235,7 @@ static gchar* video_source_collection_real_get_typename (MediaSourceCollection*
result = _tmp0_;
#line 1102 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10206 "VideoSupport.c"
+#line 10235 "VideoSupport.c"
}
@@ -10227,7 +10256,7 @@ static gboolean video_source_collection_real_is_file_recognized (MediaSourceColl
result = _tmp1_;
#line 1106 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10227 "VideoSupport.c"
+#line 10256 "VideoSupport.c"
}
@@ -10246,7 +10275,7 @@ static void video_source_collection_on_trashcan_contents_altered (VideoSourceCol
_tmp1_ = removed;
#line 1111 "/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 10246 "VideoSupport.c"
+#line 10275 "VideoSupport.c"
}
@@ -10265,7 +10294,7 @@ static void video_source_collection_on_offline_contents_altered (VideoSourceColl
_tmp1_ = removed;
#line 1117 "/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 10265 "VideoSupport.c"
+#line 10294 "VideoSupport.c"
}
@@ -10287,7 +10316,7 @@ static MediaSource* video_source_collection_real_fetch_by_numeric_id (MediaSourc
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MEDIA_SOURCE, MediaSource);
#line 1122 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10287 "VideoSupport.c"
+#line 10316 "VideoSupport.c"
}
@@ -10322,7 +10351,7 @@ gint64 video_source_collection_get_video_key (DataSource* source) {
_g_object_unref0 (video);
#line 1129 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10322 "VideoSupport.c"
+#line 10351 "VideoSupport.c"
}
@@ -10340,7 +10369,7 @@ gboolean video_source_collection_is_video_trashed (DataSource* source) {
result = _tmp1_;
#line 1133 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10340 "VideoSupport.c"
+#line 10369 "VideoSupport.c"
}
@@ -10358,7 +10387,7 @@ gboolean video_source_collection_is_video_offline (DataSource* source) {
result = _tmp1_;
#line 1137 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10358 "VideoSupport.c"
+#line 10387 "VideoSupport.c"
}
@@ -10381,7 +10410,7 @@ Video* video_source_collection_fetch (VideoSourceCollection* self, VideoID* vide
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_VIDEO, Video);
#line 1141 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10381 "VideoSupport.c"
+#line 10410 "VideoSupport.c"
}
@@ -10413,7 +10442,7 @@ static GeeCollection* video_source_collection_real_get_event_source_ids (MediaSo
result = _tmp4_;
#line 1145 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10413 "VideoSupport.c"
+#line 10442 "VideoSupport.c"
}
@@ -10456,11 +10485,11 @@ Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, G
if (state) {
#line 1153 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*state = _vala_state;
-#line 10456 "VideoSupport.c"
+#line 10485 "VideoSupport.c"
}
#line 1153 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10460 "VideoSupport.c"
+#line 10489 "VideoSupport.c"
}
#line 1156 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp3_ = media_source_collection_get_trashcan (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
@@ -10488,11 +10517,11 @@ Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, G
if (state) {
#line 1160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*state = _vala_state;
-#line 10488 "VideoSupport.c"
+#line 10517 "VideoSupport.c"
}
#line 1160 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10492 "VideoSupport.c"
+#line 10521 "VideoSupport.c"
}
#line 1163 "/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));
@@ -10520,11 +10549,11 @@ Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, G
if (state) {
#line 1167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*state = _vala_state;
-#line 10520 "VideoSupport.c"
+#line 10549 "VideoSupport.c"
}
#line 1167 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10524 "VideoSupport.c"
+#line 10553 "VideoSupport.c"
}
#line 1170 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_vala_state = VIDEO_SOURCE_COLLECTION_STATE_UNKNOWN;
@@ -10536,11 +10565,11 @@ Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, G
if (state) {
#line 1172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
*state = _vala_state;
-#line 10536 "VideoSupport.c"
+#line 10565 "VideoSupport.c"
}
#line 1172 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 10540 "VideoSupport.c"
+#line 10569 "VideoSupport.c"
}
@@ -10574,7 +10603,7 @@ static void video_source_collection_compare_backing (VideoSourceCollection* self
if (_tmp1_ != ((guint64) _tmp3_)) {
#line 1177 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 10574 "VideoSupport.c"
+#line 10603 "VideoSupport.c"
}
#line 1179 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp4_ = video;
@@ -10588,7 +10617,7 @@ static void video_source_collection_compare_backing (VideoSourceCollection* self
_tmp8_ = _tmp7_.tv_sec;
#line 1179 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp5_ == ((time_t) _tmp8_)) {
-#line 10588 "VideoSupport.c"
+#line 10617 "VideoSupport.c"
GeeCollection* _tmp9_ = NULL;
Video* _tmp10_ = NULL;
#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -10597,7 +10626,7 @@ static void video_source_collection_compare_backing (VideoSourceCollection* self
_tmp10_ = video;
#line 1180 "/home/jens/Source/shotwell/src/VideoSupport.vala"
gee_collection_add (_tmp9_, _tmp10_);
-#line 10597 "VideoSupport.c"
+#line 10626 "VideoSupport.c"
}
}
@@ -10609,7 +10638,7 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
g_return_if_fail (G_IS_FILE_INFO (info));
#line 1183 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (GEE_IS_COLLECTION (matching_master));
-#line 10609 "VideoSupport.c"
+#line 10638 "VideoSupport.c"
{
GeeIterator* _object_it = NULL;
GeeCollection* _tmp0_ = NULL;
@@ -10630,7 +10659,7 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
_object_it = _tmp3_;
#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 10630 "VideoSupport.c"
+#line 10659 "VideoSupport.c"
GeeIterator* _tmp4_ = NULL;
gboolean _tmp5_ = FALSE;
DataObject* object = NULL;
@@ -10647,7 +10676,7 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
if (!_tmp5_) {
#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 10647 "VideoSupport.c"
+#line 10676 "VideoSupport.c"
}
#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp6_ = _object_it;
@@ -10665,11 +10694,11 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_VIDEO, Video), _tmp9_, _tmp10_);
#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (object);
-#line 10665 "VideoSupport.c"
+#line 10694 "VideoSupport.c"
}
#line 1184 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_object_it);
-#line 10669 "VideoSupport.c"
+#line 10698 "VideoSupport.c"
}
{
GeeIterator* _media_it = NULL;
@@ -10691,7 +10720,7 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
_media_it = _tmp14_;
#line 1187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 10691 "VideoSupport.c"
+#line 10720 "VideoSupport.c"
GeeIterator* _tmp15_ = NULL;
gboolean _tmp16_ = FALSE;
MediaSource* media = NULL;
@@ -10708,7 +10737,7 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
if (!_tmp16_) {
#line 1187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 10708 "VideoSupport.c"
+#line 10737 "VideoSupport.c"
}
#line 1187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp17_ = _media_it;
@@ -10726,11 +10755,11 @@ void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* s
video_source_collection_compare_backing (self, G_TYPE_CHECK_INSTANCE_CAST (_tmp19_, TYPE_VIDEO, Video), _tmp20_, _tmp21_);
#line 1187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (media);
-#line 10726 "VideoSupport.c"
+#line 10755 "VideoSupport.c"
}
#line 1187 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_media_it);
-#line 10730 "VideoSupport.c"
+#line 10759 "VideoSupport.c"
}
}
@@ -10751,7 +10780,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_tmp0_ = added;
#line 1193 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_ != NULL) {
-#line 10751 "VideoSupport.c"
+#line 10780 "VideoSupport.c"
{
GeeIterator* _object_it = NULL;
GeeIterable* _tmp1_ = NULL;
@@ -10764,7 +10793,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_object_it = _tmp2_;
#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 10764 "VideoSupport.c"
+#line 10793 "VideoSupport.c"
GeeIterator* _tmp3_ = NULL;
gboolean _tmp4_ = FALSE;
DataObject* object = NULL;
@@ -10785,7 +10814,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
if (!_tmp4_) {
#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 10785 "VideoSupport.c"
+#line 10814 "VideoSupport.c"
}
#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp5_ = _object_it;
@@ -10813,18 +10842,18 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_g_object_unref0 (video);
#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (object);
-#line 10813 "VideoSupport.c"
+#line 10842 "VideoSupport.c"
}
#line 1194 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_object_it);
-#line 10817 "VideoSupport.c"
+#line 10846 "VideoSupport.c"
}
}
#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp13_ = removed;
#line 1201 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp13_ != NULL) {
-#line 10824 "VideoSupport.c"
+#line 10853 "VideoSupport.c"
{
GeeIterator* _object_it = NULL;
GeeIterable* _tmp14_ = NULL;
@@ -10837,7 +10866,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_object_it = _tmp15_;
#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 10837 "VideoSupport.c"
+#line 10866 "VideoSupport.c"
GeeIterator* _tmp16_ = NULL;
gboolean _tmp17_ = FALSE;
DataObject* object = NULL;
@@ -10858,7 +10887,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
if (!_tmp17_) {
#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 10858 "VideoSupport.c"
+#line 10887 "VideoSupport.c"
}
#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp18_ = _object_it;
@@ -10886,11 +10915,11 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_g_object_unref0 (video);
#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (object);
-#line 10886 "VideoSupport.c"
+#line 10915 "VideoSupport.c"
}
#line 1202 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_object_it);
-#line 10890 "VideoSupport.c"
+#line 10919 "VideoSupport.c"
}
}
#line 1209 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -10899,7 +10928,7 @@ static void video_source_collection_real_notify_contents_altered (DataCollection
_tmp27_ = removed;
#line 1209 "/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 10899 "VideoSupport.c"
+#line 10928 "VideoSupport.c"
}
@@ -10909,7 +10938,7 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
g_return_if_fail (IS_VIDEO_SOURCE_COLLECTION (self));
#line 1212 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_return_if_fail (basename != NULL);
-#line 10909 "VideoSupport.c"
+#line 10938 "VideoSupport.c"
{
GeeIterator* _video_it = NULL;
GeeMultiMap* _tmp0_ = NULL;
@@ -10936,7 +10965,7 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
_video_it = _tmp5_;
#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
while (TRUE) {
-#line 10936 "VideoSupport.c"
+#line 10965 "VideoSupport.c"
GeeIterator* _tmp6_ = NULL;
gboolean _tmp7_ = FALSE;
Video* video = NULL;
@@ -10957,7 +10986,7 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
if (!_tmp7_) {
#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
break;
-#line 10957 "VideoSupport.c"
+#line 10986 "VideoSupport.c"
}
#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp8_ = _video_it;
@@ -10983,7 +11012,7 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
_g_object_unref0 (_tmp12_);
#line 1214 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp16_) {
-#line 10983 "VideoSupport.c"
+#line 11012 "VideoSupport.c"
Video* _tmp17_ = NULL;
VideoID _tmp18_ = {0};
#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
@@ -10998,15 +11027,15 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
_g_object_unref0 (_video_it);
#line 1215 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 10998 "VideoSupport.c"
+#line 11027 "VideoSupport.c"
}
#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (video);
-#line 11002 "VideoSupport.c"
+#line 11031 "VideoSupport.c"
}
#line 1213 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_g_object_unref0 (_video_it);
-#line 11006 "VideoSupport.c"
+#line 11035 "VideoSupport.c"
}
#line 1218 "/home/jens/Source/shotwell/src/VideoSupport.vala"
video_id_init (&_tmp19_, VIDEO_ID_INVALID);
@@ -11014,7 +11043,7 @@ void video_source_collection_get_basename_filesize_duplicate (VideoSourceCollect
*result = _tmp19_;
#line 1218 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return;
-#line 11014 "VideoSupport.c"
+#line 11043 "VideoSupport.c"
}
@@ -11040,7 +11069,7 @@ gboolean video_source_collection_has_basename_filesize_duplicate (VideoSourceCol
result = _tmp3_;
#line 1223 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 11040 "VideoSupport.c"
+#line 11069 "VideoSupport.c"
}
@@ -11055,7 +11084,7 @@ static TransactionController* video_source_collection_real_get_transaction_contr
_tmp0_ = self->priv->_transaction_controller;
#line 1067 "/home/jens/Source/shotwell/src/VideoSupport.vala"
if (_tmp0_ == NULL) {
-#line 11055 "VideoSupport.c"
+#line 11084 "VideoSupport.c"
MediaSourceTransactionController* _tmp1_ = NULL;
#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp1_ = media_source_transaction_controller_new (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection));
@@ -11063,7 +11092,7 @@ static TransactionController* video_source_collection_real_get_transaction_contr
_transaction_controller_unref0 (self->priv->_transaction_controller);
#line 1068 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self->priv->_transaction_controller = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_TRANSACTION_CONTROLLER, TransactionController);
-#line 11063 "VideoSupport.c"
+#line 11092 "VideoSupport.c"
}
#line 1070 "/home/jens/Source/shotwell/src/VideoSupport.vala"
_tmp2_ = self->priv->_transaction_controller;
@@ -11071,7 +11100,7 @@ static TransactionController* video_source_collection_real_get_transaction_contr
result = _tmp2_;
#line 1070 "/home/jens/Source/shotwell/src/VideoSupport.vala"
return result;
-#line 11071 "VideoSupport.c"
+#line 11100 "VideoSupport.c"
}
@@ -11083,26 +11112,26 @@ static void video_source_collection_class_init (VideoSourceCollectionClass * kla
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
g_type_class_add_private (klass, sizeof (VideoSourceCollectionPrivate));
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_trashcan = video_source_collection_real_create_trashcan;
+ ((MediaSourceCollectionClass *) klass)->create_trashcan = (MediaSourceHoldingTank* (*)(MediaSourceCollection*)) video_source_collection_real_create_trashcan;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_offline_bin = video_source_collection_real_create_offline_bin;
+ ((MediaSourceCollectionClass *) klass)->create_offline_bin = (MediaSourceHoldingTank* (*)(MediaSourceCollection*)) video_source_collection_real_create_offline_bin;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->create_media_monitor = video_source_collection_real_create_media_monitor;
+ ((MediaSourceCollectionClass *) klass)->create_media_monitor = (MediaMonitor* (*)(MediaSourceCollection*, Workers*, GCancellable*)) video_source_collection_real_create_media_monitor;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((SourceCollectionClass *) klass)->holds_type_of_source = video_source_collection_real_holds_type_of_source;
+ ((SourceCollectionClass *) klass)->holds_type_of_source = (gboolean (*)(SourceCollection*, DataSource*)) video_source_collection_real_holds_type_of_source;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->get_typename = video_source_collection_real_get_typename;
+ ((MediaSourceCollectionClass *) klass)->get_typename = (gchar* (*)(MediaSourceCollection*)) video_source_collection_real_get_typename;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->is_file_recognized = video_source_collection_real_is_file_recognized;
+ ((MediaSourceCollectionClass *) klass)->is_file_recognized = (gboolean (*)(MediaSourceCollection*, GFile*)) video_source_collection_real_is_file_recognized;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = video_source_collection_real_fetch_by_numeric_id;
+ ((MediaSourceCollectionClass *) klass)->fetch_by_numeric_id = (MediaSource* (*)(MediaSourceCollection*, gint64)) video_source_collection_real_fetch_by_numeric_id;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((MediaSourceCollectionClass *) klass)->get_event_source_ids = video_source_collection_real_get_event_source_ids;
+ ((MediaSourceCollectionClass *) klass)->get_event_source_ids = (GeeCollection* (*)(MediaSourceCollection*, EventID*)) video_source_collection_real_get_event_source_ids;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- ((DataCollectionClass *) klass)->notify_contents_altered = video_source_collection_real_notify_contents_altered;
+ ((DataCollectionClass *) klass)->notify_contents_altered = (void (*)(DataCollection*, GeeIterable*, GeeIterable*)) video_source_collection_real_notify_contents_altered;
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
MEDIA_SOURCE_COLLECTION_CLASS (klass)->get_transaction_controller = video_source_collection_real_get_transaction_controller;
-#line 11102 "VideoSupport.c"
+#line 11131 "VideoSupport.c"
}
@@ -11113,10 +11142,10 @@ static void video_source_collection_instance_init (VideoSourceCollection * self)
#line 1074 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self->priv->_transaction_controller = NULL;
#line 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala"
- _tmp0_ = gee_tree_multi_map_new (G_TYPE_UINT64, (GBoxedCopyFunc) _uint64_dup, g_free, TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, g_object_unref, _uint64_compare_gcompare_data_func, NULL, NULL, NULL, NULL, NULL);
+ _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 1075 "/home/jens/Source/shotwell/src/VideoSupport.vala"
self->priv->filesize_to_video = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, GEE_TYPE_MULTI_MAP, GeeMultiMap);
-#line 11116 "VideoSupport.c"
+#line 11145 "VideoSupport.c"
}
@@ -11130,7 +11159,7 @@ static void video_source_collection_finalize (DataCollection* obj) {
_g_object_unref0 (self->priv->filesize_to_video);
#line 1057 "/home/jens/Source/shotwell/src/VideoSupport.vala"
DATA_COLLECTION_CLASS (video_source_collection_parent_class)->finalize (obj);
-#line 11130 "VideoSupport.c"
+#line 11159 "VideoSupport.c"
}