diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-11-29 12:50:59 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-11-30 10:19:40 +0100 |
commit | 405bc84b687d8f5259db19fe049ec9610e99cd15 (patch) | |
tree | 8366b4d5c01df3301aa4074bd4bc27a075edd1c3 /src/backend/bacon-video-widget.c | |
parent | 4b039e534831e15e8b56a178dd1a648328fa3297 (diff) | |
download | totem-405bc84b687d8f5259db19fe049ec9610e99cd15.tar.gz |
backend: Return an error on playback failure
If setting the playback direction fails, make sure to return an error,
otherwise the application will crash trying to access it.
Diffstat (limited to 'src/backend/bacon-video-widget.c')
-rw-r--r-- | src/backend/bacon-video-widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c index c3df32b41..f232fd17f 100644 --- a/src/backend/bacon-video-widget.c +++ b/src/backend/bacon-video-widget.c @@ -3668,6 +3668,8 @@ bacon_video_widget_play (BaconVideoWidget * bvw, GError ** error) /* Set direction to forward */ if (bvw_set_playback_direction (bvw, TRUE) == FALSE) { GST_DEBUG ("Failed to reset direction back to forward to play"); + g_set_error_literal (error, BVW_ERROR, BVW_ERROR_GENERIC, + _("This file could not be played. Try restarting playback.")); return FALSE; } |