mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
av1enc: Return downstream error from push
This commit is contained in:
parent
84a956768d
commit
187783354a
1 changed files with 4 additions and 1 deletions
|
@ -317,6 +317,7 @@ gst_av1_enc_process (GstAV1Enc * encoder)
|
|||
const aom_codec_cx_pkt_t *pkt;
|
||||
GstVideoCodecFrame *frame;
|
||||
GstVideoEncoder *video_encoder;
|
||||
GstFlowReturn ret;
|
||||
|
||||
video_encoder = GST_VIDEO_ENCODER (encoder);
|
||||
|
||||
|
@ -339,7 +340,9 @@ gst_av1_enc_process (GstAV1Enc * encoder)
|
|||
frame->output_buffer =
|
||||
gst_buffer_new_wrapped (g_memdup (pkt->data.frame.buf,
|
||||
pkt->data.frame.sz), pkt->data.frame.sz);
|
||||
gst_video_encoder_finish_frame (video_encoder, frame);
|
||||
ret = gst_video_encoder_finish_frame (video_encoder, frame);
|
||||
if (ret != GST_FLOW_OK)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue