Use GST_PAD_LINK_SUCCESSFUL.
authorColin Walters <walters@verbum.org>
Tue, 23 Dec 2003 23:37:54 +0000 (23:37 +0000)
committerColin Walters <walters@verbum.org>
Tue, 23 Dec 2003 23:37:54 +0000 (23:37 +0000)
Original commit message from CVS:
Use GST_PAD_LINK_SUCCESSFUL.

ChangeLog
gst/autoplug/gstspideridentity.c

index 7c0db2f..f2856af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-23  Colin Walters  <walters@verbum.org>
+
+       * gst/autoplug/gstspideridentity.c (gst_spider_identity_sink_loop_type_finding):
+       Use GST_PAD_LINK_SUCCESSFUL.
+
 2003-12-23  David Schleef  <ds@schleef.org>
 
        * gst/elements/gstaggregator.c:
index cb4b5de..e436777 100644 (file)
@@ -519,7 +519,7 @@ end:
 plug:
   GST_INFO ("typefind function found caps"); 
   ident->caps = find.caps;
-  g_assert (gst_pad_try_set_caps (ident->src, find.caps) > 0);
+  g_assert (GST_PAD_LINK_SUCCESSFUL (gst_pad_try_set_caps (ident->src, find.caps)));
   {
     gchar *str = gst_caps_to_string (find.caps);
     GST_LOG_OBJECT (ident, "spider starting caps: %s", str);