mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
playsink: Avoid a segfault when the video sink fails to start
Don't attempt to display the subpictures and segfault when the video sink failed to start (and hence the videochain is NULL).
This commit is contained in:
parent
8601862e27
commit
ee7fd4c28d
1 changed files with 1 additions and 1 deletions
|
@ -1872,7 +1872,7 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||
gst_ghost_pad_set_target (GST_GHOST_PAD_CAST (playsink->text_pad), NULL);
|
||||
}
|
||||
|
||||
if (need_subp) {
|
||||
if (need_subp && playsink->videochain) {
|
||||
GST_DEBUG_OBJECT (playsink, "adding subpicture");
|
||||
if (!playsink->subpchain) {
|
||||
GST_DEBUG_OBJECT (playsink, "creating subpicture chain");
|
||||
|
|
Loading…
Reference in a new issue