diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-02-09 13:01:49 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-02-09 13:01:49 +0100 |
commit | 5c97fc953be8a9d876f59632d8dcaaa6870c08df (patch) | |
tree | bfcb03c19fe1358cb755c22409727ca44f4ec17a /src/backend | |
parent | 29ef3f853a479ab74faa9381720bb1121fbaf02f (diff) | |
download | totem-5c97fc953be8a9d876f59632d8dcaaa6870c08df.tar.gz |
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.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/bacon-video-widget.c | 14 |
1 files changed, 0 insertions, 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 (); } |