summaryrefslogtreecommitdiff
path: root/src/VideoMonitor.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 21:12:13 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-06-25 21:12:13 +0200
commit059a62ee3c820a42fbce980c3256049adecc9100 (patch)
treee51eab94fd7d65459640ca227fb2257bb41d2acb /src/VideoMonitor.c
parent55778740c211992cc86ea87588ab62c6750f36d1 (diff)
parente8f4d7a9cdd37c5a9fb3b6991a4e9173829808da (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/VideoMonitor.c')
-rw-r--r--src/VideoMonitor.c1596
1 files changed, 858 insertions, 738 deletions
diff --git a/src/VideoMonitor.c b/src/VideoMonitor.c
index 5edd809..a3f8a75 100644
--- a/src/VideoMonitor.c
+++ b/src/VideoMonitor.c
@@ -1,4 +1,4 @@
-/* VideoMonitor.c generated by valac 0.36.6, the Vala compiler
+/* VideoMonitor.c generated by valac 0.40.4, the Vala compiler
* generated from VideoMonitor.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -7,6 +7,7 @@
* (version 2.1 or later). See the COPYING file in this distribution.
*/
+
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
@@ -189,6 +190,11 @@ typedef struct _VideoMonitorPrivate VideoMonitorPrivate;
typedef struct _Workers Workers;
typedef struct _WorkersClass WorkersClass;
+enum {
+ VIDEO_MONITOR_0_PROPERTY,
+ VIDEO_MONITOR_NUM_PROPERTIES
+};
+static GParamSpec* video_monitor_properties[VIDEO_MONITOR_NUM_PROPERTIES];
#define _workers_unref0(var) ((var == NULL) ? NULL : (var = (workers_unref (var), NULL)))
#define TYPE_VIDEO_SOURCE_COLLECTION (video_source_collection_get_type ())
@@ -398,9 +404,15 @@ static gpointer video_monitor_video_interpretable_check_job_parent_class = NULL;
gpointer monitorable_updates_ref (gpointer instance);
void monitorable_updates_unref (gpointer instance);
-GParamSpec* param_spec_monitorable_updates (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_monitorable_updates (GValue* value, gpointer v_object);
-void value_take_monitorable_updates (GValue* value, gpointer v_object);
+GParamSpec* param_spec_monitorable_updates (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_monitorable_updates (GValue* value,
+ gpointer v_object);
+void value_take_monitorable_updates (GValue* value,
+ gpointer v_object);
gpointer value_get_monitorable_updates (const GValue* value);
GType monitorable_updates_get_type (void) G_GNUC_CONST;
GType data_object_get_type (void) G_GNUC_CONST;
@@ -412,15 +424,16 @@ GType video_updates_get_type (void) G_GNUC_CONST;
GType video_source_get_type (void) G_GNUC_CONST;
GType video_get_type (void) G_GNUC_CONST;
#define VIDEO_UPDATES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_UPDATES, VideoUpdatesPrivate))
-enum {
- VIDEO_UPDATES_DUMMY_PROPERTY
-};
VideoUpdates* video_updates_new (Video* video);
-VideoUpdates* video_updates_construct (GType object_type, Video* video);
+VideoUpdates* video_updates_construct (GType object_type,
+ Video* video);
MonitorableUpdates* monitorable_updates_new (Monitorable* monitorable);
-MonitorableUpdates* monitorable_updates_construct (GType object_type, Monitorable* monitorable);
-void video_updates_set_check_interpretable (VideoUpdates* self, gboolean check);
-static void video_updates_real_set_check_interpretable (VideoUpdates* self, gboolean check);
+MonitorableUpdates* monitorable_updates_construct (GType object_type,
+ Monitorable* monitorable);
+void video_updates_set_check_interpretable (VideoUpdates* self,
+ gboolean check);
+static void video_updates_real_set_check_interpretable (VideoUpdates* self,
+ gboolean check);
static void video_updates_real_mark_online (MonitorableUpdates* base);
void monitorable_updates_mark_online (MonitorableUpdates* self);
gboolean video_updates_is_check_interpretable (VideoUpdates* self);
@@ -430,9 +443,15 @@ static void video_updates_finalize (MonitorableUpdates * obj);
GType media_monitor_get_type (void) G_GNUC_CONST;
gpointer data_collection_ref (gpointer instance);
void data_collection_unref (gpointer instance);
-GParamSpec* param_spec_data_collection (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_data_collection (GValue* value, gpointer v_object);
-void value_take_data_collection (GValue* value, gpointer v_object);
+GParamSpec* param_spec_data_collection (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_data_collection (GValue* value,
+ gpointer v_object);
+void value_take_data_collection (GValue* value,
+ gpointer v_object);
gpointer value_get_data_collection (const GValue* value);
GType data_collection_get_type (void) G_GNUC_CONST;
GType source_collection_get_type (void) G_GNUC_CONST;
@@ -441,165 +460,263 @@ GType media_source_collection_get_type (void) G_GNUC_CONST;
GType media_monitor_discovered_file_get_type (void) G_GNUC_CONST;
gpointer transaction_controller_ref (gpointer instance);
void transaction_controller_unref (gpointer instance);
-GParamSpec* param_spec_transaction_controller (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_transaction_controller (GValue* value, gpointer v_object);
-void value_take_transaction_controller (GValue* value, gpointer v_object);
+GParamSpec* param_spec_transaction_controller (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_transaction_controller (GValue* value,
+ gpointer v_object);
+void value_take_transaction_controller (GValue* value,
+ gpointer v_object);
gpointer value_get_transaction_controller (const GValue* value);
GType transaction_controller_get_type (void) G_GNUC_CONST;
GType video_monitor_get_type (void) G_GNUC_CONST;
gpointer workers_ref (gpointer instance);
void workers_unref (gpointer instance);
-GParamSpec* param_spec_workers (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_workers (GValue* value, gpointer v_object);
-void value_take_workers (GValue* value, gpointer v_object);
+GParamSpec* param_spec_workers (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_workers (GValue* value,
+ gpointer v_object);
+void value_take_workers (GValue* value,
+ gpointer v_object);
gpointer value_get_workers (const GValue* value);
GType workers_get_type (void) G_GNUC_CONST;
#define VIDEO_MONITOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_VIDEO_MONITOR, VideoMonitorPrivate))
-enum {
- VIDEO_MONITOR_DUMMY_PROPERTY
-};
-Workers* workers_new (guint max_threads, gboolean exclusive);
-Workers* workers_construct (GType object_type, guint max_threads, gboolean exclusive);
+Workers* workers_new (guint max_threads,
+ gboolean exclusive);
+Workers* workers_construct (GType object_type,
+ guint max_threads,
+ gboolean exclusive);
#define VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE 5
VideoMonitor* video_monitor_new (GCancellable* cancellable);
-VideoMonitor* video_monitor_construct (GType object_type, GCancellable* cancellable);
+VideoMonitor* video_monitor_construct (GType object_type,
+ GCancellable* cancellable);
GType video_source_collection_get_type (void) G_GNUC_CONST;
-MediaMonitor* media_monitor_construct (GType object_type, MediaSourceCollection* sources, GCancellable* cancellable);
+MediaMonitor* media_monitor_construct (GType object_type,
+ MediaSourceCollection* sources,
+ GCancellable* cancellable);
GeeCollection* data_collection_get_all (DataCollection* self);
gboolean video_get_is_interpretable (Video* self);
-void video_monitor_set_check_interpretable (VideoMonitor* self, Video* video, gboolean check);
-static MonitorableUpdates* video_monitor_real_create_updates (MediaMonitor* base, Monitorable* monitorable);
+void video_monitor_set_check_interpretable (VideoMonitor* self,
+ Video* video,
+ gboolean check);
+static MonitorableUpdates* video_monitor_real_create_updates (MediaMonitor* base,
+ Monitorable* monitorable);
static MediaSourceCollection* video_monitor_real_get_media_source_collection (MediaMonitor* base);
-static gboolean video_monitor_real_is_file_represented (MediaMonitor* base, GFile* file);
+static gboolean video_monitor_real_is_file_represented (MediaMonitor* base,
+ GFile* file);
GType video_source_collection_state_get_type (void) G_GNUC_CONST;
-static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSourceCollectionState* state);
-static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (MediaMonitor* base, GFile* file, GFileInfo* info, Monitorable* * monitorable);
-static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonitor* base, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_);
-void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self, GFileInfo* info, GeeCollection* matching_master);
-static gboolean video_monitor_real_notify_file_created (MediaMonitor* base, GFile* file, GFileInfo* info);
-void media_monitor_update_online (MediaMonitor* self, Monitorable* monitorable);
-static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, GFile* old_file, GFile* new_file, GFileInfo* new_file_info);
-void media_monitor_update_master_file (MediaMonitor* self, Monitorable* monitorable, GFile* file);
-void media_monitor_update_offline (MediaMonitor* self, Monitorable* monitorable);
-static gboolean video_monitor_real_notify_file_altered (MediaMonitor* base, GFile* file);
-static gboolean video_monitor_real_notify_file_attributes_altered (MediaMonitor* base, GFile* file);
-void media_monitor_update_master_file_info_altered (MediaMonitor* self, Monitorable* monitorable);
-void media_monitor_update_master_file_in_alteration (MediaMonitor* self, Monitorable* monitorable, gboolean in_alteration);
-static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonitor* base, GFile* file, GFileInfo* info);
-void media_monitor_update_master_file_alterations_completed (MediaMonitor* self, Monitorable* monitorable, GFileInfo* info);
-static gboolean video_monitor_real_notify_file_deleted (MediaMonitor* base, GFile* file);
+static Video* video_monitor_get_state (VideoMonitor* self,
+ GFile* file,
+ VideoSourceCollectionState* state);
+static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info,
+ Monitorable* * monitorable);
+static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info,
+ MediaMonitorDiscoveredFile* _result_);
+void video_source_collection_fetch_by_matching_backing (VideoSourceCollection* self,
+ GFileInfo* info,
+ GeeCollection* matching_master);
+static gboolean video_monitor_real_notify_file_created (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info);
+void media_monitor_update_online (MediaMonitor* self,
+ Monitorable* monitorable);
+static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base,
+ GFile* old_file,
+ GFile* new_file,
+ GFileInfo* new_file_info);
+void media_monitor_update_master_file (MediaMonitor* self,
+ Monitorable* monitorable,
+ GFile* file);
+void media_monitor_update_offline (MediaMonitor* self,
+ Monitorable* monitorable);
+static gboolean video_monitor_real_notify_file_altered (MediaMonitor* base,
+ GFile* file);
+static gboolean video_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
+ GFile* file);
+void media_monitor_update_master_file_info_altered (MediaMonitor* self,
+ Monitorable* monitorable);
+void media_monitor_update_master_file_in_alteration (MediaMonitor* self,
+ Monitorable* monitorable,
+ gboolean in_alteration);
+static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info);
+void media_monitor_update_master_file_alterations_completed (MediaMonitor* self,
+ Monitorable* monitorable,
+ GFileInfo* info);
+static gboolean video_monitor_real_notify_file_deleted (MediaMonitor* base,
+ GFile* file);
GeeCollection* media_monitor_get_monitorables (MediaMonitor* self);
-VideoUpdates* video_monitor_get_existing_video_updates (VideoMonitor* self, Video* video);
+VideoUpdates* video_monitor_get_existing_video_updates (VideoMonitor* self,
+ Video* video);
GFile* monitorable_updates_get_master_file (MonitorableUpdates* self);
GFile* media_source_get_master_file (MediaSource* self);
-Video* video_source_collection_get_state_by_file (VideoSourceCollection* self, GFile* file, VideoSourceCollectionState* state);
-VideoUpdates* video_monitor_fetch_video_updates (VideoMonitor* self, Video* video);
-MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self, Monitorable* monitorable);
-MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self, Monitorable* monitorable);
-static void video_monitor_real_process_updates (MediaMonitor* base, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error);
-void media_monitor_process_updates (MediaMonitor* self, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error);
+Video* video_source_collection_get_state_by_file (VideoSourceCollection* self,
+ GFile* file,
+ VideoSourceCollectionState* state);
+VideoUpdates* video_monitor_fetch_video_updates (VideoMonitor* self,
+ Video* video);
+MonitorableUpdates* media_monitor_fetch_updates (MediaMonitor* self,
+ Monitorable* monitorable);
+MonitorableUpdates* media_monitor_get_existing_updates (MediaMonitor* self,
+ Monitorable* monitorable);
+static void video_monitor_real_process_updates (MediaMonitor* base,
+ GeeCollection* all_updates,
+ TransactionController* controller,
+ gint* op_count,
+ GError** error);
+void media_monitor_process_updates (MediaMonitor* self,
+ GeeCollection* all_updates,
+ TransactionController* controller,
+ gint* op_count,
+ GError** error);
#define MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE 100
void media_monitor_mdbg (const gchar* msg);
void video_notify_offline_thumbs_regenerated (void);
gpointer background_job_ref (gpointer instance);
void background_job_unref (gpointer instance);
-GParamSpec* param_spec_background_job (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_background_job (GValue* value, gpointer v_object);
-void value_take_background_job (GValue* value, gpointer v_object);
+GParamSpec* param_spec_background_job (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_background_job (GValue* value,
+ gpointer v_object);
+void value_take_background_job (GValue* value,
+ gpointer v_object);
gpointer value_get_background_job (const GValue* value);
GType background_job_get_type (void) G_GNUC_CONST;
-void workers_enqueue (Workers* self, BackgroundJob* job);
-static void video_monitor_on_interpretable_check_complete (VideoMonitor* self, BackgroundJob* j);
-static void _video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job, gpointer self);
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_new (Video* video, CompletionCallback callback, void* callback_target);
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_construct (GType object_type, Video* video, CompletionCallback callback, void* callback_target);
+void workers_enqueue (Workers* self,
+ BackgroundJob* job);
+static void video_monitor_on_interpretable_check_complete (VideoMonitor* self,
+ BackgroundJob* j);
+static void _video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job,
+ gpointer self);
+static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_new (Video* video,
+ CompletionCallback callback,
+ void* callback_target);
+static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_construct (GType object_type,
+ Video* video,
+ CompletionCallback callback,
+ void* callback_target);
static GType video_monitor_video_interpretable_check_job_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
GType background_job_job_priority_get_type (void) G_GNUC_CONST;
gpointer video_interpretable_results_ref (gpointer instance);
void video_interpretable_results_unref (gpointer instance);
-GParamSpec* video_param_spec_interpretable_results (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void video_value_set_interpretable_results (GValue* value, gpointer v_object);
-void video_value_take_interpretable_results (GValue* value, gpointer v_object);
+GParamSpec* video_param_spec_interpretable_results (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void video_value_set_interpretable_results (GValue* value,
+ gpointer v_object);
+void video_value_take_interpretable_results (GValue* value,
+ gpointer v_object);
gpointer video_value_get_interpretable_results (const GValue* value);
GType video_interpretable_results_get_type (void) G_GNUC_CONST;
void video_interpretable_results_foreground_finish (VideoInterpretableResults* self);
void video_notify_normal_thumbs_regenerated (void);
-enum {
- VIDEO_MONITOR_VIDEO_INTERPRETABLE_CHECK_JOB_DUMMY_PROPERTY
-};
gpointer abstract_semaphore_ref (gpointer instance);
void abstract_semaphore_unref (gpointer instance);
-GParamSpec* param_spec_abstract_semaphore (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void value_set_abstract_semaphore (GValue* value, gpointer v_object);
-void value_take_abstract_semaphore (GValue* value, gpointer v_object);
+GParamSpec* param_spec_abstract_semaphore (const gchar* name,
+ const gchar* nick,
+ const gchar* blurb,
+ GType object_type,
+ GParamFlags flags);
+void value_set_abstract_semaphore (GValue* value,
+ gpointer v_object);
+void value_take_abstract_semaphore (GValue* value,
+ gpointer v_object);
gpointer value_get_abstract_semaphore (const GValue* value);
GType abstract_semaphore_get_type (void) G_GNUC_CONST;
-BackgroundJob* background_job_construct (GType object_type, GObject* owner, CompletionCallback callback, void* callback_target, GCancellable* cancellable, CancellationCallback cancellation, void* cancellation_target, AbstractSemaphore* completion_semaphore);
+BackgroundJob* background_job_construct (GType object_type,
+ GObject* owner,
+ CompletionCallback callback,
+ void* callback_target,
+ GCancellable* cancellable,
+ CancellationCallback cancellation,
+ void* cancellation_target,
+ AbstractSemaphore* completion_semaphore);
static void video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base);
VideoInterpretableResults* video_check_is_interpretable (Video* self);
static void video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj);
static void video_monitor_finalize (GObject * obj);
-static gpointer _g_object_ref0 (gpointer self) {
+static gpointer
+_g_object_ref0 (gpointer self)
+{
#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self ? g_object_ref (self) : NULL;
-#line 548 "VideoMonitor.c"
+#line 661 "VideoMonitor.c"
}
-VideoUpdates* video_updates_construct (GType object_type, Video* video) {
+VideoUpdates*
+video_updates_construct (GType object_type,
+ Video* video)
+{
VideoUpdates* self = NULL;
Video* _tmp0_;
- Video* _tmp1_;
- Video* _tmp2_;
#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO (video), NULL);
#line 13 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video;
-#line 13 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE, Monitorable));
-#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video;
+ self = (VideoUpdates*) monitorable_updates_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _g_object_ref0 (_tmp1_);
+ _tmp0_ = _g_object_ref0 (video);
#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (self->video);
#line 15 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->video = _tmp2_;
+ self->video = _tmp0_;
#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self;
-#line 573 "VideoMonitor.c"
+#line 683 "VideoMonitor.c"
}
-VideoUpdates* video_updates_new (Video* video) {
+VideoUpdates*
+video_updates_new (Video* video)
+{
#line 12 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return video_updates_construct (TYPE_VIDEO_UPDATES, video);
-#line 580 "VideoMonitor.c"
+#line 692 "VideoMonitor.c"
}
-static void video_updates_real_set_check_interpretable (VideoUpdates* self, gboolean check) {
- gboolean _tmp0_;
-#line 19 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = check;
+static void
+video_updates_real_set_check_interpretable (VideoUpdates* self,
+ gboolean check)
+{
#line 19 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->check_interpretable = _tmp0_;
-#line 590 "VideoMonitor.c"
+ self->priv->check_interpretable = check;
+#line 702 "VideoMonitor.c"
}
-void video_updates_set_check_interpretable (VideoUpdates* self, gboolean check) {
+void
+video_updates_set_check_interpretable (VideoUpdates* self,
+ gboolean check)
+{
#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_VIDEO_UPDATES (self));
#line 18 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
VIDEO_UPDATES_GET_CLASS (self)->set_check_interpretable (self, check);
-#line 599 "VideoMonitor.c"
+#line 714 "VideoMonitor.c"
}
-static void video_updates_real_mark_online (MonitorableUpdates* base) {
+static void
+video_updates_real_mark_online (MonitorableUpdates* base)
+{
VideoUpdates * self;
#line 22 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_UPDATES, VideoUpdates);
@@ -607,11 +724,13 @@ static void video_updates_real_mark_online (MonitorableUpdates* base) {
MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->mark_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
#line 25 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_updates_set_check_interpretable (self, TRUE);
-#line 611 "VideoMonitor.c"
+#line 728 "VideoMonitor.c"
}
-gboolean video_updates_is_check_interpretable (VideoUpdates* self) {
+gboolean
+video_updates_is_check_interpretable (VideoUpdates* self)
+{
gboolean result = FALSE;
gboolean _tmp0_;
#line 28 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -622,11 +741,13 @@ gboolean video_updates_is_check_interpretable (VideoUpdates* self) {
result = _tmp0_;
#line 29 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 626 "VideoMonitor.c"
+#line 745 "VideoMonitor.c"
}
-static gboolean video_updates_real_is_all_updated (MonitorableUpdates* base) {
+static gboolean
+video_updates_real_is_all_updated (MonitorableUpdates* base)
+{
VideoUpdates * self;
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
@@ -637,27 +758,25 @@ static gboolean video_updates_real_is_all_updated (MonitorableUpdates* base) {
_tmp1_ = self->priv->check_interpretable;
#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
if (_tmp1_ == FALSE) {
-#line 641 "VideoMonitor.c"
- gboolean _tmp2_;
#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
-#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = _tmp2_;
-#line 647 "VideoMonitor.c"
+ _tmp0_ = MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->is_all_updated (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
+#line 764 "VideoMonitor.c"
} else {
#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_tmp0_ = FALSE;
-#line 651 "VideoMonitor.c"
+#line 768 "VideoMonitor.c"
}
#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = _tmp0_;
#line 33 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 657 "VideoMonitor.c"
+#line 774 "VideoMonitor.c"
}
-static void video_updates_class_init (VideoUpdatesClass * klass) {
+static void
+video_updates_class_init (VideoUpdatesClass * klass)
+{
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_updates_parent_class = g_type_class_peek_parent (klass);
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -670,20 +789,24 @@ static void video_updates_class_init (VideoUpdatesClass * klass) {
((MonitorableUpdatesClass *) klass)->mark_online = (void (*) (MonitorableUpdates *)) video_updates_real_mark_online;
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
((MonitorableUpdatesClass *) klass)->is_all_updated = (gboolean (*) (MonitorableUpdates *)) video_updates_real_is_all_updated;
-#line 674 "VideoMonitor.c"
+#line 793 "VideoMonitor.c"
}
-static void video_updates_instance_init (VideoUpdates * self) {
+static void
+video_updates_instance_init (VideoUpdates * self)
+{
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->priv = VIDEO_UPDATES_GET_PRIVATE (self);
#line 10 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->priv->check_interpretable = FALSE;
-#line 683 "VideoMonitor.c"
+#line 804 "VideoMonitor.c"
}
-static void video_updates_finalize (MonitorableUpdates * obj) {
+static void
+video_updates_finalize (MonitorableUpdates * obj)
+{
VideoUpdates * self;
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_UPDATES, VideoUpdates);
@@ -691,11 +814,13 @@ static void video_updates_finalize (MonitorableUpdates * obj) {
_g_object_unref0 (self->video);
#line 7 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
MONITORABLE_UPDATES_CLASS (video_updates_parent_class)->finalize (obj);
-#line 695 "VideoMonitor.c"
+#line 818 "VideoMonitor.c"
}
-GType video_updates_get_type (void) {
+GType
+video_updates_get_type (void)
+{
static volatile gsize video_updates_type_id__volatile = 0;
if (g_once_init_enter (&video_updates_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (VideoUpdatesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_updates_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoUpdates), 0, (GInstanceInitFunc) video_updates_instance_init, NULL };
@@ -707,151 +832,148 @@ GType video_updates_get_type (void) {
}
-VideoMonitor* video_monitor_construct (GType object_type, GCancellable* cancellable) {
+VideoMonitor*
+video_monitor_construct (GType object_type,
+ GCancellable* cancellable)
+{
VideoMonitor * self = NULL;
VideoSourceCollection* _tmp0_;
- GCancellable* _tmp1_;
#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), NULL);
#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_tmp0_ = video_global;
#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = cancellable;
-#line 66 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), _tmp1_);
-#line 723 "VideoMonitor.c"
+ self = (VideoMonitor*) media_monitor_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MEDIA_SOURCE_COLLECTION, MediaSourceCollection), cancellable);
+#line 848 "VideoMonitor.c"
{
GeeIterator* _obj_it = NULL;
- VideoSourceCollection* _tmp2_;
+ VideoSourceCollection* _tmp1_;
+ GeeCollection* _tmp2_;
GeeCollection* _tmp3_;
- GeeCollection* _tmp4_;
+ GeeIterator* _tmp4_;
GeeIterator* _tmp5_;
- GeeIterator* _tmp6_;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_global;
+ _tmp1_ = video_global;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DATA_COLLECTION, DataCollection));
+ _tmp2_ = data_collection_get_all (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_DATA_COLLECTION, DataCollection));
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _tmp3_;
+ _tmp3_ = _tmp2_;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp4_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, GEE_TYPE_ITERABLE, GeeIterable));
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _tmp5_;
+ _tmp5_ = _tmp4_;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp4_);
+ _g_object_unref0 (_tmp3_);
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _obj_it = _tmp6_;
+ _obj_it = _tmp5_;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
while (TRUE) {
-#line 747 "VideoMonitor.c"
- GeeIterator* _tmp7_;
- gboolean _tmp8_;
+#line 872 "VideoMonitor.c"
+ GeeIterator* _tmp6_;
DataObject* obj = NULL;
- GeeIterator* _tmp9_;
- gpointer _tmp10_;
+ GeeIterator* _tmp7_;
+ gpointer _tmp8_;
Video* video = NULL;
- DataObject* _tmp11_;
+ DataObject* _tmp9_;
+ Video* _tmp10_;
+ Video* _tmp11_;
Video* _tmp12_;
- Video* _tmp13_;
- Video* _tmp14_;
- gboolean _tmp15_;
-#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = _obj_it;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = gee_iterator_next (_tmp7_);
+ _tmp6_ = _obj_it;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!_tmp8_) {
+ if (!gee_iterator_next (_tmp6_)) {
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 767 "VideoMonitor.c"
+#line 888 "VideoMonitor.c"
}
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = _obj_it;
+ _tmp7_ = _obj_it;
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = gee_iterator_get (_tmp9_);
+ _tmp8_ = gee_iterator_get (_tmp7_);
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- obj = (DataObject*) _tmp10_;
+ obj = (DataObject*) _tmp8_;
#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = obj;
+ _tmp9_ = obj;
#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, TYPE_VIDEO) ? ((Video*) _tmp11_) : NULL);
+ _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO) ? ((Video*) _tmp9_) : NULL);
#line 69 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp12_;
+ video = _tmp10_;
#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = video;
+ _tmp11_ = video;
#line 70 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (_tmp13_ != NULL, "video != null");
-#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = video;
+ _vala_assert (_tmp11_ != NULL, "video != null");
#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = video_get_is_interpretable (_tmp14_);
+ _tmp12_ = video;
#line 71 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!_tmp15_) {
-#line 791 "VideoMonitor.c"
- Video* _tmp16_;
+ if (!video_get_is_interpretable (_tmp12_)) {
+#line 910 "VideoMonitor.c"
+ Video* _tmp13_;
#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = video;
+ _tmp13_ = video;
#line 72 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp16_, TRUE);
-#line 797 "VideoMonitor.c"
+ video_monitor_set_check_interpretable (self, _tmp13_, TRUE);
+#line 916 "VideoMonitor.c"
}
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (obj);
-#line 803 "VideoMonitor.c"
+#line 922 "VideoMonitor.c"
}
#line 68 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_obj_it);
-#line 807 "VideoMonitor.c"
+#line 926 "VideoMonitor.c"
}
#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self;
-#line 811 "VideoMonitor.c"
+#line 930 "VideoMonitor.c"
}
-VideoMonitor* video_monitor_new (GCancellable* cancellable) {
+VideoMonitor*
+video_monitor_new (GCancellable* cancellable)
+{
#line 65 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return video_monitor_construct (TYPE_VIDEO_MONITOR, cancellable);
-#line 818 "VideoMonitor.c"
+#line 939 "VideoMonitor.c"
}
-static MonitorableUpdates* video_monitor_real_create_updates (MediaMonitor* base, Monitorable* monitorable) {
+static MonitorableUpdates*
+video_monitor_real_create_updates (MediaMonitor* base,
+ Monitorable* monitorable)
+{
VideoMonitor * self;
MonitorableUpdates* result = NULL;
- Monitorable* _tmp0_;
- Monitorable* _tmp1_;
- VideoUpdates* _tmp2_;
+ VideoUpdates* _tmp0_;
#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 76 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_MONITORABLE (monitorable), NULL);
#line 77 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = monitorable;
-#line 77 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO), "monitorable is Video");
+ _vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (monitorable, TYPE_VIDEO), "monitorable is Video");
#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = monitorable;
+ _tmp0_ = video_updates_new (G_TYPE_CHECK_INSTANCE_CAST (monitorable, TYPE_VIDEO, Video));
#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_updates_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, TYPE_VIDEO, Video));
-#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates);
+ result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates);
#line 79 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 844 "VideoMonitor.c"
+#line 962 "VideoMonitor.c"
}
-static gpointer _data_collection_ref0 (gpointer self) {
+static gpointer
+_data_collection_ref0 (gpointer self)
+{
#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self ? data_collection_ref (self) : NULL;
-#line 851 "VideoMonitor.c"
+#line 971 "VideoMonitor.c"
}
-static MediaSourceCollection* video_monitor_real_get_media_source_collection (MediaMonitor* base) {
+static MediaSourceCollection*
+video_monitor_real_get_media_source_collection (MediaMonitor* base)
+{
VideoMonitor * self;
MediaSourceCollection* result = NULL;
VideoSourceCollection* _tmp0_;
@@ -866,54 +988,58 @@ static MediaSourceCollection* video_monitor_real_get_media_source_collection (Me
result = _tmp1_;
#line 83 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 870 "VideoMonitor.c"
+#line 992 "VideoMonitor.c"
}
-static gboolean video_monitor_real_is_file_represented (MediaMonitor* base, GFile* file) {
+static gboolean
+video_monitor_real_is_file_represented (MediaMonitor* base,
+ GFile* file)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
- Video* _tmp3_;
- gboolean _tmp4_;
+ gboolean _tmp3_;
#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 86 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_;
+ _tmp2_ = _tmp1_;
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _tmp3_ != NULL;
+ _tmp3_ = _tmp2_ != NULL;
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp3_);
+ _g_object_unref0 (_tmp2_);
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp4_;
+ result = _tmp3_;
#line 88 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 903 "VideoMonitor.c"
+#line 1025 "VideoMonitor.c"
}
-static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (MediaMonitor* base, GFile* file, GFileInfo* info, Monitorable* * monitorable) {
+static MediaMonitorDiscoveredFile
+video_monitor_real_notify_file_discovered (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info,
+ Monitorable* * monitorable)
+{
VideoMonitor * self;
Monitorable* _vala_monitorable = NULL;
MediaMonitorDiscoveredFile result = 0;
VideoSourceCollectionState state = 0;
Video* video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
- Video* _tmp3_;
- VideoSourceCollectionState _tmp4_;
+ VideoSourceCollectionState _tmp3_;
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -921,17 +1047,15 @@ static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (Med
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 94 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp2_;
+ video = _tmp1_;
#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
+ _tmp2_ = video;
#line 95 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp3_ == NULL) {
+ if (_tmp2_ == NULL) {
#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
#line 96 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -944,36 +1068,36 @@ static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (Med
if (monitorable) {
#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*monitorable = _vala_monitorable;
-#line 948 "VideoMonitor.c"
+#line 1072 "VideoMonitor.c"
} else {
#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
-#line 952 "VideoMonitor.c"
+#line 1076 "VideoMonitor.c"
}
#line 98 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 956 "VideoMonitor.c"
+#line 1080 "VideoMonitor.c"
}
#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = state;
+ _tmp3_ = state;
#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- switch (_tmp4_) {
+ switch (_tmp3_) {
#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
case VIDEO_SOURCE_COLLECTION_STATE_ONLINE:
#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
case VIDEO_SOURCE_COLLECTION_STATE_OFFLINE:
-#line 966 "VideoMonitor.c"
+#line 1090 "VideoMonitor.c"
{
- Video* _tmp5_;
- Monitorable* _tmp6_;
+ Video* _tmp4_;
+ Monitorable* _tmp5_;
#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = video;
+ _tmp4_ = video;
#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MONITORABLE, Monitorable));
+ _tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
#line 104 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_monitorable = _tmp6_;
+ _vala_monitorable = _tmp5_;
#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = MEDIA_MONITOR_DISCOVERED_FILE_REPRESENTED;
#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -982,20 +1106,20 @@ static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (Med
if (monitorable) {
#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*monitorable = _vala_monitorable;
-#line 986 "VideoMonitor.c"
+#line 1110 "VideoMonitor.c"
} else {
#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
-#line 990 "VideoMonitor.c"
+#line 1114 "VideoMonitor.c"
}
#line 106 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 994 "VideoMonitor.c"
+#line 1118 "VideoMonitor.c"
}
default:
#line 101 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
case VIDEO_SOURCE_COLLECTION_STATE_TRASH:
-#line 999 "VideoMonitor.c"
+#line 1123 "VideoMonitor.c"
{
#line 111 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
@@ -1009,15 +1133,15 @@ static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (Med
if (monitorable) {
#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*monitorable = _vala_monitorable;
-#line 1013 "VideoMonitor.c"
+#line 1137 "VideoMonitor.c"
} else {
#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
-#line 1017 "VideoMonitor.c"
+#line 1141 "VideoMonitor.c"
}
#line 113 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1021 "VideoMonitor.c"
+#line 1145 "VideoMonitor.c"
}
}
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1026,23 +1150,27 @@ static MediaMonitorDiscoveredFile video_monitor_real_notify_file_discovered (Med
if (monitorable) {
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*monitorable = _vala_monitorable;
-#line 1030 "VideoMonitor.c"
+#line 1154 "VideoMonitor.c"
} else {
#line 91 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_vala_monitorable);
-#line 1034 "VideoMonitor.c"
+#line 1158 "VideoMonitor.c"
}
}
-static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonitor* base, GFile* file, GFileInfo* info, MediaMonitorDiscoveredFile* _result_) {
+static GeeCollection*
+video_monitor_real_candidates_for_unknown_file (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info,
+ MediaMonitorDiscoveredFile* _result_)
+{
VideoMonitor * self;
MediaMonitorDiscoveredFile _vala_result = 0;
GeeCollection* result = NULL;
GeeCollection* matched = NULL;
GeeArrayList* _tmp0_;
VideoSourceCollection* _tmp1_;
- GFileInfo* _tmp2_;
#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 117 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1056,9 +1184,7 @@ static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonit
#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_tmp1_ = video_global;
#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = info;
-#line 120 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_source_collection_fetch_by_matching_backing (_tmp1_, _tmp2_, matched);
+ video_source_collection_fetch_by_matching_backing (_tmp1_, info, matched);
#line 122 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_vala_result = MEDIA_MONITOR_DISCOVERED_FILE_UNKNOWN;
#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1067,24 +1193,27 @@ static GeeCollection* video_monitor_real_candidates_for_unknown_file (MediaMonit
if (_result_) {
#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*_result_ = _vala_result;
-#line 1071 "VideoMonitor.c"
+#line 1197 "VideoMonitor.c"
}
#line 124 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1075 "VideoMonitor.c"
+#line 1201 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_created (MediaMonitor* base, GFile* file, GFileInfo* info) {
+static gboolean
+video_monitor_real_notify_file_created (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
Video* video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
Video* _tmp3_;
- Video* _tmp4_;
#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1092,54 +1221,55 @@ static gboolean video_monitor_real_notify_file_created (MediaMonitor* base, GFil
#line 127 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 129 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp2_;
+ video = _tmp1_;
#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
+ _tmp2_ = video;
#line 130 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp3_ == NULL) {
+ if (_tmp2_ == NULL) {
#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = FALSE;
#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 131 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1113 "VideoMonitor.c"
+#line 1240 "VideoMonitor.c"
}
#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
+ _tmp3_ = video;
#line 133 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
+ media_monitor_update_online (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable));
#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = TRUE;
#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 135 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1125 "VideoMonitor.c"
+#line 1252 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, GFile* old_file, GFile* new_file, GFileInfo* new_file_info) {
+static gboolean
+video_monitor_real_notify_file_moved (MediaMonitor* base,
+ GFile* old_file,
+ GFile* new_file,
+ GFileInfo* new_file_info)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState old_state = 0;
Video* old_video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
- Video* _tmp2_;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
VideoSourceCollectionState new_state = 0;
Video* new_video = NULL;
- GFile* _tmp3_;
- VideoSourceCollectionState _tmp4_ = 0;
+ VideoSourceCollectionState _tmp2_ = 0;
+ Video* _tmp3_;
+ gboolean _tmp4_ = FALSE;
Video* _tmp5_;
- gboolean _tmp6_ = FALSE;
- Video* _tmp7_;
#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1149,98 +1279,91 @@ static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, GFile*
#line 138 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE_INFO (new_file_info), FALSE);
#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = old_file;
-#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, old_file, &_tmp0_);
#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- old_state = _tmp1_;
+ old_state = _tmp0_;
#line 140 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- old_video = _tmp2_;
-#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = new_file;
+ old_video = _tmp1_;
#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = video_monitor_get_state (self, _tmp3_, &_tmp4_);
+ _tmp3_ = video_monitor_get_state (self, new_file, &_tmp2_);
#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- new_state = _tmp4_;
+ new_state = _tmp2_;
#line 143 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- new_video = _tmp5_;
+ new_video = _tmp3_;
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = old_video;
+ _tmp5_ = old_video;
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp7_ != NULL) {
-#line 1172 "VideoMonitor.c"
- Video* _tmp8_;
+ if (_tmp5_ != NULL) {
+#line 1298 "VideoMonitor.c"
+ Video* _tmp6_;
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = new_video;
+ _tmp6_ = new_video;
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _tmp8_ == NULL;
-#line 1178 "VideoMonitor.c"
+ _tmp4_ = _tmp6_ == NULL;
+#line 1304 "VideoMonitor.c"
} else {
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = FALSE;
-#line 1182 "VideoMonitor.c"
+ _tmp4_ = FALSE;
+#line 1308 "VideoMonitor.c"
}
#line 157 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp6_) {
-#line 1186 "VideoMonitor.c"
- Video* _tmp9_;
- GFile* _tmp10_;
+ if (_tmp4_) {
+#line 1312 "VideoMonitor.c"
+ Video* _tmp7_;
#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = old_video;
+ _tmp7_ = old_video;
#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = new_file;
-#line 159 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, TYPE_MONITORABLE, Monitorable), _tmp10_);
-#line 1195 "VideoMonitor.c"
+ media_monitor_update_master_file (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_MONITORABLE, Monitorable), new_file);
+#line 1318 "VideoMonitor.c"
} else {
- gboolean _tmp11_ = FALSE;
- Video* _tmp12_;
+ gboolean _tmp8_ = FALSE;
+ Video* _tmp9_;
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = old_video;
+ _tmp9_ = old_video;
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp12_ == NULL) {
-#line 1203 "VideoMonitor.c"
- Video* _tmp13_;
+ if (_tmp9_ == NULL) {
+#line 1326 "VideoMonitor.c"
+ Video* _tmp10_;
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = new_video;
+ _tmp10_ = new_video;
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = _tmp13_ != NULL;
-#line 1209 "VideoMonitor.c"
+ _tmp8_ = _tmp10_ != NULL;
+#line 1332 "VideoMonitor.c"
} else {
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = FALSE;
-#line 1213 "VideoMonitor.c"
+ _tmp8_ = FALSE;
+#line 1336 "VideoMonitor.c"
}
#line 160 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp11_) {
-#line 1217 "VideoMonitor.c"
- Video* _tmp14_;
+ if (_tmp8_) {
+#line 1340 "VideoMonitor.c"
+ Video* _tmp11_;
#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = new_video;
+ _tmp11_ = new_video;
#line 162 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp14_, TRUE);
-#line 1223 "VideoMonitor.c"
+ video_monitor_set_check_interpretable (self, _tmp11_, TRUE);
+#line 1346 "VideoMonitor.c"
} else {
- gboolean _tmp15_ = FALSE;
- Video* _tmp16_;
+ gboolean _tmp12_ = FALSE;
+ Video* _tmp13_;
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = old_video;
+ _tmp13_ = old_video;
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp16_ == NULL) {
-#line 1231 "VideoMonitor.c"
- Video* _tmp17_;
+ if (_tmp13_ == NULL) {
+#line 1354 "VideoMonitor.c"
+ Video* _tmp14_;
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = new_video;
+ _tmp14_ = new_video;
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = _tmp17_ == NULL;
-#line 1237 "VideoMonitor.c"
+ _tmp12_ = _tmp14_ == NULL;
+#line 1360 "VideoMonitor.c"
} else {
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = FALSE;
-#line 1241 "VideoMonitor.c"
+ _tmp12_ = FALSE;
+#line 1364 "VideoMonitor.c"
}
#line 163 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp15_) {
+ if (_tmp12_) {
#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = FALSE;
#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1249,39 +1372,39 @@ static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, GFile*
_g_object_unref0 (old_video);
#line 165 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1253 "VideoMonitor.c"
+#line 1376 "VideoMonitor.c"
} else {
- gboolean _tmp18_ = FALSE;
+ gboolean _tmp15_ = FALSE;
+ Video* _tmp16_;
+ Video* _tmp18_;
Video* _tmp19_;
- Video* _tmp21_;
- Video* _tmp22_;
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = old_video;
+ _tmp16_ = old_video;
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp19_ != NULL) {
-#line 1263 "VideoMonitor.c"
- Video* _tmp20_;
+ if (_tmp16_ != NULL) {
+#line 1386 "VideoMonitor.c"
+ Video* _tmp17_;
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp20_ = new_video;
+ _tmp17_ = new_video;
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = _tmp20_ != NULL;
-#line 1269 "VideoMonitor.c"
+ _tmp15_ = _tmp17_ != NULL;
+#line 1392 "VideoMonitor.c"
} else {
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = FALSE;
-#line 1273 "VideoMonitor.c"
+ _tmp15_ = FALSE;
+#line 1396 "VideoMonitor.c"
}
#line 167 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_assert (_tmp18_, "old_video != null && new_video != null");
+ _vala_assert (_tmp15_, "old_video != null && new_video != null");
#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp21_ = old_video;
+ _tmp18_ = old_video;
#line 170 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, TYPE_MONITORABLE, Monitorable));
+ media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MONITORABLE, Monitorable));
#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = new_video;
+ _tmp19_ = new_video;
#line 171 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_monitor_set_check_interpretable (self, _tmp22_, TRUE);
-#line 1285 "VideoMonitor.c"
+ video_monitor_set_check_interpretable (self, _tmp19_, TRUE);
+#line 1408 "VideoMonitor.c"
}
}
}
@@ -1293,107 +1416,109 @@ static gboolean video_monitor_real_notify_file_moved (MediaMonitor* base, GFile*
_g_object_unref0 (old_video);
#line 174 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1297 "VideoMonitor.c"
+#line 1420 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_altered (MediaMonitor* base, GFile* file) {
+static gboolean
+video_monitor_real_notify_file_altered (MediaMonitor* base,
+ GFile* file)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
- Video* _tmp3_;
- gboolean _tmp4_;
+ gboolean _tmp3_;
#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 177 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_;
+ _tmp2_ = _tmp1_;
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _tmp3_ != NULL;
+ _tmp3_ = _tmp2_ != NULL;
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp3_);
+ _g_object_unref0 (_tmp2_);
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp4_;
+ result = _tmp3_;
#line 179 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1330 "VideoMonitor.c"
+#line 1453 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_attributes_altered (MediaMonitor* base, GFile* file) {
+static gboolean
+video_monitor_real_notify_file_attributes_altered (MediaMonitor* base,
+ GFile* file)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
Video* video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
Video* _tmp3_;
Video* _tmp4_;
- Video* _tmp5_;
#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 182 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ state = _tmp0_;
#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
-#line 184 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp2_;
+ video = _tmp1_;
#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
+ _tmp2_ = video;
#line 185 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp3_ == NULL) {
+ if (_tmp2_ == NULL) {
#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = FALSE;
#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 186 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1367 "VideoMonitor.c"
+#line 1490 "VideoMonitor.c"
}
#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
+ _tmp3_ = video;
#line 188 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
+ media_monitor_update_master_file_info_altered (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable));
#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = video;
+ _tmp4_ = video;
#line 189 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MONITORABLE, Monitorable), TRUE);
+ media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), TRUE);
#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = TRUE;
#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 191 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1383 "VideoMonitor.c"
+#line 1506 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonitor* base, GFile* file, GFileInfo* info) {
+static gboolean
+video_monitor_real_notify_file_alteration_completed (MediaMonitor* base,
+ GFile* file,
+ GFileInfo* info)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
Video* video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
Video* _tmp3_;
- Video* _tmp4_;
- GFileInfo* _tmp5_;
#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1401,110 +1526,110 @@ static gboolean video_monitor_real_notify_file_alteration_completed (MediaMonito
#line 194 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 196 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp2_;
+ video = _tmp1_;
#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
+ _tmp2_ = video;
#line 197 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp3_ == NULL) {
+ if (_tmp2_ == NULL) {
#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = FALSE;
#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 198 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1422 "VideoMonitor.c"
+#line 1545 "VideoMonitor.c"
}
#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
-#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = info;
+ _tmp3_ = video;
#line 200 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), _tmp5_);
+ media_monitor_update_master_file_alterations_completed (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), info);
#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = TRUE;
#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 202 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1436 "VideoMonitor.c"
+#line 1557 "VideoMonitor.c"
}
-static gboolean video_monitor_real_notify_file_deleted (MediaMonitor* base, GFile* file) {
+static gboolean
+video_monitor_real_notify_file_deleted (MediaMonitor* base,
+ GFile* file)
+{
VideoMonitor * self;
gboolean result = FALSE;
VideoSourceCollectionState state = 0;
Video* video = NULL;
- GFile* _tmp0_;
- VideoSourceCollectionState _tmp1_ = 0;
+ VideoSourceCollectionState _tmp0_ = 0;
+ Video* _tmp1_;
Video* _tmp2_;
Video* _tmp3_;
Video* _tmp4_;
- Video* _tmp5_;
#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
#line 205 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE (file), FALSE);
#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = file;
-#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video_monitor_get_state (self, _tmp0_, &_tmp1_);
+ _tmp1_ = video_monitor_get_state (self, file, &_tmp0_);
#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- state = _tmp1_;
+ state = _tmp0_;
#line 207 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp2_;
+ video = _tmp1_;
#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = video;
+ _tmp2_ = video;
#line 208 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp3_ == NULL) {
+ if (_tmp2_ == NULL) {
#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = FALSE;
#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 209 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1473 "VideoMonitor.c"
+#line 1594 "VideoMonitor.c"
}
#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = video;
+ _tmp3_ = video;
#line 211 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable), FALSE);
+ media_monitor_update_master_file_in_alteration (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, TYPE_MONITORABLE, Monitorable), FALSE);
#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = video;
+ _tmp4_ = video;
#line 212 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, TYPE_MONITORABLE, Monitorable));
+ media_monitor_update_offline (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, TYPE_MONITORABLE, Monitorable));
#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = TRUE;
#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
#line 214 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1489 "VideoMonitor.c"
+#line 1610 "VideoMonitor.c"
}
-static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSourceCollectionState* state) {
+static Video*
+video_monitor_get_state (VideoMonitor* self,
+ GFile* file,
+ VideoSourceCollectionState* state)
+{
VideoSourceCollectionState _vala_state = 0;
Video* result = NULL;
GFile* real_file = NULL;
- GFile* _tmp25_ = NULL;
- GFile* _tmp26_;
- VideoSourceCollection* _tmp28_;
- VideoSourceCollectionState _tmp29_ = 0;
- Video* _tmp30_;
+ GFile* _tmp22_ = NULL;
+ GFile* _tmp23_;
+ VideoSourceCollection* _tmp24_;
+ VideoSourceCollectionState _tmp25_ = 0;
+ Video* _tmp26_;
#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
#line 217 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (G_IS_FILE (file), NULL);
#line 218 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
real_file = NULL;
-#line 1508 "VideoMonitor.c"
+#line 1633 "VideoMonitor.c"
{
GeeIterator* _monitorable_it = NULL;
GeeCollection* _tmp0_;
@@ -1525,56 +1650,53 @@ static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSou
_monitorable_it = _tmp3_;
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
while (TRUE) {
-#line 1529 "VideoMonitor.c"
+#line 1654 "VideoMonitor.c"
GeeIterator* _tmp4_;
- gboolean _tmp5_;
Monitorable* monitorable = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
+ GeeIterator* _tmp5_;
+ gpointer _tmp6_;
Video* video = NULL;
- Monitorable* _tmp8_;
- Video* _tmp9_;
+ Monitorable* _tmp7_;
+ Video* _tmp8_;
VideoUpdates* updates = NULL;
- Video* _tmp10_;
+ Video* _tmp9_;
+ VideoUpdates* _tmp10_;
VideoUpdates* _tmp11_;
- VideoUpdates* _tmp12_;
- gboolean _tmp13_ = FALSE;
- VideoUpdates* _tmp14_;
+ gboolean _tmp12_ = FALSE;
+ VideoUpdates* _tmp13_;
+ GFile* _tmp14_;
GFile* _tmp15_;
- GFile* _tmp16_;
- gboolean _tmp17_;
+ gboolean _tmp16_;
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_tmp4_ = _monitorable_it;
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = gee_iterator_next (_tmp4_);
-#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!_tmp5_) {
+ if (!gee_iterator_next (_tmp4_)) {
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 1555 "VideoMonitor.c"
+#line 1677 "VideoMonitor.c"
}
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _monitorable_it;
+ _tmp5_ = _monitorable_it;
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
+ _tmp6_ = gee_iterator_get (_tmp5_);
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- monitorable = (Monitorable*) _tmp7_;
+ monitorable = (Monitorable*) _tmp6_;
#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = monitorable;
+ _tmp7_ = monitorable;
#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, TYPE_VIDEO, Video));
+ _tmp8_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_VIDEO, Video));
#line 220 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = _tmp9_;
+ video = _tmp8_;
#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = video;
+ _tmp9_ = video;
#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = video_monitor_get_existing_video_updates (self, _tmp10_);
+ _tmp10_ = video_monitor_get_existing_video_updates (self, _tmp9_);
#line 222 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp11_;
+ updates = _tmp10_;
#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = updates;
+ _tmp11_ = updates;
#line 223 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp12_ == NULL) {
+ if (_tmp11_ == NULL) {
#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (updates);
#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1583,59 +1705,53 @@ static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSou
_g_object_unref0 (monitorable);
#line 224 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
continue;
-#line 1587 "VideoMonitor.c"
+#line 1709 "VideoMonitor.c"
}
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = updates;
+ _tmp13_ = updates;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
+ _tmp14_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = _tmp15_;
+ _tmp15_ = _tmp14_;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = _tmp16_ != NULL;
+ _tmp16_ = _tmp15_ != NULL;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp16_);
+ _g_object_unref0 (_tmp15_);
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp17_) {
-#line 1601 "VideoMonitor.c"
- VideoUpdates* _tmp18_;
+ if (_tmp16_) {
+#line 1723 "VideoMonitor.c"
+ VideoUpdates* _tmp17_;
+ GFile* _tmp18_;
GFile* _tmp19_;
- GFile* _tmp20_;
- GFile* _tmp21_;
- gboolean _tmp22_;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = updates;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
+ _tmp17_ = updates;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp20_ = _tmp19_;
+ _tmp18_ = monitorable_updates_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, TYPE_MONITORABLE_UPDATES, MonitorableUpdates));
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp21_ = file;
+ _tmp19_ = _tmp18_;
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = g_file_equal (_tmp20_, _tmp21_);
+ _tmp12_ = g_file_equal (_tmp19_, file);
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = _tmp22_;
-#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_object_unref0 (_tmp20_);
-#line 1621 "VideoMonitor.c"
+ _g_object_unref0 (_tmp19_);
+#line 1737 "VideoMonitor.c"
} else {
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = FALSE;
-#line 1625 "VideoMonitor.c"
+ _tmp12_ = FALSE;
+#line 1741 "VideoMonitor.c"
}
#line 226 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp13_) {
-#line 1629 "VideoMonitor.c"
- Video* _tmp23_;
- GFile* _tmp24_;
+ if (_tmp12_) {
+#line 1745 "VideoMonitor.c"
+ Video* _tmp20_;
+ GFile* _tmp21_;
#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp23_ = video;
+ _tmp20_ = video;
#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp24_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, TYPE_MEDIA_SOURCE, MediaSource));
+ _tmp21_ = media_source_get_master_file (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, TYPE_MEDIA_SOURCE, MediaSource));
#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (real_file);
#line 227 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- real_file = _tmp24_;
+ real_file = _tmp21_;
#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (updates);
#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -1644,7 +1760,7 @@ static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSou
_g_object_unref0 (monitorable);
#line 229 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 1648 "VideoMonitor.c"
+#line 1764 "VideoMonitor.c"
}
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (updates);
@@ -1652,156 +1768,159 @@ static Video* video_monitor_get_state (VideoMonitor* self, GFile* file, VideoSou
_g_object_unref0 (video);
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (monitorable);
-#line 1656 "VideoMonitor.c"
+#line 1772 "VideoMonitor.c"
}
#line 219 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_monitorable_it);
-#line 1660 "VideoMonitor.c"
+#line 1776 "VideoMonitor.c"
}
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp26_ = real_file;
-#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp25_ = _tmp26_;
+ _tmp23_ = real_file;
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp25_ == NULL) {
-#line 1668 "VideoMonitor.c"
- GFile* _tmp27_;
+ _tmp22_ = _tmp23_;
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp27_ = file;
+ if (_tmp22_ == NULL) {
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp25_ = _tmp27_;
-#line 1674 "VideoMonitor.c"
+ _tmp22_ = file;
+#line 1786 "VideoMonitor.c"
}
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp28_ = video_global;
+ _tmp24_ = video_global;
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp30_ = video_source_collection_get_state_by_file (_tmp28_, _tmp25_, &_tmp29_);
+ _tmp26_ = video_source_collection_get_state_by_file (_tmp24_, _tmp22_, &_tmp25_);
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _vala_state = _tmp29_;
+ _vala_state = _tmp25_;
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp30_;
+ result = _tmp26_;
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (real_file);
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
if (state) {
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
*state = _vala_state;
-#line 1690 "VideoMonitor.c"
+#line 1802 "VideoMonitor.c"
}
#line 233 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1694 "VideoMonitor.c"
+#line 1806 "VideoMonitor.c"
}
-VideoUpdates* video_monitor_fetch_video_updates (VideoMonitor* self, Video* video) {
+VideoUpdates*
+video_monitor_fetch_video_updates (VideoMonitor* self,
+ Video* video)
+{
VideoUpdates* result = NULL;
VideoUpdates* updates = NULL;
- Video* _tmp0_;
- MonitorableUpdates* _tmp1_;
- VideoUpdates* _tmp2_;
+ MonitorableUpdates* _tmp0_;
+ VideoUpdates* _tmp1_;
#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
#line 236 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO (video), NULL);
#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video;
+ _tmp0_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = media_monitor_fetch_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE, Monitorable));
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL;
#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp1_) : NULL;
+ if (_tmp1_ == NULL) {
#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
-#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 1718 "VideoMonitor.c"
+ _monitorable_updates_unref0 (_tmp0_);
+#line 1830 "VideoMonitor.c"
}
#line 237 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp2_;
+ updates = _tmp1_;
#line 238 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_vala_assert (updates != NULL, "updates != null");
#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
result = updates;
#line 240 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1728 "VideoMonitor.c"
+#line 1840 "VideoMonitor.c"
}
-VideoUpdates* video_monitor_get_existing_video_updates (VideoMonitor* self, Video* video) {
+VideoUpdates*
+video_monitor_get_existing_video_updates (VideoMonitor* self,
+ Video* video)
+{
VideoUpdates* result = NULL;
- Video* _tmp0_;
- MonitorableUpdates* _tmp1_;
- VideoUpdates* _tmp2_;
+ MonitorableUpdates* _tmp0_;
+ VideoUpdates* _tmp1_;
#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO_MONITOR (self), NULL);
#line 243 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO (video), NULL);
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video;
-#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_MONITORABLE, Monitorable));
+ _tmp0_ = media_monitor_get_existing_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), G_TYPE_CHECK_INSTANCE_CAST (video, TYPE_MONITORABLE, Monitorable));
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp1_) : NULL;
+ _tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp0_) : NULL;
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp2_ == NULL) {
+ if (_tmp1_ == NULL) {
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp1_);
-#line 1751 "VideoMonitor.c"
+ _monitorable_updates_unref0 (_tmp0_);
+#line 1863 "VideoMonitor.c"
}
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- result = _tmp2_;
+ result = _tmp1_;
#line 244 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return result;
-#line 1757 "VideoMonitor.c"
+#line 1869 "VideoMonitor.c"
}
-void video_monitor_set_check_interpretable (VideoMonitor* self, Video* video, gboolean check) {
- Video* _tmp0_;
+void
+video_monitor_set_check_interpretable (VideoMonitor* self,
+ Video* video,
+ gboolean check)
+{
+ VideoUpdates* _tmp0_;
VideoUpdates* _tmp1_;
- VideoUpdates* _tmp2_;
- gboolean _tmp3_;
#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_VIDEO_MONITOR (self));
#line 247 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_VIDEO (video));
#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video;
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = video_monitor_fetch_video_updates (self, _tmp0_);
+ _tmp0_ = video_monitor_fetch_video_updates (self, video);
#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = _tmp1_;
+ _tmp1_ = _tmp0_;
#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = check;
+ video_updates_set_check_interpretable (_tmp1_, check);
#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_set_check_interpretable (_tmp2_, _tmp3_);
-#line 248 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_unref0 (_tmp2_);
-#line 1782 "VideoMonitor.c"
+ _monitorable_updates_unref0 (_tmp1_);
+#line 1892 "VideoMonitor.c"
}
-static gpointer _monitorable_updates_ref0 (gpointer self) {
+static gpointer
+_monitorable_updates_ref0 (gpointer self)
+{
#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self ? monitorable_updates_ref (self) : NULL;
-#line 1789 "VideoMonitor.c"
+#line 1901 "VideoMonitor.c"
}
-static void _video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job, gpointer self) {
+static void
+_video_monitor_on_interpretable_check_complete_completion_callback (BackgroundJob* job,
+ gpointer self)
+{
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_monitor_on_interpretable_check_complete ((VideoMonitor*) self, job);
-#line 1796 "VideoMonitor.c"
+#line 1911 "VideoMonitor.c"
}
-static void video_monitor_real_process_updates (MediaMonitor* base, GeeCollection* all_updates, TransactionController* controller, gint* op_count, GError** error) {
+static void
+video_monitor_real_process_updates (MediaMonitor* base,
+ GeeCollection* all_updates,
+ TransactionController* controller,
+ gint* op_count,
+ GError** error)
+{
VideoMonitor * self;
- GeeCollection* _tmp0_;
- TransactionController* _tmp1_;
GeeArrayList* check = NULL;
- GeeArrayList* _tmp26_;
+ GeeArrayList* _tmp20_;
GError * _inner_error_ = NULL;
#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_VIDEO_MONITOR, VideoMonitor);
@@ -1810,395 +1929,380 @@ static void video_monitor_real_process_updates (MediaMonitor* base, GeeCollectio
#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_TRANSACTION_CONTROLLER (controller));
#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = all_updates;
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = controller;
-#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- MEDIA_MONITOR_CLASS (video_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), _tmp0_, _tmp1_, op_count, &_inner_error_);
+ MEDIA_MONITOR_CLASS (video_monitor_parent_class)->process_updates (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_MEDIA_MONITOR, MediaMonitor), all_updates, controller, op_count, &_inner_error_);
#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_propagate_error (error, _inner_error_);
#line 253 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return;
-#line 1825 "VideoMonitor.c"
+#line 1940 "VideoMonitor.c"
}
#line 255 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
check = NULL;
-#line 1829 "VideoMonitor.c"
+#line 1944 "VideoMonitor.c"
{
GeeIterator* _monitorable_updates_it = NULL;
- GeeCollection* _tmp2_;
- GeeIterator* _tmp3_;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = all_updates;
+ GeeIterator* _tmp0_;
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable));
+ _tmp0_ = gee_iterable_iterator (G_TYPE_CHECK_INSTANCE_CAST (all_updates, GEE_TYPE_ITERABLE, GeeIterable));
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _monitorable_updates_it = _tmp3_;
+ _monitorable_updates_it = _tmp0_;
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
while (TRUE) {
-#line 1842 "VideoMonitor.c"
- GeeIterator* _tmp4_;
- gboolean _tmp5_;
+#line 1954 "VideoMonitor.c"
+ GeeIterator* _tmp1_;
MonitorableUpdates* monitorable_updates = NULL;
- GeeIterator* _tmp6_;
- gpointer _tmp7_;
- gint _tmp8_;
- gboolean _tmp9_ = FALSE;
- GeeArrayList* _tmp10_;
+ GeeIterator* _tmp2_;
+ gpointer _tmp3_;
+ gboolean _tmp4_ = FALSE;
+ GeeArrayList* _tmp5_;
VideoUpdates* updates = NULL;
- MonitorableUpdates* _tmp14_;
- VideoUpdates* _tmp15_;
- VideoUpdates* _tmp16_;
- VideoUpdates* _tmp17_;
- gboolean _tmp18_;
-#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = _monitorable_updates_it;
+ MonitorableUpdates* _tmp9_;
+ VideoUpdates* _tmp10_;
+ VideoUpdates* _tmp11_;
+ VideoUpdates* _tmp12_;
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = gee_iterator_next (_tmp4_);
+ _tmp1_ = _monitorable_updates_it;
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!_tmp5_) {
+ if (!gee_iterator_next (_tmp1_)) {
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 1865 "VideoMonitor.c"
+#line 1972 "VideoMonitor.c"
}
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp6_ = _monitorable_updates_it;
+ _tmp2_ = _monitorable_updates_it;
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp7_ = gee_iterator_get (_tmp6_);
+ _tmp3_ = gee_iterator_get (_tmp2_);
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- monitorable_updates = (MonitorableUpdates*) _tmp7_;
-#line 258 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp8_ = *op_count;
+ monitorable_updates = (MonitorableUpdates*) _tmp3_;
#line 258 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp8_ >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) {
+ if ((*op_count) >= MEDIA_MONITOR_MAX_OPERATIONS_PER_CYCLE) {
#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (monitorable_updates);
#line 259 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 1881 "VideoMonitor.c"
+#line 1986 "VideoMonitor.c"
}
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp10_ = check;
+ _tmp5_ = check;
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp10_ != NULL) {
-#line 1887 "VideoMonitor.c"
- GeeArrayList* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
+ if (_tmp5_ != NULL) {
+#line 1992 "VideoMonitor.c"
+ GeeArrayList* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp11_ = check;
+ _tmp6_ = check;
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp12_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp7_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp13_ = _tmp12_;
+ _tmp8_ = _tmp7_;
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = _tmp13_ >= VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE;
-#line 1899 "VideoMonitor.c"
+ _tmp4_ = _tmp8_ >= VIDEO_MONITOR_MAX_INTERPRETABLE_CHECKS_PER_CYCLE;
+#line 2004 "VideoMonitor.c"
} else {
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp9_ = FALSE;
-#line 1903 "VideoMonitor.c"
+ _tmp4_ = FALSE;
+#line 2008 "VideoMonitor.c"
}
#line 263 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp9_) {
+ if (_tmp4_) {
#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (monitorable_updates);
#line 264 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 1911 "VideoMonitor.c"
+#line 2016 "VideoMonitor.c"
}
#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp14_ = monitorable_updates;
+ _tmp9_ = monitorable_updates;
#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp15_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp14_) : NULL);
+ _tmp10_ = _monitorable_updates_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, TYPE_VIDEO_UPDATES) ? ((VideoUpdates*) _tmp9_) : NULL);
#line 266 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- updates = _tmp15_;
+ updates = _tmp10_;
#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp16_ = updates;
+ _tmp11_ = updates;
#line 267 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp16_ == NULL) {
+ if (_tmp11_ == NULL) {
#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (updates);
#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (monitorable_updates);
#line 268 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
continue;
-#line 1929 "VideoMonitor.c"
+#line 2034 "VideoMonitor.c"
}
#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp17_ = updates;
-#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp18_ = video_updates_is_check_interpretable (_tmp17_);
+ _tmp12_ = updates;
#line 270 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp18_) {
-#line 1937 "VideoMonitor.c"
- GeeArrayList* _tmp19_;
- GeeArrayList* _tmp21_;
- VideoUpdates* _tmp22_;
- Video* _tmp23_;
- VideoUpdates* _tmp24_;
- gint _tmp25_;
+ if (video_updates_is_check_interpretable (_tmp12_)) {
+#line 2040 "VideoMonitor.c"
+ GeeArrayList* _tmp13_;
+ GeeArrayList* _tmp15_;
+ VideoUpdates* _tmp16_;
+ Video* _tmp17_;
+ VideoUpdates* _tmp18_;
+ gint _tmp19_;
#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp19_ = check;
+ _tmp13_ = check;
#line 271 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp19_ == NULL) {
-#line 1948 "VideoMonitor.c"
- GeeArrayList* _tmp20_;
+ if (_tmp13_ == NULL) {
+#line 2051 "VideoMonitor.c"
+ GeeArrayList* _tmp14_;
#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp20_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
+ _tmp14_ = gee_array_list_new (TYPE_VIDEO, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (check);
#line 272 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- check = _tmp20_;
-#line 1956 "VideoMonitor.c"
+ check = _tmp14_;
+#line 2059 "VideoMonitor.c"
}
#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp21_ = check;
+ _tmp15_ = check;
#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp22_ = updates;
+ _tmp16_ = updates;
#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp23_ = _tmp22_->video;
+ _tmp17_ = _tmp16_->video;
#line 274 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp23_);
+ gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_);
#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp24_ = updates;
+ _tmp18_ = updates;
#line 275 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_updates_set_check_interpretable (_tmp24_, FALSE);
+ video_updates_set_check_interpretable (_tmp18_, FALSE);
#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp25_ = *op_count;
+ _tmp19_ = *op_count;
#line 276 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- *op_count = _tmp25_ + 1;
-#line 1974 "VideoMonitor.c"
+ *op_count = _tmp19_ + 1;
+#line 2077 "VideoMonitor.c"
}
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (updates);
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_monitorable_updates_unref0 (monitorable_updates);
-#line 1980 "VideoMonitor.c"
+#line 2083 "VideoMonitor.c"
}
#line 257 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_monitorable_updates_it);
-#line 1984 "VideoMonitor.c"
+#line 2087 "VideoMonitor.c"
}
#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp26_ = check;
+ _tmp20_ = check;
#line 280 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp26_ != NULL) {
-#line 1990 "VideoMonitor.c"
+ if (_tmp20_ != NULL) {
+#line 2093 "VideoMonitor.c"
+ GeeArrayList* _tmp21_;
+ gint _tmp22_;
+ gint _tmp23_;
+ gchar* _tmp24_;
+ gchar* _tmp25_;
+ guint64 _tmp26_;
GeeArrayList* _tmp27_;
gint _tmp28_;
gint _tmp29_;
- gchar* _tmp30_;
- gchar* _tmp31_;
- guint64 _tmp32_;
- GeeArrayList* _tmp33_;
- gint _tmp34_;
- gint _tmp35_;
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp27_ = check;
+ _tmp21_ = check;
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp22_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp29_ = _tmp28_;
+ _tmp23_ = _tmp22_;
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp30_ = g_strdup_printf ("Checking interpretable for %d videos", _tmp29_);
+ _tmp24_ = g_strdup_printf ("Checking interpretable for %d videos", _tmp23_);
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp31_ = _tmp30_;
+ _tmp25_ = _tmp24_;
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- media_monitor_mdbg (_tmp31_);
+ media_monitor_mdbg (_tmp25_);
#line 281 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _g_free0 (_tmp31_);
+ _g_free0 (_tmp25_);
#line 283 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_notify_offline_thumbs_regenerated ();
#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp32_ = self->priv->background_jobs;
+ _tmp26_ = self->priv->background_jobs;
#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp33_ = check;
+ _tmp27_ = check;
#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp34_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp28_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp35_ = _tmp34_;
+ _tmp29_ = _tmp28_;
#line 285 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->background_jobs = _tmp32_ + _tmp35_;
-#line 2026 "VideoMonitor.c"
+ self->priv->background_jobs = _tmp26_ + _tmp29_;
+#line 2129 "VideoMonitor.c"
{
GeeArrayList* _video_list = NULL;
- GeeArrayList* _tmp36_;
- GeeArrayList* _tmp37_;
+ GeeArrayList* _tmp30_;
+ GeeArrayList* _tmp31_;
gint _video_size = 0;
- GeeArrayList* _tmp38_;
- gint _tmp39_;
- gint _tmp40_;
+ GeeArrayList* _tmp32_;
+ gint _tmp33_;
+ gint _tmp34_;
gint _video_index = 0;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp36_ = check;
+ _tmp30_ = check;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp37_ = _g_object_ref0 (_tmp36_);
+ _tmp31_ = _g_object_ref0 (_tmp30_);
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_list = _tmp37_;
+ _video_list = _tmp31_;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp38_ = _video_list;
+ _tmp32_ = _video_list;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp39_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
+ _tmp33_ = gee_abstract_collection_get_size (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection));
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp40_ = _tmp39_;
+ _tmp34_ = _tmp33_;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_size = _tmp40_;
+ _video_size = _tmp34_;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_video_index = -1;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
while (TRUE) {
-#line 2054 "VideoMonitor.c"
- gint _tmp41_;
- gint _tmp42_;
- gint _tmp43_;
+#line 2157 "VideoMonitor.c"
+ gint _tmp35_;
+ gint _tmp36_;
+ gint _tmp37_;
Video* video = NULL;
- GeeArrayList* _tmp44_;
- gint _tmp45_;
- gpointer _tmp46_;
- Workers* _tmp47_;
- Video* _tmp48_;
- VideoMonitorVideoInterpretableCheckJob* _tmp49_;
- VideoMonitorVideoInterpretableCheckJob* _tmp50_;
+ GeeArrayList* _tmp38_;
+ gint _tmp39_;
+ gpointer _tmp40_;
+ Workers* _tmp41_;
+ Video* _tmp42_;
+ VideoMonitorVideoInterpretableCheckJob* _tmp43_;
+ VideoMonitorVideoInterpretableCheckJob* _tmp44_;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp41_ = _video_index;
+ _tmp35_ = _video_index;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _video_index = _tmp41_ + 1;
+ _video_index = _tmp35_ + 1;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp42_ = _video_index;
+ _tmp36_ = _video_index;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp43_ = _video_size;
+ _tmp37_ = _video_size;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (!(_tmp42_ < _tmp43_)) {
+ if (!(_tmp36_ < _tmp37_)) {
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
break;
-#line 2078 "VideoMonitor.c"
+#line 2181 "VideoMonitor.c"
}
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp44_ = _video_list;
+ _tmp38_ = _video_list;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp45_ = _video_index;
+ _tmp39_ = _video_index;
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp46_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp45_);
+ _tmp40_ = gee_abstract_list_get (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, GEE_TYPE_ABSTRACT_LIST, GeeAbstractList), _tmp39_);
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video = (Video*) _tmp46_;
+ video = (Video*) _tmp40_;
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp47_ = self->priv->workers;
+ _tmp41_ = self->priv->workers;
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp48_ = video;
+ _tmp42_ = video;
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp49_ = video_monitor_video_interpretable_check_job_new (_tmp48_, _video_monitor_on_interpretable_check_complete_completion_callback, self);
+ _tmp43_ = video_monitor_video_interpretable_check_job_new (_tmp42_, _video_monitor_on_interpretable_check_complete_completion_callback, self);
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp50_ = _tmp49_;
+ _tmp44_ = _tmp43_;
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- workers_enqueue (_tmp47_, G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, TYPE_BACKGROUND_JOB, BackgroundJob));
+ workers_enqueue (_tmp41_, G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, TYPE_BACKGROUND_JOB, BackgroundJob));
#line 287 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _background_job_unref0 (_tmp50_);
+ _background_job_unref0 (_tmp44_);
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (video);
-#line 2102 "VideoMonitor.c"
+#line 2205 "VideoMonitor.c"
}
#line 286 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (_video_list);
-#line 2106 "VideoMonitor.c"
+#line 2209 "VideoMonitor.c"
}
}
#line 251 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (check);
-#line 2111 "VideoMonitor.c"
+#line 2214 "VideoMonitor.c"
}
-static gpointer _background_job_ref0 (gpointer self) {
+static gpointer
+_background_job_ref0 (gpointer self)
+{
#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self ? background_job_ref (self) : NULL;
-#line 2118 "VideoMonitor.c"
+#line 2223 "VideoMonitor.c"
}
-static void video_monitor_on_interpretable_check_complete (VideoMonitor* self, BackgroundJob* j) {
+static void
+video_monitor_on_interpretable_check_complete (VideoMonitor* self,
+ BackgroundJob* j)
+{
VideoMonitorVideoInterpretableCheckJob* job = NULL;
- BackgroundJob* _tmp0_;
+ VideoMonitorVideoInterpretableCheckJob* _tmp0_;
VideoMonitorVideoInterpretableCheckJob* _tmp1_;
- VideoMonitorVideoInterpretableCheckJob* _tmp2_;
- VideoInterpretableResults* _tmp3_;
+ VideoInterpretableResults* _tmp2_;
+ guint64 _tmp3_;
guint64 _tmp4_;
- guint64 _tmp5_;
#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_VIDEO_MONITOR (self));
#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_if_fail (IS_BACKGROUND_JOB (j));
#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = j;
+ _tmp0_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (j, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob));
#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = _background_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob));
-#line 292 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- job = _tmp1_;
+ job = _tmp0_;
#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = job;
+ _tmp1_ = job;
#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _tmp2_->results;
+ _tmp2_ = _tmp1_->results;
#line 294 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- video_interpretable_results_foreground_finish (_tmp3_);
+ video_interpretable_results_foreground_finish (_tmp2_);
#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp4_ = self->priv->background_jobs;
+ _tmp3_ = self->priv->background_jobs;
#line 296 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->priv->background_jobs = _tmp4_ - 1;
+ self->priv->background_jobs = _tmp3_ - 1;
#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp5_ = self->priv->background_jobs;
+ _tmp4_ = self->priv->background_jobs;
#line 297 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- if (_tmp5_ <= ((guint64) 0)) {
+ if (_tmp4_ <= ((guint64) 0)) {
#line 298 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_notify_normal_thumbs_regenerated ();
-#line 2156 "VideoMonitor.c"
+#line 2261 "VideoMonitor.c"
}
#line 291 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_background_job_unref0 (job);
-#line 2160 "VideoMonitor.c"
+#line 2265 "VideoMonitor.c"
}
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_construct (GType object_type, Video* video, CompletionCallback callback, void* callback_target) {
+static VideoMonitorVideoInterpretableCheckJob*
+video_monitor_video_interpretable_check_job_construct (GType object_type,
+ Video* video,
+ CompletionCallback callback,
+ void* callback_target)
+{
VideoMonitorVideoInterpretableCheckJob* self = NULL;
Video* _tmp0_;
- CompletionCallback _tmp1_;
- void* _tmp1__target;
- Video* _tmp2_;
- Video* _tmp3_;
#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
g_return_val_if_fail (IS_VIDEO (video), NULL);
#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp0_ = video;
-#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1_ = callback;
-#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp1__target = callback_target;
-#line 50 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self = (VideoMonitorVideoInterpretableCheckJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject), _tmp1_, _tmp1__target, NULL, NULL, NULL, NULL);
-#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp2_ = video;
+ self = (VideoMonitorVideoInterpretableCheckJob*) background_job_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (video, G_TYPE_OBJECT, GObject), callback, callback_target, NULL, NULL, NULL, NULL);
#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- _tmp3_ = _g_object_ref0 (_tmp2_);
+ _tmp0_ = _g_object_ref0 (video);
#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
_g_object_unref0 (self->video);
#line 51 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
- self->video = _tmp3_;
+ self->video = _tmp0_;
#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return self;
-#line 2191 "VideoMonitor.c"
+#line 2289 "VideoMonitor.c"
}
-static VideoMonitorVideoInterpretableCheckJob* video_monitor_video_interpretable_check_job_new (Video* video, CompletionCallback callback, void* callback_target) {
+static VideoMonitorVideoInterpretableCheckJob*
+video_monitor_video_interpretable_check_job_new (Video* video,
+ CompletionCallback callback,
+ void* callback_target)
+{
#line 49 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
return video_monitor_video_interpretable_check_job_construct (VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, video, callback, callback_target);
-#line 2198 "VideoMonitor.c"
+#line 2300 "VideoMonitor.c"
}
-static void video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base) {
+static void
+video_monitor_video_interpretable_check_job_real_execute (BackgroundJob* base)
+{
VideoMonitorVideoInterpretableCheckJob * self;
Video* _tmp0_;
VideoInterpretableResults* _tmp1_;
@@ -2212,29 +2316,35 @@ static void video_monitor_video_interpretable_check_job_real_execute (Background
_video_interpretable_results_unref0 (self->results);
#line 55 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->results = _tmp1_;
-#line 2216 "VideoMonitor.c"
+#line 2320 "VideoMonitor.c"
}
-static void video_monitor_video_interpretable_check_job_class_init (VideoMonitorVideoInterpretableCheckJobClass * klass) {
+static void
+video_monitor_video_interpretable_check_job_class_init (VideoMonitorVideoInterpretableCheckJobClass * klass)
+{
#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_monitor_video_interpretable_check_job_parent_class = g_type_class_peek_parent (klass);
#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
((BackgroundJobClass *) klass)->finalize = video_monitor_video_interpretable_check_job_finalize;
#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
((BackgroundJobClass *) klass)->execute = (void (*) (BackgroundJob *)) video_monitor_video_interpretable_check_job_real_execute;
-#line 2227 "VideoMonitor.c"
+#line 2333 "VideoMonitor.c"
}
-static void video_monitor_video_interpretable_check_job_instance_init (VideoMonitorVideoInterpretableCheckJob * self) {
+static void
+video_monitor_video_interpretable_check_job_instance_init (VideoMonitorVideoInterpretableCheckJob * self)
+{
#line 47 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->results = NULL;
-#line 2234 "VideoMonitor.c"
+#line 2342 "VideoMonitor.c"
}
-static void video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj) {
+static void
+video_monitor_video_interpretable_check_job_finalize (BackgroundJob * obj)
+{
VideoMonitorVideoInterpretableCheckJob * self;
#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, VIDEO_MONITOR_TYPE_VIDEO_INTERPRETABLE_CHECK_JOB, VideoMonitorVideoInterpretableCheckJob);
@@ -2244,11 +2354,13 @@ static void video_monitor_video_interpretable_check_job_finalize (BackgroundJob
_video_interpretable_results_unref0 (self->results);
#line 42 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
BACKGROUND_JOB_CLASS (video_monitor_video_interpretable_check_job_parent_class)->finalize (obj);
-#line 2248 "VideoMonitor.c"
+#line 2358 "VideoMonitor.c"
}
-static GType video_monitor_video_interpretable_check_job_get_type (void) {
+static GType
+video_monitor_video_interpretable_check_job_get_type (void)
+{
static volatile gsize video_monitor_video_interpretable_check_job_type_id__volatile = 0;
if (g_once_init_enter (&video_monitor_video_interpretable_check_job_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorVideoInterpretableCheckJobClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_video_interpretable_check_job_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitorVideoInterpretableCheckJob), 0, (GInstanceInitFunc) video_monitor_video_interpretable_check_job_instance_init, NULL };
@@ -2260,7 +2372,9 @@ static GType video_monitor_video_interpretable_check_job_get_type (void) {
}
-static void video_monitor_class_init (VideoMonitorClass * klass) {
+static void
+video_monitor_class_init (VideoMonitorClass * klass)
+{
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
video_monitor_parent_class = g_type_class_peek_parent (klass);
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
@@ -2291,11 +2405,13 @@ static void video_monitor_class_init (VideoMonitorClass * klass) {
((MediaMonitorClass *) klass)->process_updates = (void (*) (MediaMonitor *, GeeCollection*, TransactionController*, gint*, GError**)) video_monitor_real_process_updates;
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
G_OBJECT_CLASS (klass)->finalize = video_monitor_finalize;
-#line 2295 "VideoMonitor.c"
+#line 2409 "VideoMonitor.c"
}
-static void video_monitor_instance_init (VideoMonitor * self) {
+static void
+video_monitor_instance_init (VideoMonitor * self)
+{
Workers* _tmp0_;
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->priv = VIDEO_MONITOR_GET_PRIVATE (self);
@@ -2305,11 +2421,13 @@ static void video_monitor_instance_init (VideoMonitor * self) {
self->priv->workers = _tmp0_;
#line 63 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self->priv->background_jobs = (guint64) 0;
-#line 2309 "VideoMonitor.c"
+#line 2425 "VideoMonitor.c"
}
-static void video_monitor_finalize (GObject * obj) {
+static void
+video_monitor_finalize (GObject * obj)
+{
VideoMonitor * self;
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VIDEO_MONITOR, VideoMonitor);
@@ -2317,11 +2435,13 @@ static void video_monitor_finalize (GObject * obj) {
_workers_unref0 (self->priv->workers);
#line 37 "/home/jens/Source/shotwell/src/VideoMonitor.vala"
G_OBJECT_CLASS (video_monitor_parent_class)->finalize (obj);
-#line 2321 "VideoMonitor.c"
+#line 2439 "VideoMonitor.c"
}
-GType video_monitor_get_type (void) {
+GType
+video_monitor_get_type (void)
+{
static volatile gsize video_monitor_type_id__volatile = 0;
if (g_once_init_enter (&video_monitor_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (VideoMonitorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) video_monitor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VideoMonitor), 0, (GInstanceInitFunc) video_monitor_instance_init, NULL };