mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
basevideo: Add preset interface to encoder
This commit is contained in:
parent
1dae15d762
commit
35aae561e8
1 changed files with 14 additions and 2 deletions
|
@ -42,9 +42,21 @@ static const GstQueryType *gst_base_video_encoder_get_query_types (GstPad *
|
||||||
static gboolean gst_base_video_encoder_src_query (GstPad * pad,
|
static gboolean gst_base_video_encoder_src_query (GstPad * pad,
|
||||||
GstQuery * query);
|
GstQuery * query);
|
||||||
|
|
||||||
|
static void
|
||||||
|
_do_init (GType object_type)
|
||||||
|
{
|
||||||
|
const GInterfaceInfo preset_interface_info = {
|
||||||
|
NULL, /* interface_init */
|
||||||
|
NULL, /* interface_finalize */
|
||||||
|
NULL /* interface_data */
|
||||||
|
};
|
||||||
|
|
||||||
GST_BOILERPLATE (GstBaseVideoEncoder, gst_base_video_encoder, GstBaseVideoCodec,
|
g_type_add_interface_static (object_type, GST_TYPE_PRESET,
|
||||||
GST_TYPE_BASE_VIDEO_CODEC);
|
&preset_interface_info);
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_BOILERPLATE_FULL (GstBaseVideoEncoder, gst_base_video_encoder,
|
||||||
|
GstBaseVideoCodec, GST_TYPE_BASE_VIDEO_CODEC, _do_init);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_base_video_encoder_base_init (gpointer g_class)
|
gst_base_video_encoder_base_init (gpointer g_class)
|
||||||
|
|
Loading…
Reference in a new issue