avvidenc: Fix error propagation

Instead of returning the default return value (GST_FLOW_OK), actually
return an error one (res vs ret).
This commit is contained in:
Edward Hervey 2019-11-29 09:25:24 +01:00 committed by Edward Hervey
parent 9e56619b10
commit 5a9f3d4bf1

View file

@ -654,7 +654,7 @@ gst_ffmpegvidenc_receive_packet (GstFFMpegVidEnc * ffmpegenc,
ret = GST_FLOW_EOS;
goto done;
} else if (res < 0) {
res = GST_FLOW_ERROR;
ret = GST_FLOW_ERROR;
goto done;
}