Gst::AudioRingBufferSpec& spec set_caps causes issues while exiting the pieline
Hi,
consider the following prepare_vfunc for Gst::AudioSrc
bool prepare_vfunc(Gst::AudioRingBufferSpec& spec) override
{
spec.set_caps(Gst::Caps::create_from_string("audio/x-raw, format=(string)S16LE, rate=(int)16000,channels=(int)1,layout=(string)interleaved"));
return true;
}
this will cause issues in the pipeline while exiting. (test_audio_plugin:8753): GStreamer-CRITICAL **: 18:34:59.837: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
to Fix this we have to use the c version.
bool prepare_vfunc(Gst::AudioRingBufferSpec& spec) override
{
auto bufferspec = spec.gobj();
bufferspec->caps = gst_caps_ref(gst_caps_from_string("audio/x-raw, format=(string)S16LE, rate=(int)16000,channels=(int)1,layout=(string)interleaved"));
return true;
}
please advise