uri-asset: Implement dispose vmethod for GESUriSourceAsset

... and fix DiscovererStreamInfo leak
This commit is contained in:
Yeongjin Jeong 2019-01-29 11:52:43 +09:00
parent f5f63ecdf3
commit 70deab616a

View file

@ -680,9 +680,24 @@ _extract (GESAsset * asset, GError ** error)
return GES_EXTRACTABLE (trackelement); 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 static void
ges_uri_source_asset_class_init (GESUriSourceAssetClass * klass) 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; GES_ASSET_CLASS (klass)->extract = _extract;
} }