diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-03-29 09:58:21 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-03-29 10:14:19 +0200 |
commit | 59ad2f1f98d8161915d15f7b95a7abc2be548aa1 (patch) | |
tree | 0f20228c6e6e611e0dcadf1b53cf60586daa3f45 | |
parent | 518ca96fdc521836c0326cd83aadee5147fe0e83 (diff) | |
download | totem-59ad2f1f98d8161915d15f7b95a7abc2be548aa1.tar.gz |
backend: Fix warning if glsinkbin plugin is missing
(totem:400643): GStreamer-CRITICAL **: 09:56:08.831: gst_bus_set_flushing: assertion 'GST_IS_BUS (bus)' failed
#0 0x00007ffff7de2df1 in g_logv () at /lib64/libglib-2.0.so.0
#1 0x00007ffff7de3073 in g_log () at /lib64/libglib-2.0.so.0
#2 0x00007ffff7f89be6 in bvw_stop_play_pipeline (bvw=bvw@entry=0x777d10) at ../../../../Projects/jhbuild/totem/src/backend/bacon-video-widget.c:3852
#3 0x00007ffff7f8ef6f in bacon_video_widget_close (bvw=0x777d10) at ../../../../Projects/jhbuild/totem/src/backend/bacon-video-widget.c:3902
#4 0x00007ffff7f7b381 in totem_object_exit (totem=totem@entry=0x44f670) at ../../../../Projects/jhbuild/totem/src/totem-object.c:1405
#2 0x00007ffff7f89be6 in bvw_stop_play_pipeline (bvw=bvw@entry=0x777d10) at ../../../../Projects/jhbuild/totem/src/backend/bacon-video-widget.c:3852
3852 gst_bus_set_flushing (bvw->bus, TRUE);
(gdb) p bvw->bus
$1 = 0x0
-rw-r--r-- | src/backend/bacon-video-widget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c index 9ff2e9cc8..6435ed951 100644 --- a/src/backend/bacon-video-widget.c +++ b/src/backend/bacon-video-widget.c @@ -3849,7 +3849,8 @@ bvw_stop_play_pipeline (BaconVideoWidget * bvw) /* and now drop all following messages until we start again. The * bus is set to flush=false again in bacon_video_widget_open() */ - gst_bus_set_flushing (bvw->bus, TRUE); + if (bvw->bus) + gst_bus_set_flushing (bvw->bus, TRUE); /* Now in READY or lower */ bvw->target_state = GST_STATE_READY; |