playsink: avoid finding sink in NULL bin in corner case

This commit is contained in:
Mark Nauwelaerts 2012-01-19 16:32:05 +01:00
parent 2d3b3395cc
commit e5f6675ea3

View file

@ -1530,7 +1530,7 @@ gen_text_chain (GstPlaySink * playsink)
chain->queue = NULL;
}
/* try to set sync to true but it's no biggie when we can't */
if ((elem =
if (chain->sink && (elem =
gst_play_sink_find_property_sinks (playsink, chain->sink,
"sync", G_TYPE_BOOLEAN)))
g_object_set (elem, "sync", TRUE, NULL);