+2005-07-06 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * check/gst/gstpad.c:
+ * check/gstcheck.c:
+ * gst/gstpad.c: (gst_pad_get_internal_links_default):
+ if pad has no parent, return NULL as list of internal links
+
2005-07-05 Andy Wingo <wingo@pobox.com>
* gst/elements/gstfilesrc.c:
2005-07-05 Stefan Kost <ensonic@users.sf.net>
* Makefile.am:
- better report genration target (lcov needs a patch)
+ better report genration target (lcov needs a patch)
2005-07-05 Andy Wingo <wingo@pobox.com>
fail_unless (srct == NULL);
}
-END_TEST
+END_TEST;
+
/* threaded link/unlink */
/* use globals */
- GstPad * src, *sink;
+GstPad *src, *sink;
void
thread_link_unlink (gpointer data)
MAIN_STOP_THREADS ();
}
-END_TEST
+END_TEST;
+
START_TEST (test_refcount)
{
GstPad *src, *sink;
gst_caps_unref (caps);
}
-END_TEST
+END_TEST;
+
START_TEST (test_get_allowed_caps)
{
GstPad *src, *sink;
gst_caps_unref (caps);
}
-END_TEST Suite *
+END_TEST;
+
+Suite *
gst_pad_suite (void)
{
Suite *s = suite_create ("GstPad");
* pads inside the parent element with opposite direction.
* The caller must free this list after use.
*
- * Returns: a newly allocated #GList of pads.
+ * Returns: a newly allocated #GList of pads, or NULL if the pad has no parent.
*
* Not MT safe.
*/
direction = pad->direction;
parent = GST_PAD_PARENT (pad);
+ if (!parent)
+ return NULL;
+
parent_pads = parent->pads;
while (parent_pads) {
fail_unless (srct == NULL);
}
-END_TEST
+END_TEST;
+
/* threaded link/unlink */
/* use globals */
- GstPad * src, *sink;
+GstPad *src, *sink;
void
thread_link_unlink (gpointer data)
MAIN_STOP_THREADS ();
}
-END_TEST
+END_TEST;
+
START_TEST (test_refcount)
{
GstPad *src, *sink;
gst_caps_unref (caps);
}
-END_TEST
+END_TEST;
+
START_TEST (test_get_allowed_caps)
{
GstPad *src, *sink;
gst_caps_unref (caps);
}
-END_TEST Suite *
+END_TEST;
+
+Suite *
gst_pad_suite (void)
{
Suite *s = suite_create ("GstPad");