avvidenc: Fix error propagation
authorEdward Hervey <edward@centricular.com>
Fri, 29 Nov 2019 08:25:24 +0000 (09:25 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 29 Nov 2019 14:22:09 +0000 (14:22 +0000)
Instead of returning the default return value (GST_FLOW_OK), actually
return an error one (res vs ret).

ext/libav/gstavvidenc.c

index 621d00b..34eef90 100644 (file)
@@ -653,7 +653,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;
   }