24 #ifndef __NVDS_SPEECH_CUSTOMLIB_BASE_HPP__
25 #define __NVDS_SPEECH_CUSTOMLIB_BASE_HPP__
27 #include <gst/audio/audio.h>
28 #include <gst/base/gstbasetransform.h>
50 GstPadDirection direction, GstCaps* inCaps,
51 GstCaps* otherCaps)
override;
100 GstStructure* outStr = gst_caps_get_structure(
m_outCaps, 0);
101 if (gst_structure_has_name(outStr,
"audio/x-raw")) {
126 GstPadDirection direction, GstCaps* inCaps, GstCaps* otherCaps)
130 "WARNING: DSCustomLibraryBase detect empty otherCaps, will try "
132 return gst_caps_ref(inCaps);
135 GstCaps* result =
nullptr;
136 if (!gst_caps_is_fixed(otherCaps)) {
137 result = gst_caps_fixate(otherCaps);
140 result = gst_caps_ref(otherCaps);