ipcpipeline: Check the proper value

The code is meant to check the *peer* state change return value
(and not the sink's one).

CID #1416128
This commit is contained in:
Edward Hervey 2017-11-23 08:02:58 +01:00 committed by Edward Hervey
parent b97a4a833a
commit 00cfa72085

View file

@ -651,7 +651,7 @@ gst_ipc_pipeline_sink_change_state (GstElement * element,
GST_DEBUG_OBJECT (sink, "Calling peer with state change"); GST_DEBUG_OBJECT (sink, "Calling peer with state change");
peer_ret = gst_ipc_pipeline_comm_write_state_change_to_fd (&sink->comm, peer_ret = gst_ipc_pipeline_comm_write_state_change_to_fd (&sink->comm,
transition); transition);
if (ret == GST_STATE_CHANGE_FAILURE && down) { if (peer_ret == GST_STATE_CHANGE_FAILURE && down) {
GST_WARNING_OBJECT (sink, "Peer returned state change failure, " GST_WARNING_OBJECT (sink, "Peer returned state change failure, "
"but ignoring because we are going down"); "but ignoring because we are going down");
peer_ret = GST_STATE_CHANGE_SUCCESS; peer_ret = GST_STATE_CHANGE_SUCCESS;