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
@ -2105,8 +2105,9 @@ gst_play_sink_reconfigure (GstPlaySink * playsink)
|
|||||||
} else {
|
} else {
|
||||||
/* we have a chain and a textpad, turn the subtitles off */
|
/* we have a chain and a textpad, turn the subtitles off */
|
||||||
GST_DEBUG_OBJECT (playsink, "turning off the text");
|
GST_DEBUG_OBJECT (playsink, "turning off the text");
|
||||||
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", TRUE,
|
if (playsink->textchain->overlay)
|
||||||
NULL);
|
g_object_set (G_OBJECT (playsink->textchain->overlay), "silent", TRUE,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!need_video && playsink->video_pad)
|
if (!need_video && playsink->video_pad)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user