postproc: honor gst_pad_push() return value

Returning GST_FLOW_ERROR always when gst_pad_push fails might lead to
deadlock during seek.

This patch returns the same error of gst_pad_push() and log out the
return value.

https://bugzilla.gnome.org/show_bug.cgi?id=774030
This commit is contained in:
Hyunjun Ko 2016-11-08 10:05:32 +09:00 committed by Víctor Manuel Jáquez Leal
parent d7231f66cc
commit cbce9b8e49

View file

@ -808,9 +808,9 @@ error_process_vpp:
}
error_push_buffer:
{
if (ret != GST_FLOW_FLUSHING)
GST_ERROR_OBJECT (postproc, "failed to push output buffer to video sink");
return GST_FLOW_ERROR;
GST_DEBUG_OBJECT (postproc, "gst_pad_push failed : %s",
gst_flow_get_name (ret));
return ret;
}
}
@ -885,9 +885,9 @@ error_create_buffer:
}
error_push_buffer:
{
if (ret != GST_FLOW_FLUSHING)
GST_ERROR_OBJECT (postproc, "failed to push output buffer to video sink");
return GST_FLOW_EOS;
GST_DEBUG_OBJECT (postproc, "gst_pad_push failed : %s",
gst_flow_get_name (ret));
return ret;
}
}