mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
playsink: avoid finding sink in NULL bin in corner case
This commit is contained in:
parent
2d3b3395cc
commit
e5f6675ea3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue