mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Fix cleanup for filesrc
Original commit message from CVS: Fix cleanup for filesrc
This commit is contained in:
parent
75b18050d7
commit
01d2b54b37
2 changed files with 38 additions and 4 deletions
|
@ -101,6 +101,7 @@ enum {
|
|||
|
||||
static void gst_filesrc_class_init (GstFileSrcClass *klass);
|
||||
static void gst_filesrc_init (GstFileSrc *filesrc);
|
||||
static void gst_filesrc_dispose (GObject *object);
|
||||
|
||||
static void gst_filesrc_set_property (GObject *object, guint prop_id,
|
||||
const GValue *value, GParamSpec *pspec);
|
||||
|
@ -159,6 +160,7 @@ gst_filesrc_class_init (GstFileSrcClass *klass)
|
|||
"touch", ARG_TOUCH, G_PARAM_READWRITE,
|
||||
NULL);
|
||||
|
||||
gobject_class->dispose = gst_filesrc_dispose;
|
||||
gobject_class->set_property = gst_filesrc_set_property;
|
||||
gobject_class->get_property = gst_filesrc_get_property;
|
||||
|
||||
|
@ -205,6 +207,21 @@ gst_filesrc_init (GstFileSrc *src)
|
|||
src->seek_happened = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_filesrc_dispose (GObject *object)
|
||||
{
|
||||
GstFileSrc *src;
|
||||
|
||||
src = GST_FILESRC (object);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
|
||||
g_tree_destroy (src->map_regions);
|
||||
g_mutex_free (src->map_regions_lock);
|
||||
if (src->filename)
|
||||
g_free (src->filename);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gst_filesrc_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
|
||||
|
|
|
@ -101,6 +101,7 @@ enum {
|
|||
|
||||
static void gst_filesrc_class_init (GstFileSrcClass *klass);
|
||||
static void gst_filesrc_init (GstFileSrc *filesrc);
|
||||
static void gst_filesrc_dispose (GObject *object);
|
||||
|
||||
static void gst_filesrc_set_property (GObject *object, guint prop_id,
|
||||
const GValue *value, GParamSpec *pspec);
|
||||
|
@ -159,6 +160,7 @@ gst_filesrc_class_init (GstFileSrcClass *klass)
|
|||
"touch", ARG_TOUCH, G_PARAM_READWRITE,
|
||||
NULL);
|
||||
|
||||
gobject_class->dispose = gst_filesrc_dispose;
|
||||
gobject_class->set_property = gst_filesrc_set_property;
|
||||
gobject_class->get_property = gst_filesrc_get_property;
|
||||
|
||||
|
@ -205,6 +207,21 @@ gst_filesrc_init (GstFileSrc *src)
|
|||
src->seek_happened = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_filesrc_dispose (GObject *object)
|
||||
{
|
||||
GstFileSrc *src;
|
||||
|
||||
src = GST_FILESRC (object);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
|
||||
g_tree_destroy (src->map_regions);
|
||||
g_mutex_free (src->map_regions_lock);
|
||||
if (src->filename)
|
||||
g_free (src->filename);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gst_filesrc_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
|
||||
|
|
Loading…
Reference in a new issue