mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
uri-asset: Implement dispose vmethod for GESUriSourceAsset
... and fix DiscovererStreamInfo leak
This commit is contained in:
parent
f5f63ecdf3
commit
70deab616a
1 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue