mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-28 20:14:25 +00:00
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:
parent
9298b7b5a2
commit
925a4c15cc
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue