pulsesrc: small cleanups

This commit is contained in:
Wim Taymans 2011-08-04 18:15:55 +02:00
parent 1b1fb68c23
commit 9ae85cb662

View File

@ -923,6 +923,7 @@ fail:
static gboolean static gboolean
gst_pulsesrc_negotiate (GstBaseSrc * basesrc) gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
{ {
GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (basesrc);
GstCaps *thiscaps; GstCaps *thiscaps;
GstCaps *caps = NULL; GstCaps *caps = NULL;
GstCaps *peercaps = NULL; GstCaps *peercaps = NULL;
@ -964,9 +965,9 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
result = TRUE; result = TRUE;
} else if (gst_caps_is_fixed (caps)) { } else if (gst_caps_is_fixed (caps)) {
/* yay, fixed caps, use those then */ /* yay, fixed caps, use those then */
result = gst_pulsesrc_create_stream (GST_PULSESRC_CAST (basesrc), caps); result = gst_pulsesrc_create_stream (pulsesrc, caps);
if (result) if (result)
result = gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps); result = gst_base_src_set_caps (basesrc, caps);
} }
} }
gst_caps_unref (caps); gst_caps_unref (caps);