diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-01-26 12:10:14 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-01-27 12:46:22 +0100 |
commit | 11a8db5d5814b83ae3f41414d8347b2dfba2aa35 (patch) | |
tree | cd0f2c9c359bd8dc9dc52d3cfa182676bfe7e80d /src/plugins/screenshot/totem-screenshot-plugin.c | |
parent | c89c70401e3e87df315061dc056344b5ed4a2997 (diff) | |
download | totem-11a8db5d5814b83ae3f41414d8347b2dfba2aa35.tar.gz |
screenshot: Always show an error
Show an error if bacon_video_widget_can_get_frames() failed, even if it
didn't return a GError.
Diffstat (limited to 'src/plugins/screenshot/totem-screenshot-plugin.c')
-rw-r--r-- | src/plugins/screenshot/totem-screenshot-plugin.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/screenshot/totem-screenshot-plugin.c b/src/plugins/screenshot/totem-screenshot-plugin.c index 2754b1851..43cb24146 100644 --- a/src/plugins/screenshot/totem-screenshot-plugin.c +++ b/src/plugins/screenshot/totem-screenshot-plugin.c @@ -218,10 +218,7 @@ take_screenshot_action_cb (GSimpleAction *action, g_autofree char *escaped_video_name = NULL; if (bacon_video_widget_can_get_frames (priv->bvw, &err) == FALSE) { - if (err == NULL) - return; - - totem_object_show_error (priv->totem, _("Totem could not get a screenshot of the video."), err->message); + totem_object_show_error (priv->totem, _("Totem could not get a screenshot of the video."), err->message ?: _("No reason.")); g_error_free (err); return; } |