mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
videoencoder,videodecoder: Return new references from _get_frame()
This commit is contained in:
parent
f35f0b6548
commit
4119246081
2 changed files with 4 additions and 4 deletions
|
@ -2360,7 +2360,7 @@ gst_video_decoder_get_oldest_frame (GstVideoDecoder * decoder)
|
|||
*
|
||||
* Get a pending unfinished #GstVideoCodecFrame
|
||||
*
|
||||
* Returns: (transfer none): pending unfinished #GstVideoCodecFrame identified by @frame_number.
|
||||
* Returns: (transfer full): pending unfinished #GstVideoCodecFrame identified by @frame_number.
|
||||
*
|
||||
* Since: 0.10.36
|
||||
*/
|
||||
|
@ -2377,7 +2377,7 @@ gst_video_decoder_get_frame (GstVideoDecoder * decoder, int frame_number)
|
|||
GstVideoCodecFrame *tmp = g->data;
|
||||
|
||||
if (tmp->system_frame_number == frame_number) {
|
||||
frame = tmp;
|
||||
frame = gst_video_codec_frame_ref (tmp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1673,7 +1673,7 @@ gst_video_encoder_get_oldest_frame (GstVideoEncoder * encoder)
|
|||
*
|
||||
* Get a pending unfinished #GstVideoCodecFrame
|
||||
*
|
||||
* Returns: (transfer none): pending unfinished #GstVideoCodecFrame identified by @frame_number.
|
||||
* Returns: (transfer full): pending unfinished #GstVideoCodecFrame identified by @frame_number.
|
||||
*
|
||||
* Since: 0.10.36
|
||||
*/
|
||||
|
@ -1690,7 +1690,7 @@ gst_video_encoder_get_frame (GstVideoEncoder * encoder, int frame_number)
|
|||
GstVideoCodecFrame *tmp = g->data;
|
||||
|
||||
if (tmp->system_frame_number == frame_number) {
|
||||
frame = tmp;
|
||||
frame = gst_video_codec_frame_ref (tmp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue