ghostpad: return TRUE if target pad was already set
authorTim-Philipp Müller <tim@centricular.com>
Fri, 24 Nov 2017 08:53:41 +0000 (09:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 Nov 2017 12:39:39 +0000 (13:39 +0100)
The state is as it should be, so no reason to return
FALSE really, everything's good.

gst/gstghostpad.c

index 247b9c9..1598084 100644 (file)
@@ -842,7 +842,7 @@ gst_ghost_pad_set_target (GstGhostPad * gpad, GstPad * newtarget)
     GST_OBJECT_UNLOCK (gpad);
     GST_WARNING_OBJECT (gpad, "Target has already been set to %s:%s",
         GST_DEBUG_PAD_NAME (newtarget));
-    return FALSE;
+    return TRUE;
   }
 
   if (newtarget)