codecs: mpeg2decoder: rename variables

Since prev_picture and next_picture are plain pointers, not pointer to pointers,
it's misleading to name them with _ptr suffix.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1939>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-01-06 12:48:14 +01:00
parent df6c4843a7
commit ec15caff93

View file

@ -723,17 +723,18 @@ gst_mpeg2_decoder_start_current_picture (GstMpeg2Decoder * decoder,
{ {
GstMpeg2DecoderPrivate *priv = decoder->priv; GstMpeg2DecoderPrivate *priv = decoder->priv;
GstMpeg2DecoderClass *klass = GST_MPEG2_DECODER_GET_CLASS (decoder); GstMpeg2DecoderClass *klass = GST_MPEG2_DECODER_GET_CLASS (decoder);
GstMpeg2Picture *prev_picture_ptr, *next_picture_ptr; GstMpeg2Picture *prev_picture, *next_picture;
gboolean ret; gboolean ret;
if (!klass->start_picture) if (!klass->start_picture)
return TRUE; return TRUE;
gst_mpeg2_dpb_get_neighbours (priv->dpb, priv->current_picture, gst_mpeg2_dpb_get_neighbours (priv->dpb, priv->current_picture,
&prev_picture_ptr, &next_picture_ptr); &prev_picture, &next_picture);
ret = klass->start_picture (decoder, priv->current_picture, slice, ret = klass->start_picture (decoder, priv->current_picture, slice,
prev_picture_ptr, next_picture_ptr); prev_picture, next_picture);
if (!ret) { if (!ret) {
GST_ERROR_OBJECT (decoder, "subclass does not want to start picture"); GST_ERROR_OBJECT (decoder, "subclass does not want to start picture");