Commit 70deab61 authored by Yeongjin Jeong's avatar Yeongjin Jeong
Browse files

uri-asset: Implement dispose vmethod for GESUriSourceAsset

... and fix DiscovererStreamInfo leak
parent f5f63ecd
......@@ -680,9 +680,24 @@ _extract (GESAsset * asset, GError ** error)
return GES_EXTRACTABLE (trackelement);
}
static void
ges_uri_source_asset_dispose (GObject * object)
{
GESUriSourceAsset *self = GES_URI_SOURCE_ASSET (object);
GESUriSourceAssetPrivate *priv = self->priv;
gst_clear_object (&priv->sinfo);
G_OBJECT_CLASS (ges_uri_source_asset_parent_class)->dispose (object);
}
static void
ges_uri_source_asset_class_init (GESUriSourceAssetClass * klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = ges_uri_source_asset_dispose;
GES_ASSET_CLASS (klass)->extract = _extract;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment