mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
directsoundsrc: Chain up to the parent class' finalize implementation
This commit is contained in:
parent
71dcbbd52a
commit
a26e5bbf9b
1 changed files with 7 additions and 5 deletions
|
@ -77,7 +77,7 @@ enum
|
||||||
static HRESULT (WINAPI * pDSoundCaptureCreate) (LPGUID,
|
static HRESULT (WINAPI * pDSoundCaptureCreate) (LPGUID,
|
||||||
LPDIRECTSOUNDCAPTURE *, LPUNKNOWN);
|
LPDIRECTSOUNDCAPTURE *, LPUNKNOWN);
|
||||||
|
|
||||||
static void gst_directsound_src_finalise (GObject * object);
|
static void gst_directsound_src_finalize (GObject * object);
|
||||||
|
|
||||||
static void gst_directsound_src_set_property (GObject * object,
|
static void gst_directsound_src_set_property (GObject * object,
|
||||||
guint prop_id, const GValue * value, GParamSpec * pspec);
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
||||||
|
@ -137,11 +137,13 @@ gst_directsound_src_dispose (GObject * object)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_directsound_src_finalise (GObject * object)
|
gst_directsound_src_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstDirectSoundSrc *dsoundsrc = GST_DIRECTSOUND_SRC (object);
|
GstDirectSoundSrc *dsoundsrc = GST_DIRECTSOUND_SRC (object);
|
||||||
|
|
||||||
g_mutex_free (dsoundsrc->dsound_lock);
|
g_mutex_free (dsoundsrc->dsound_lock);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -179,7 +181,7 @@ gst_directsound_src_class_init (GstDirectSoundSrcClass * klass)
|
||||||
|
|
||||||
GST_DEBUG ("initializing directsoundsrc class\n");
|
GST_DEBUG ("initializing directsoundsrc class\n");
|
||||||
|
|
||||||
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_directsound_src_finalise);
|
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_directsound_src_finalize);
|
||||||
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_directsound_src_dispose);
|
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_directsound_src_dispose);
|
||||||
gobject_class->get_property =
|
gobject_class->get_property =
|
||||||
GST_DEBUG_FUNCPTR (gst_directsound_src_get_property);
|
GST_DEBUG_FUNCPTR (gst_directsound_src_get_property);
|
||||||
|
@ -420,8 +422,8 @@ gst_directsound_src_prepare (GstAudioSrc * asrc, GstRingBufferSpec * spec)
|
||||||
spec->bytes_per_sample = (spec->width / 8) * spec->channels;
|
spec->bytes_per_sample = (spec->width / 8) * spec->channels;
|
||||||
dsoundsrc->bytes_per_sample = spec->bytes_per_sample;
|
dsoundsrc->bytes_per_sample = spec->bytes_per_sample;
|
||||||
|
|
||||||
GST_DEBUG ("latency time: %" G_GUINT64_FORMAT " - buffer time: %" G_GUINT64_FORMAT,
|
GST_DEBUG ("latency time: %" G_GUINT64_FORMAT " - buffer time: %"
|
||||||
spec->latency_time, spec->buffer_time);
|
G_GUINT64_FORMAT, spec->latency_time, spec->buffer_time);
|
||||||
|
|
||||||
/* Buffer-time should be allways more than 2*latency */
|
/* Buffer-time should be allways more than 2*latency */
|
||||||
if (spec->buffer_time < spec->latency_time * 2) {
|
if (spec->buffer_time < spec->latency_time * 2) {
|
||||||
|
|
Loading…
Reference in a new issue