typefind: don't ignore return value when starting a task
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 15 Feb 2012 09:10:53 +0000 (10:10 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 15 Feb 2012 09:13:37 +0000 (10:13 +0100)
plugins/elements/gsttypefindelement.c

index d3bc979..2bc0013 100644 (file)
@@ -1212,9 +1212,8 @@ gst_type_find_element_activate_sink (GstPad * pad, GstObject * parent)
     goto typefind_push;
 
   /* only start our task if we ourselves decide to start in pull mode */
-  gst_pad_start_task (pad, (GstTaskFunction) gst_type_find_element_loop, pad);
-
-  return TRUE;
+  return gst_pad_start_task (pad, (GstTaskFunction) gst_type_find_element_loop,
+      pad);
 
 typefind_push:
   {