avvidenc: Fix error propagation
[platform/upstream/gstreamer.git] / 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;
   }