summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/libav/gstavvidenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c
index d8b2e7e..9a52c7f 100644
--- a/ext/libav/gstavvidenc.c
+++ b/ext/libav/gstavvidenc.c
@@ -633,7 +633,8 @@ encode_fail:
GST_ERROR_OBJECT (ffmpegenc,
"avenc_%s: failed to encode buffer", oclass->in_plugin->name);
#endif /* GST_DISABLE_GST_DEBUG */
- return GST_FLOW_OK;
+ /* avoid frame (and ts etc) piling up */
+ return gst_video_encoder_finish_frame (encoder, frame);
}
}