mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
videodecoder: Add a reference to frame passed to subclass
We have one reference owned by the internal frame list and one reference passed to the subclass.
This commit is contained in:
parent
34bfcb2af9
commit
8217575af1
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
|||
* </para></listitem>
|
||||
* <listitem><para>
|
||||
* If codec processing results in decoded data, subclass should call
|
||||
* @gst_video_decoder_finish_frame to have decoded data pushed
|
||||
* @gst_video_decoder_finish_frame to have decoded data pushed.
|
||||
* downstream.
|
||||
* </para></listitem>
|
||||
* </itemizedlist>
|
||||
|
@ -2212,6 +2212,7 @@ gst_video_decoder_have_frame_2 (GstVideoDecoder * decoder)
|
|||
frame->pts);
|
||||
|
||||
/* do something with frame */
|
||||
gst_video_codec_frame_ref (frame);
|
||||
ret = decoder_class->handle_frame (decoder, frame);
|
||||
if (ret != GST_FLOW_OK)
|
||||
GST_DEBUG_OBJECT (decoder, "flow error %s", gst_flow_get_name (ret));
|
||||
|
|
Loading…
Reference in a new issue