Commit bd2277d2 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

playsink: Avoid g_object_set() on NULL if a text sink is used

Fixes bug #611702.
parent a6ffa3fb
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment