[totem/wip/hadess/bvw-template: 3/5] main: Port to new video widget API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/bvw-template: 3/5] main: Port to new video widget API
- Date: Wed, 9 Feb 2022 13:08:32 +0000 (UTC)
commit 647798867661d7ef6c4a71e04df656c77d80d886
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 9 13:30:01 2022 +0100
main: Port to new video widget API
src/totem-object.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index b2fc48646..c73bd521a 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -4232,9 +4232,9 @@ video_widget_create (TotemObject *totem)
{
GError *err = NULL;
- totem->bvw = BACON_VIDEO_WIDGET (bacon_video_widget_new (&err));
+ totem->bvw = BACON_VIDEO_WIDGET (bacon_video_widget_new ());
- if (totem->bvw == NULL) {
+ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]