diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c index ce61d04037..13505d4c6c 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c @@ -95,10 +95,9 @@ struct _GstV4l2CodecH264Dec GstMapInfo bitstream_map; }; -G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecH264Dec, - gst_v4l2_codec_h264_dec, GST_TYPE_H264_DECODER, - GST_DEBUG_CATEGORY_INIT (v4l2_h264dec_debug, "v4l2codecs-h264dec", 0, - "V4L2 stateless h264 decoder")); +G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecH264Dec, gst_v4l2_codec_h264_dec, + GST_TYPE_H264_DECODER); + #define parent_class gst_v4l2_codec_h264_dec_parent_class static gboolean @@ -1522,6 +1521,9 @@ gst_v4l2_codec_h264_dec_register (GstPlugin * plugin, GstV4l2Decoder * decoder, { GstCaps *src_caps; + GST_DEBUG_CATEGORY_INIT (v4l2_h264dec_debug, "v4l2codecs-h264dec", 0, + "V4L2 stateless h264 decoder"); + if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_H264_SLICE, 320, 240, 8)) return; diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecmpeg2dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecmpeg2dec.c index 38c8fd494c..e3a31dab53 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecmpeg2dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecmpeg2dec.c @@ -92,10 +92,9 @@ struct _GstV4l2CodecMpeg2Dec gboolean copy_frames; }; -G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecMpeg2Dec, - gst_v4l2_codec_mpeg2_dec, GST_TYPE_MPEG2_DECODER, - GST_DEBUG_CATEGORY_INIT (v4l2_mpeg2dec_debug, "v4l2codecs-mpeg2dec", 0, - "V4L2 stateless mpeg2 decoder")); +G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecMpeg2Dec, gst_v4l2_codec_mpeg2_dec, + GST_TYPE_MPEG2_DECODER); + #define parent_class gst_v4l2_codec_mpeg2_dec_parent_class static guint @@ -1054,6 +1053,9 @@ gst_v4l2_codec_mpeg2_dec_register (GstPlugin * plugin, GstV4l2Decoder * decoder, { GstCaps *src_caps; + GST_DEBUG_CATEGORY_INIT (v4l2_mpeg2dec_debug, "v4l2codecs-mpeg2dec", 0, + "V4L2 stateless mpeg2 decoder"); + if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_MPEG2_SLICE, 320, 240, 8)) return; diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp8dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp8dec.c index a319741bfd..6d547c565a 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp8dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp8dec.c @@ -82,10 +82,9 @@ struct _GstV4l2CodecVp8Dec GstMapInfo bitstream_map; }; -G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecVp8Dec, - gst_v4l2_codec_vp8_dec, GST_TYPE_VP8_DECODER, - GST_DEBUG_CATEGORY_INIT (v4l2_vp8dec_debug, "v4l2codecs-vp8dec", 0, - "V4L2 stateless VP8 decoder")); +G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecVp8Dec, gst_v4l2_codec_vp8_dec, + GST_TYPE_VP8_DECODER); + #define parent_class gst_v4l2_codec_vp8_dec_parent_class static guint @@ -933,6 +932,9 @@ gst_v4l2_codec_vp8_dec_register (GstPlugin * plugin, GstV4l2Decoder * decoder, gchar *element_name; GstCaps *src_caps, *alpha_caps; + GST_DEBUG_CATEGORY_INIT (v4l2_vp8dec_debug, "v4l2codecs-vp8dec", 0, + "V4L2 stateless VP8 decoder"); + if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_VP8_FRAME, 320, 240, 8)) return; diff --git a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c index fd635e8cf2..19cd0a71a2 100644 --- a/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c +++ b/subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c @@ -91,12 +91,10 @@ struct _GstV4l2CodecVp9Dec guint subsampling_y; }; -#define parent_class gst_v4l2_codec_vp9_dec_parent_class -G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstV4l2CodecVp9Dec, - gst_v4l2_codec_vp9_dec, GST_TYPE_VP9_DECODER, - GST_DEBUG_CATEGORY_INIT (v4l2_vp9dec_debug, "v4l2codecs-vp9dec", 0, - "V4L2 stateless VP9 decoder")); +G_DEFINE_ABSTRACT_TYPE (GstV4l2CodecVp9Dec, gst_v4l2_codec_vp9_dec, + GST_TYPE_VP9_DECODER); +#define parent_class gst_v4l2_codec_vp9_dec_parent_class static guint gst_v4l2_codec_vp9_dec_get_preferred_output_delay (GstVp9Decoder * decoder, @@ -1131,6 +1129,9 @@ gst_v4l2_codec_vp9_dec_register (GstPlugin * plugin, GstV4l2Decoder * decoder, gchar *element_name; GstCaps *src_caps, *alpha_caps; + GST_DEBUG_CATEGORY_INIT (v4l2_vp9dec_debug, "v4l2codecs-vp9dec", 0, + "V4L2 stateless VP9 decoder"); + if (!gst_v4l2_decoder_set_sink_fmt (decoder, V4L2_PIX_FMT_VP9_FRAME, 320, 240, 8)) return;