diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-03-29 09:57:04 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-03-29 10:01:09 +0200 |
commit | 518ca96fdc521836c0326cd83aadee5147fe0e83 (patch) | |
tree | 58a7afbb4262de439fdd4189e062ca5047ca88c3 /src | |
parent | 94d94d7d2617185c20c16a59933e32556d96c68a (diff) | |
download | totem-518ca96fdc521836c0326cd83aadee5147fe0e83.tar.gz |
backend: Check for glsinkbin at runtime
Closes: #512
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/bacon-video-widget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c index 09db921c9..9ff2e9cc8 100644 --- a/src/backend/bacon-video-widget.c +++ b/src/backend/bacon-video-widget.c @@ -5529,11 +5529,14 @@ bacon_video_widget_init (BaconVideoWidget *bvw) if (!bvw->play || !bvw->audio_pitchcontrol || !bvw->video_sink || - !audio_sink) { + !audio_sink || + !glsinkbin) { if (bvw->video_sink) g_object_ref_sink (bvw->video_sink); if (audio_sink) g_object_ref_sink (audio_sink); + if (glsinkbin) + g_object_ref_sink (glsinkbin); bvw->init_error = g_error_new_literal (BVW_ERROR, BVW_ERROR_PLUGIN_LOAD, _("Some necessary plug-ins are missing. " "Make sure that the program is correctly installed.")); |