From 17838829eb400e8e84f120a2861b616d85beaa88 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 15 Jan 2016 11:36:35 +0000 Subject: [PATCH] vp8enc: Return FLOW_ERROR when an error accures FALSE would mean FLOW_OK https://bugzilla.gnome.org/show_bug.cgi?id=760666 --- ext/vpx/gstvpxenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/vpx/gstvpxenc.c b/ext/vpx/gstvpxenc.c index e56b7669ea..00fd3f272a 100644 --- a/ext/vpx/gstvpxenc.c +++ b/ext/vpx/gstvpxenc.c @@ -1903,7 +1903,8 @@ gst_vpx_enc_handle_frame (GstVideoEncoder * video_encoder, GST_ELEMENT_ERROR (encoder, LIBRARY, ENCODE, ("Failed to encode frame"), ("%s", gst_vpx_error_name (status))); gst_video_codec_frame_set_user_data (frame, NULL, NULL); - return FALSE; + + return GST_FLOW_ERROR; } gst_video_codec_frame_unref (frame); return gst_vpx_enc_process (encoder);