mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
omxaudioenc: implement GstPreset interface
To allow user to use GstPreset to quickly save and load a set of parameters. https://bugzilla.gnome.org/show_bug.cgi?id=767907
This commit is contained in:
parent
0c265c1e0e
commit
d07aa49943
1 changed files with 6 additions and 4 deletions
|
@ -55,13 +55,15 @@ enum
|
|||
};
|
||||
|
||||
/* class initialization */
|
||||
|
||||
#define DEBUG_INIT \
|
||||
#define do_init \
|
||||
{ \
|
||||
GST_DEBUG_CATEGORY_INIT (gst_omx_audio_enc_debug_category, "omxaudioenc", 0, \
|
||||
"debug category for gst-omx audio encoder base class");
|
||||
"debug category for gst-omx audio encoder base class"); \
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, NULL); \
|
||||
}
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstOMXAudioEnc, gst_omx_audio_enc,
|
||||
GST_TYPE_AUDIO_ENCODER, DEBUG_INIT);
|
||||
GST_TYPE_AUDIO_ENCODER, do_init);
|
||||
|
||||
static void
|
||||
gst_omx_audio_enc_class_init (GstOMXAudioEncClass * klass)
|
||||
|
|
Loading…
Reference in a new issue