Commit 17838829 authored by Thibault Saunier's avatar Thibault Saunier 🌵

vp8enc: Return FLOW_ERROR when an error accures

FALSE would mean FLOW_OK

https://bugzilla.gnome.org/show_bug.cgi?id=760666
parent 2706a35e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment