diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-03-31 14:08:37 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-03-31 14:08:37 +0200 |
commit | feb172d85c00a26d3b353f6a019c4a240501cd20 (patch) | |
tree | 431dc554000ca00a0808003e7aed5f98619daf8a /src/totem-object.c | |
parent | 895098366532557283d1ef715b63c20a7c1ba320 (diff) | |
download | totem-feb172d85c00a26d3b353f6a019c4a240501cd20.tar.gz |
main: Simplify missing plugins fatal warning
And use “Videos” as the user-visible name for the application.
Diffstat (limited to 'src/totem-object.c')
-rw-r--r-- | src/totem-object.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index a75d9ba3b..b2c8588df 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -1308,16 +1308,6 @@ totem_object_show_error (TotemObject *totem, const char *title, const char *reas GTK_WINDOW (totem->win)); } -G_GNUC_NORETURN static void -totem_object_show_error_and_exit (const char *title, - const char *reason, TotemObject *totem) -{ - reset_seek_status (totem); - totem_interface_error_blocking (title, reason, - GTK_WINDOW (totem->win)); - totem_object_exit (totem); -} - static void totem_object_save_size (TotemObject *totem) { @@ -4223,15 +4213,16 @@ add_fullscreen_toolbar (TotemObject *totem, void video_widget_create (TotemObject *totem) { - GError *err = NULL; + g_autoptr(GError) err = NULL; if (g_settings_get_boolean (totem->settings, "force-software-decoders")) totem_gst_disable_hardware_decoders (); if (!bacon_video_widget_check_init (totem->bvw, &err)) { - totem_object_show_error_and_exit (_("Totem could not startup."), err != NULL ? err->message : _("No reason."), totem); - if (err != NULL) - g_error_free (err); + totem_interface_error_blocking (_("Videos could not startup."), + err != NULL ? err->message : _("No reason."), + GTK_WINDOW (totem->win)); + totem_object_exit (totem); } g_signal_connect_after (G_OBJECT (totem->bvw), |