codecs: Use release_frame() instead of drop_frame()

drop_frame() will post QoS message which is not intended here

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5024>
This commit is contained in:
Seungha Yang 2023-07-13 01:26:46 +09:00 committed by GStreamer Marge Bot
parent 45766f2448
commit 9a902afce4
6 changed files with 8 additions and 8 deletions

View file

@ -782,7 +782,7 @@ out:
if (priv->current_picture)
gst_av1_picture_unref (priv->current_picture);
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
}
gst_av1_decoder_drain_output_queue (self,

View file

@ -570,7 +570,7 @@ gst_h264_decoder_handle_frame (GstVideoDecoder * decoder,
("Failed to decode data"), (NULL), decode_ret);
}
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
gst_clear_h264_picture (&priv->current_picture);
priv->current_frame = NULL;
@ -1850,7 +1850,7 @@ gst_h264_decoder_finish_current_picture (GstH264Decoder * self,
priv->current_picture->nonexisting = TRUE;
/* this fake nonexisting picture will not trigger ouput_picture() */
gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self),
gst_video_decoder_release_frame (GST_VIDEO_DECODER (self),
gst_video_codec_frame_ref (priv->current_frame));
}
}

View file

@ -2068,7 +2068,7 @@ gst_h265_decoder_handle_frame (GstVideoDecoder * decoder,
("Failed to decode data"), (NULL), decode_ret);
}
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
gst_clear_h265_picture (&priv->current_picture);
return decode_ret;

View file

@ -1320,7 +1320,7 @@ failed:
ret);
}
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
gst_clear_mpeg2_picture (&priv->current_picture);
gst_clear_mpeg2_picture (&priv->first_field);
priv->current_frame = NULL;

View file

@ -404,7 +404,7 @@ gst_vp8_decoder_handle_frame (GstVideoDecoder * decoder,
GST_PTR_FORMAT, in_buf);
gst_buffer_unmap (in_buf, &map);
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
return GST_FLOW_OK;
}
@ -516,7 +516,7 @@ error:
("Failed to decode data"), (NULL), ret);
}
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
return ret;
}

View file

@ -594,7 +594,7 @@ error:
("Failed to decode data"), (NULL), ret);
}
gst_video_decoder_drop_frame (decoder, frame);
gst_video_decoder_release_frame (decoder, frame);
return ret;
}