The code is meant to check the *peer* state change return value (and not the sink's one). CID #1416128
We are only using read(), write(), memcpy(), strlen() and errno in ipcpipelinecomm.c. Everything else is glib/gstreamer.