splitmuxsink: Check the correct sink class for the existence of the "location" property

This commit is contained in:
Sebastian Dröge 2020-01-27 15:52:42 +02:00
parent 5877d945a4
commit eb0b676fae

View file

@ -990,7 +990,7 @@ send_fragment_opened_closed_msg (GstSplitMuxSink * splitmux, gboolean opened,
running_time = *rtime;
}
if (g_object_class_find_property (G_OBJECT_GET_CLASS (splitmux->sink),
if (g_object_class_find_property (G_OBJECT_GET_CLASS (sink),
"location") != NULL)
g_object_get (sink, "location", &location, NULL);