mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gstreamer: Don't explicitly drop frames on stop()
This is already handled by the base class.
This commit is contained in:
parent
f56e8b2fad
commit
ff911c76c0
1 changed files with 0 additions and 10 deletions
|
@ -689,16 +689,6 @@ gst_svtav1enc_stop (GstVideoEncoder * encoder)
|
|||
|
||||
GST_DEBUG_OBJECT (svtav1enc, "stop");
|
||||
|
||||
GstVideoCodecFrame *remaining_frame = NULL;
|
||||
while ((remaining_frame =
|
||||
gst_video_encoder_get_oldest_frame (encoder)) != NULL) {
|
||||
GST_WARNING_OBJECT (svtav1enc,
|
||||
"encoder is being stopped, dropping frame %d",
|
||||
remaining_frame->system_frame_number);
|
||||
remaining_frame->output_buffer = NULL;
|
||||
gst_video_encoder_finish_frame (encoder, remaining_frame);
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (svtav1enc);
|
||||
if (svtav1enc->state)
|
||||
gst_video_codec_state_unref (svtav1enc->state);
|
||||
|
|
Loading…
Reference in a new issue