mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
avvidenc: discard input frame upon encoding error
This commit is contained in:
parent
0326da163c
commit
6daa80bbbe
1 changed files with 2 additions and 1 deletions
|
@ -633,7 +633,8 @@ encode_fail:
|
||||||
GST_ERROR_OBJECT (ffmpegenc,
|
GST_ERROR_OBJECT (ffmpegenc,
|
||||||
"avenc_%s: failed to encode buffer", oclass->in_plugin->name);
|
"avenc_%s: failed to encode buffer", oclass->in_plugin->name);
|
||||||
#endif /* GST_DISABLE_GST_DEBUG */
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
return GST_FLOW_OK;
|
/* avoid frame (and ts etc) piling up */
|
||||||
|
return gst_video_encoder_finish_frame (encoder, frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue