summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2017-03-17 16:32:36 +0900
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-03-17 12:54:27 +0100
commit257cfb61fee1cecd0fe9a8164a309f371f644200 (patch)
tree16e974271d7e31e3252da67ddbe1fb7e9f12bcf9 /gst-libs
parente65d916f0d78b388376301c4bffe19b452b12c8d (diff)
libs: encoder: h264/5: fix wrong return value
https://bugzilla.gnome.org/show_bug.cgi?id=778750
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c2
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h265.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index 49a7988b..450d4359 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -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:
{
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
index 6a2b2837..39fca6c6 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
@@ -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:
{