mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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/4225>
This commit is contained in:
parent
ab69e24d9e
commit
ee759fb4bf
6 changed files with 10 additions and 10 deletions
|
@ -70,7 +70,7 @@ static gboolean gst_openjpeg_dec_stop (GstVideoDecoder * decoder);
|
||||||
static gboolean gst_openjpeg_dec_set_format (GstVideoDecoder * decoder,
|
static gboolean gst_openjpeg_dec_set_format (GstVideoDecoder * decoder,
|
||||||
GstVideoCodecState * state);
|
GstVideoCodecState * state);
|
||||||
static gboolean gst_openjpeg_dec_flush (GstVideoDecoder * decoder);
|
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,
|
static GstFlowReturn gst_openjpeg_dec_handle_frame (GstVideoDecoder * decoder,
|
||||||
GstVideoCodecFrame * frame);
|
GstVideoCodecFrame * frame);
|
||||||
static gboolean gst_openjpeg_dec_decide_allocation (GstVideoDecoder * decoder,
|
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,
|
static void gst_openjpeg_dec_get_property (GObject * object,
|
||||||
guint prop_id, GValue * value, GParamSpec * pspec);
|
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);
|
decoder, GstVideoCodecFrame * frame);
|
||||||
static gboolean gst_openjpeg_dec_decode_frame_single (GstVideoDecoder * decoder,
|
|
||||||
GstVideoCodecFrame * frame);
|
|
||||||
|
|
||||||
static void gst_openjpeg_dec_pause_loop (GstOpenJPEGDec * self,
|
static void gst_openjpeg_dec_pause_loop (GstOpenJPEGDec * self,
|
||||||
GstFlowReturn flow_ret);
|
GstFlowReturn flow_ret);
|
||||||
|
|
|
@ -66,7 +66,7 @@ struct _GstOpenJPEGDec
|
||||||
void (*fill_frame) (GstOpenJPEGDec *self,
|
void (*fill_frame) (GstOpenJPEGDec *self,
|
||||||
GstVideoFrame *frame, opj_image_t * image);
|
GstVideoFrame *frame, opj_image_t * image);
|
||||||
|
|
||||||
gboolean (*decode_frame) (GstVideoDecoder * decoder, GstVideoCodecFrame *frame);
|
GstFlowReturn (*decode_frame) (GstVideoDecoder * decoder, GstVideoCodecFrame *frame);
|
||||||
|
|
||||||
opj_dparameters_t params;
|
opj_dparameters_t params;
|
||||||
|
|
||||||
|
|
|
@ -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_advance_period (GstAdaptiveDemux * demux);
|
||||||
|
|
||||||
static void gst_adaptive_demux_stream_free (GstAdaptiveDemuxStream * stream);
|
static void gst_adaptive_demux_stream_free (GstAdaptiveDemuxStream * stream);
|
||||||
static GstFlowReturn
|
static gboolean
|
||||||
gst_adaptive_demux_stream_push_event (GstAdaptiveDemuxStream * stream,
|
gst_adaptive_demux_stream_push_event (GstAdaptiveDemuxStream * stream,
|
||||||
GstEvent * event);
|
GstEvent * event);
|
||||||
|
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ encoder_disabled:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static GstFlowReturn
|
||||||
theora_enc_finish (GstVideoEncoder * benc)
|
theora_enc_finish (GstVideoEncoder * benc)
|
||||||
{
|
{
|
||||||
GstTheoraEnc *enc;
|
GstTheoraEnc *enc;
|
||||||
|
@ -1071,7 +1071,7 @@ theora_enc_finish (GstVideoEncoder * benc)
|
||||||
|
|
||||||
theora_enc_clear_multipass_cache (enc);
|
theora_enc_clear_multipass_cache (enc);
|
||||||
|
|
||||||
return TRUE;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -1265,7 +1265,7 @@ gst_rtp_h264_pay_send_bundle (GstRtpH264Pay * rtph264pay, gboolean end_of_au)
|
||||||
end_of_au, delta, discont);
|
end_of_au, delta, discont);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static GstFlowReturn
|
||||||
gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
|
gst_rtp_h264_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
|
||||||
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts, gboolean end_of_au,
|
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts, gboolean end_of_au,
|
||||||
gboolean delta_unit, gboolean discont, guint8 nal_header)
|
gboolean delta_unit, gboolean discont, guint8 nal_header)
|
||||||
|
|
|
@ -1351,7 +1351,7 @@ gst_rtp_h265_pay_send_bundle (GstRtpH265Pay * rtph265pay, gboolean marker)
|
||||||
marker, delta_unit);
|
marker, delta_unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static GstFlowReturn
|
||||||
gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
|
gst_rtp_h265_pay_payload_nal_bundle (GstRTPBasePayload * basepayload,
|
||||||
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts,
|
GstBuffer * paybuf, GstClockTime dts, GstClockTime pts,
|
||||||
gboolean marker, gboolean delta_unit, guint8 nal_type,
|
gboolean marker, gboolean delta_unit, guint8 nal_type,
|
||||||
|
|
Loading…
Reference in a new issue