pulsesrc: don't discard the result of _set_caps()

Use the result of gst_pad_set_caps() instead of assuming success.

See #590678
This commit is contained in:
Wim Taymans 2009-08-24 16:22:47 +02:00
parent e9e94a771b
commit 08808f7f32

View file

@ -926,8 +926,7 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
/* 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 (GST_PULSESRC_CAST (basesrc), caps);
if (result) if (result)
gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps); result = gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps);
result = TRUE;
} }
} }
gst_caps_unref (caps); gst_caps_unref (caps);