vp8enc: Return FLOW_ERROR when an error accures

FALSE would mean FLOW_OK

https://bugzilla.gnome.org/show_bug.cgi?id=760666
This commit is contained in:
Thibault Saunier 2016-01-15 11:36:35 +00:00
parent 2706a35ebe
commit 17838829eb

View file

@ -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);