mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
vp8dec: Don't give up so easily if failed to decode a frame
https://bugzilla.gnome.org/show_bug.cgi?id=687436
This commit is contained in:
parent
c70ba7765a
commit
8a4a6b770f
1 changed files with 3 additions and 3 deletions
|
@ -511,9 +511,9 @@ gst_vp8_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
||||||
gst_buffer_unmap (frame->input_buffer, &minfo);
|
gst_buffer_unmap (frame->input_buffer, &minfo);
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE,
|
GST_VIDEO_DECODER_ERROR (decoder, 1, LIBRARY, ENCODE,
|
||||||
("Failed to decode frame"), ("%s", gst_vpx_error_name (status)));
|
("Failed to decode frame"), ("%s", gst_vpx_error_name (status)), ret);
|
||||||
return GST_FLOW_ERROR;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
img = vpx_codec_get_frame (&dec->decoder, &iter);
|
img = vpx_codec_get_frame (&dec->decoder, &iter);
|
||||||
|
|
Loading…
Reference in a new issue