ghostpad: return TRUE if target pad was already set

The state is as it should be, so no reason to return
FALSE really, everything's good.
This commit is contained in:
Tim-Philipp Müller 2017-11-24 09:53:41 +01:00
parent 3203a10821
commit b63ed9e066

View 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)