audio-video-properties: return early without discoverer

Without a correctly initialized GstDiscoverer, no locations can be
set, so return early if that is the case.
This commit is contained in:
Peter Eisenmann 2024-04-01 00:57:14 +02:00
parent 9298b7b5a2
commit 925a4c15cc

View file

@ -441,12 +441,14 @@ totem_properties_view_set_location (TotemPropertiesView *props,
{
g_assert (TOTEM_IS_PROPERTIES_VIEW (props));
if (props->priv->disco)
if (props->priv->disco == NULL)
{
gst_discoverer_stop (props->priv->disco);
return;
}
if (location != NULL && props->priv->disco != NULL)
gst_discoverer_stop (props->priv->disco);
if (location != NULL)
{
gst_discoverer_start (props->priv->disco);