mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
d7231f66cc
commit
cbce9b8e49
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue