mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
fix segfault when --gst-mask=-1 is enabled
Original commit message from CVS: fix segfault when --gst-mask=-1 is enabled
This commit is contained in:
parent
05d819a9a5
commit
a05c17a8b8
1 changed files with 6 additions and 2 deletions
|
@ -1735,8 +1735,12 @@ gst_alsa_set_hw_params (GstAlsa *this)
|
|||
g_return_val_if_fail (this != NULL, FALSE);
|
||||
g_return_val_if_fail (this->handle != NULL, FALSE);
|
||||
|
||||
GST_INFO (GST_CAT_PLUGIN_INFO, "Preparing format: %s %dHz, %d channels\n",
|
||||
snd_pcm_format_name (this->format->format), this->format->rate, this->format->channels);
|
||||
if (this->format) {
|
||||
GST_INFO (GST_CAT_PLUGIN_INFO, "Preparing format: %s %dHz, %d channels",
|
||||
snd_pcm_format_name (this->format->format), this->format->rate, this->format->channels);
|
||||
} else {
|
||||
GST_INFO (GST_CAT_PLUGIN_INFO, "Preparing format: (none)");
|
||||
}
|
||||
|
||||
snd_pcm_hw_params_alloca (&hw_params);
|
||||
ERROR_CHECK (snd_pcm_hw_params_any (this->handle, hw_params),
|
||||
|
|
Loading…
Reference in a new issue