mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
playsink: Avoid g_object_set() on NULL if a text sink is used
Fixes bug #611702.
This commit is contained in:
parent
a6ffa3fbb5
commit
bd2277d214
1 changed files with 3 additions and 2 deletions
|
@ -2105,8 +2105,9 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||
} else {
|
||||
/* we have a chain and a textpad, turn the subtitles off */
|
||||
GST_DEBUG_OBJECT (playsink, "turning off the text");
|
||||
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", TRUE,
|
||||
NULL);
|
||||
if (playsink->textchain->overlay)
|
||||
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", TRUE,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
if (!need_video && playsink->video_pad)
|
||||
|
|
Loading…
Reference in a new issue