mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
dshowdecwrapper: fix object disposal and finalization
This commit is contained in:
parent
78caa53345
commit
7ed605b375
2 changed files with 8 additions and 8 deletions
|
@ -58,7 +58,7 @@ GST_DEBUG_CATEGORY_STATIC (dshowaudiodec_debug);
|
|||
GST_BOILERPLATE (GstDshowAudioDec, gst_dshowaudiodec, GstElement,
|
||||
GST_TYPE_ELEMENT);
|
||||
|
||||
static void gst_dshowaudiodec_dispose (GObject * object);
|
||||
static void gst_dshowaudiodec_finalize (GObject * object);
|
||||
static GstStateChangeReturn gst_dshowaudiodec_change_state
|
||||
(GstElement * element, GstStateChange transition);
|
||||
|
||||
|
@ -357,7 +357,7 @@ gst_dshowaudiodec_class_init (GstDshowAudioDecClass * klass)
|
|||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_dshowaudiodec_dispose);
|
||||
gobject_class->finalize = gst_dshowaudiodec_finalize;
|
||||
|
||||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_dshowaudiodec_change_state);
|
||||
|
@ -461,7 +461,7 @@ gst_dshowaudiodec_init (GstDshowAudioDec * adec,
|
|||
}
|
||||
|
||||
static void
|
||||
gst_dshowaudiodec_dispose (GObject * object)
|
||||
gst_dshowaudiodec_finalize (GObject * object)
|
||||
{
|
||||
GstDshowAudioDec *adec = (GstDshowAudioDec *) (object);
|
||||
|
||||
|
@ -489,7 +489,7 @@ gst_dshowaudiodec_dispose (GObject * object)
|
|||
g_cond_free (adec->com_uninitialize);
|
||||
g_cond_free (adec->com_uninitialized);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ GST_DEBUG_CATEGORY_STATIC (dshowvideodec_debug);
|
|||
GST_BOILERPLATE (GstDshowVideoDec, gst_dshowvideodec, GstElement,
|
||||
GST_TYPE_ELEMENT);
|
||||
|
||||
static void gst_dshowvideodec_dispose (GObject * object);
|
||||
static void gst_dshowvideodec_finalize (GObject * object);
|
||||
static GstStateChangeReturn gst_dshowvideodec_change_state
|
||||
(GstElement * element, GstStateChange transition);
|
||||
|
||||
|
@ -409,7 +409,7 @@ gst_dshowvideodec_class_init (GstDshowVideoDecClass * klass)
|
|||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass);
|
||||
|
||||
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_dshowvideodec_dispose);
|
||||
gobject_class->finalize = gst_dshowvideodec_finalize;
|
||||
|
||||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_dshowvideodec_change_state);
|
||||
|
@ -509,7 +509,7 @@ gst_dshowvideodec_init (GstDshowVideoDec * vdec,
|
|||
}
|
||||
|
||||
static void
|
||||
gst_dshowvideodec_dispose (GObject * object)
|
||||
gst_dshowvideodec_finalize (GObject * object)
|
||||
{
|
||||
GstDshowVideoDec *vdec = (GstDshowVideoDec *) (object);
|
||||
|
||||
|
@ -532,7 +532,7 @@ gst_dshowvideodec_dispose (GObject * object)
|
|||
g_cond_free (vdec->com_uninitialize);
|
||||
g_cond_free (vdec->com_uninitialized);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->dispose (object);
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static GstStateChangeReturn
|
||||
|
|
Loading…
Reference in a new issue