mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
45766f2448
commit
9a902afce4
6 changed files with 8 additions and 8 deletions
|
@ -782,7 +782,7 @@ out:
|
||||||
if (priv->current_picture)
|
if (priv->current_picture)
|
||||||
gst_av1_picture_unref (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,
|
gst_av1_decoder_drain_output_queue (self,
|
||||||
|
|
|
@ -570,7 +570,7 @@ gst_h264_decoder_handle_frame (GstVideoDecoder * decoder,
|
||||||
("Failed to decode data"), (NULL), decode_ret);
|
("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);
|
gst_clear_h264_picture (&priv->current_picture);
|
||||||
priv->current_frame = NULL;
|
priv->current_frame = NULL;
|
||||||
|
|
||||||
|
@ -1850,7 +1850,7 @@ gst_h264_decoder_finish_current_picture (GstH264Decoder * self,
|
||||||
priv->current_picture->nonexisting = TRUE;
|
priv->current_picture->nonexisting = TRUE;
|
||||||
|
|
||||||
/* this fake nonexisting picture will not trigger ouput_picture() */
|
/* 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));
|
gst_video_codec_frame_ref (priv->current_frame));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2068,7 +2068,7 @@ gst_h265_decoder_handle_frame (GstVideoDecoder * decoder,
|
||||||
("Failed to decode data"), (NULL), decode_ret);
|
("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);
|
gst_clear_h265_picture (&priv->current_picture);
|
||||||
|
|
||||||
return decode_ret;
|
return decode_ret;
|
||||||
|
|
|
@ -1320,7 +1320,7 @@ failed:
|
||||||
ret);
|
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->current_picture);
|
||||||
gst_clear_mpeg2_picture (&priv->first_field);
|
gst_clear_mpeg2_picture (&priv->first_field);
|
||||||
priv->current_frame = NULL;
|
priv->current_frame = NULL;
|
||||||
|
|
|
@ -404,7 +404,7 @@ gst_vp8_decoder_handle_frame (GstVideoDecoder * decoder,
|
||||||
GST_PTR_FORMAT, in_buf);
|
GST_PTR_FORMAT, in_buf);
|
||||||
|
|
||||||
gst_buffer_unmap (in_buf, &map);
|
gst_buffer_unmap (in_buf, &map);
|
||||||
gst_video_decoder_drop_frame (decoder, frame);
|
gst_video_decoder_release_frame (decoder, frame);
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
@ -516,7 +516,7 @@ error:
|
||||||
("Failed to decode data"), (NULL), ret);
|
("Failed to decode data"), (NULL), ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_video_decoder_drop_frame (decoder, frame);
|
gst_video_decoder_release_frame (decoder, frame);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -594,7 +594,7 @@ error:
|
||||||
("Failed to decode data"), (NULL), ret);
|
("Failed to decode data"), (NULL), ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_video_decoder_drop_frame (decoder, frame);
|
gst_video_decoder_release_frame (decoder, frame);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue