mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
xingmux: Don't ignore WRONG_STATE and NOT_LINKED when pushing data downstream
This commit is contained in:
parent
e99cb46c60
commit
bd65afed85
1 changed files with 3 additions and 3 deletions
|
@ -534,7 +534,7 @@ gst_xing_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
xing_header_size = GST_BUFFER_SIZE (xing_header);
|
xing_header_size = GST_BUFFER_SIZE (xing_header);
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (ret = gst_pad_push (xing->srcpad, xing_header))) {
|
if ((ret = gst_pad_push (xing->srcpad, xing_header)) != GST_FLOW_OK) {
|
||||||
GST_ERROR_OBJECT (xing, "Failed to push Xing header: %s",
|
GST_ERROR_OBJECT (xing, "Failed to push Xing header: %s",
|
||||||
gst_flow_get_name (ret));
|
gst_flow_get_name (ret));
|
||||||
gst_buffer_unref (xing_header);
|
gst_buffer_unref (xing_header);
|
||||||
|
@ -570,7 +570,7 @@ gst_xing_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
else
|
else
|
||||||
xing->duration += duration;
|
xing->duration += duration;
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (ret = gst_pad_push (xing->srcpad, outbuf))) {
|
if ((ret = gst_pad_push (xing->srcpad, outbuf)) != GST_FLOW_OK) {
|
||||||
GST_ERROR_OBJECT (xing, "Failed to push MP3 frame: %s",
|
GST_ERROR_OBJECT (xing, "Failed to push MP3 frame: %s",
|
||||||
gst_flow_get_name (ret));
|
gst_flow_get_name (ret));
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -637,7 +637,7 @@ gst_xing_mux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
|
|
||||||
GST_INFO ("Writing real Xing header to beginning of stream");
|
GST_INFO ("Writing real Xing header to beginning of stream");
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (ret = gst_pad_push (xing->srcpad, header)))
|
if ((ret = gst_pad_push (xing->srcpad, header)) != GST_FLOW_OK)
|
||||||
GST_WARNING ("Failed to push updated Xing header: %s\n",
|
GST_WARNING ("Failed to push updated Xing header: %s\n",
|
||||||
gst_flow_get_name (ret));
|
gst_flow_get_name (ret));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue