[totem/wip/hadess/bvw-template: 2/6] backend: Simplify object initialisation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/bvw-template: 2/6] backend: Simplify object initialisation
- Date: Wed, 9 Feb 2022 12:37:41 +0000 (UTC)
commit 5c97fc953be8a9d876f59632d8dcaaa6870c08df
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 9 13:01:49 2022 +0100
backend: Simplify object initialisation
g_object_new() will already have initialised the object struct to all
zeroes, so remove NULL, and 0 assignments, they're unnecessary.
src/backend/bacon-video-widget.c | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index bf3f7efb2..49a5203ec 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -945,28 +945,14 @@ bacon_video_widget_init (BaconVideoWidget * bvw)
g_type_class_ref (BVW_TYPE_DVD_EVENT);
g_type_class_ref (BVW_TYPE_ROTATION);
- bvw->update_id = 0;
- bvw->tagcache = NULL;
- bvw->audiotags = NULL;
- bvw->videotags = NULL;
bvw->volume = -1.0;
bvw->rate = FORWARD_RATE;
-
bvw->tag_update_queue = g_async_queue_new_full ((GDestroyNotify) update_tags_delayed_data_destroy);
- bvw->tag_update_id = 0;
-
g_mutex_init (&bvw->seek_mutex);
bvw->clock = gst_system_clock_obtain ();
bvw->seek_req_time = GST_CLOCK_TIME_NONE;
bvw->seek_time = -1;
-
- bvw->missing_plugins = NULL;
- bvw->plugin_install_in_progress = FALSE;
-
- bvw->mount_cancellable = NULL;
- bvw->mount_in_progress = FALSE;
bvw->auth_last_result = G_MOUNT_OPERATION_HANDLED;
- bvw->auth_dialog = NULL;
bacon_video_widget_gst_missing_plugins_block ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]