mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +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>
|
* </para></listitem>
|
||||||
* <listitem><para>
|
* <listitem><para>
|
||||||
* If codec processing results in decoded data, subclass should call
|
* 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.
|
* downstream.
|
||||||
* </para></listitem>
|
* </para></listitem>
|
||||||
* </itemizedlist>
|
* </itemizedlist>
|
||||||
|
@ -2212,6 +2212,7 @@ gst_video_decoder_have_frame_2 (GstVideoDecoder * decoder)
|
||||||
frame->pts);
|
frame->pts);
|
||||||
|
|
||||||
/* do something with frame */
|
/* do something with frame */
|
||||||
|
gst_video_codec_frame_ref (frame);
|
||||||
ret = decoder_class->handle_frame (decoder, frame);
|
ret = decoder_class->handle_frame (decoder, frame);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
GST_DEBUG_OBJECT (decoder, "flow error %s", gst_flow_get_name (ret));
|
GST_DEBUG_OBJECT (decoder, "flow error %s", gst_flow_get_name (ret));
|
||||||
|
|
Loading…
Reference in a new issue