Commit 41192460 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

videoencoder,videodecoder: Return new references from _get_frame()

parent f35f0b65
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment