mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
webrtcdsp: Workaround GCC/MingW 4.7 limitations
It refuses to initialize a classes using brackets notation. This is to allow building using our mingw version.
This commit is contained in:
parent
640100fdb6
commit
d992f49cb7
1 changed files with 12 additions and 10 deletions
|
@ -458,16 +458,18 @@ gst_webrtc_dsp_setup (GstAudioFilter * filter, const GstAudioInfo * info)
|
||||||
GST_WEBRTC_ECHO_PROBE_UNLOCK (self->probe);
|
GST_WEBRTC_ECHO_PROBE_UNLOCK (self->probe);
|
||||||
}
|
}
|
||||||
|
|
||||||
pconfig = {
|
/* input stream */
|
||||||
/* input stream */
|
pconfig.streams[webrtc::ProcessingConfig::kInputStream] =
|
||||||
webrtc::StreamConfig (info->rate, info->channels, false),
|
webrtc::StreamConfig (info->rate, info->channels, false);
|
||||||
/* output stream */
|
/* output stream */
|
||||||
webrtc::StreamConfig (info->rate, info->channels, false),
|
pconfig.streams[webrtc::ProcessingConfig::kOutputStream] =
|
||||||
/* reverse input stream */
|
webrtc::StreamConfig (info->rate, info->channels, false);
|
||||||
webrtc::StreamConfig (probe_info.rate, probe_info.channels, false),
|
/* reverse input stream */
|
||||||
/* reverse output stream */
|
pconfig.streams[webrtc::ProcessingConfig::kReverseInputStream] =
|
||||||
webrtc::StreamConfig (probe_info.rate, probe_info.channels, false),
|
webrtc::StreamConfig (probe_info.rate, probe_info.channels, false);
|
||||||
};
|
/* reverse output stream */
|
||||||
|
pconfig.streams[webrtc::ProcessingConfig::kReverseOutputStream] =
|
||||||
|
webrtc::StreamConfig (probe_info.rate, probe_info.channels, false);
|
||||||
|
|
||||||
if ((err = apm->Initialize (pconfig)) < 0)
|
if ((err = apm->Initialize (pconfig)) < 0)
|
||||||
goto initialize_failed;
|
goto initialize_failed;
|
||||||
|
|
Loading…
Reference in a new issue