libs: encoder: h264/5: fix wrong return value

https://bugzilla.gnome.org/show_bug.cgi?id=778750
This commit is contained in:
Hyunjun Ko 2017-03-17 16:32:36 +09:00 committed by Víctor Manuel Jáquez Leal
parent e65d916f0d
commit 257cfb61fe
2 changed files with 2 additions and 2 deletions

View file

@ -2633,7 +2633,7 @@ bs_error:
gst_buffer_unmap (encoder->sps_data, &sps_info);
gst_buffer_unmap (encoder->pps_data, &pps_info);
gst_bit_writer_clear (&bs, TRUE);
return FALSE;
return GST_VAAPI_ENCODER_STATUS_ERROR_OPERATION_FAILED;
}
error_map_sps_buffer:
{

View file

@ -2231,7 +2231,7 @@ bs_error:
gst_buffer_unmap (encoder->sps_data, &sps_info);
gst_buffer_unmap (encoder->pps_data, &pps_info);
gst_bit_writer_clear (&bs, TRUE);
return FALSE;
return GST_VAAPI_ENCODER_STATUS_ERROR_OPERATION_FAILED;
}
error_map_vps_buffer:
{