plugins: Fix wrong enum usage

gcc 13 now detects conflicting enum usages. Fix the various cases where it was wrong

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6234>
This commit is contained in:
Edward Hervey 2023-03-20 11:20:30 +01:00 committed by GStreamer Marge Bot
parent 0640147cee
commit 30738b09c1
6 changed files with 10 additions and 10 deletions

View file

@ -70,7 +70,7 @@ static gboolean gst_openjpeg_dec_stop (GstVideoDecoder * decoder);
static gboolean gst_openjpeg_dec_set_format (GstVideoDecoder * decoder,
GstVideoCodecState * state);
static gboolean gst_openjpeg_dec_flush (GstVideoDecoder * decoder);
static gboolean gst_openjpeg_dec_finish (GstVideoDecoder * decoder);
static GstFlowReturn gst_openjpeg_dec_finish (GstVideoDecoder * decoder);
static GstFlowReturn gst_openjpeg_dec_handle_frame (GstVideoDecoder * decoder,
GstVideoCodecFrame * frame);
static gboolean gst_openjpeg_dec_decide_allocation (GstVideoDecoder * decoder,
@ -80,10 +80,10 @@ static void gst_openjpeg_dec_set_property (GObject * object,
static void gst_openjpeg_dec_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static gboolean gst_openjpeg_dec_decode_frame_multiple (GstVideoDecoder *
static GstFlowReturn gst_openjpeg_dec_decode_frame_multiple (GstVideoDecoder *
decoder, GstVideoCodecFrame * frame);
static GstFlowReturn gst_openjpeg_dec_decode_frame_single (GstVideoDecoder *
decoder, GstVideoCodecFrame * frame);
static gboolean gst_openjpeg_dec_decode_frame_single (GstVideoDecoder * decoder,
GstVideoCodecFrame * frame);
static void gst_openjpeg_dec_pause_loop (GstOpenJPEGDec * self,
GstFlowReturn flow_ret);

View file

@ -66,7 +66,7 @@ struct _GstOpenJPEGDec
void (*fill_frame) (GstOpenJPEGDec *self,
GstVideoFrame *frame, opj_image_t * image);
gboolean (*decode_frame) (GstVideoDecoder * decoder, GstVideoCodecFrame *frame);
GstFlowReturn (*decode_frame) (GstVideoDecoder * decoder, GstVideoCodecFrame *frame);
opj_dparameters_t params;

View file

@ -271,7 +271,7 @@ static gboolean gst_adaptive_demux_has_next_period (GstAdaptiveDemux * demux);
static void gst_adaptive_demux_advance_period (GstAdaptiveDemux * demux);
static void gst_adaptive_demux_stream_free (GstAdaptiveDemuxStream * stream);
static GstFlowReturn
static gboolean
gst_adaptive_demux_stream_push_event (GstAdaptiveDemuxStream * stream,
GstEvent * event);

View file

@ -1051,7 +1051,7 @@ encoder_disabled:
}
}
static gboolean
static GstFlowReturn
theora_enc_finish (GstVideoEncoder * benc)
{
GstTheoraEnc *enc;
@ -1071,7 +1071,7 @@ theora_enc_finish (GstVideoEncoder * benc)
theora_enc_clear_multipass_cache (enc);
return TRUE;
return GST_FLOW_OK;
}
static gboolean

View file

@ -1254,7 +1254,7 @@ gst_rtp_h264_pay_send_bundle (GstRtpH264Pay * rtph264pay, gboolean end_of_au)
end_of_au, delta, discont);
}
static gboolean
static GstFlowReturn
gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts, gboolean end_of_au,
gboolean delta_unit, gboolean discont, guint8 nal_header)

View file

@ -1351,7 +1351,7 @@ gst_rtp_h265_pay_send_bundle (GstRtpH265Pay * rtph265pay, gboolean marker)
marker, delta_unit);
}
static gboolean
static GstFlowReturn
gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts,
gboolean marker, gboolean delta_unit, guint8 nal_type,