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

Fixes bug #611702.
This commit is contained in:
Sebastian Dröge 2010-03-15 14:26:28 +01:00
parent a6ffa3fbb5
commit bd2277d214

View file

@ -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)