for (i = 0; i < AVAIL_STREAMS_MAX; i++) {
if (g_stream_list.stream_types[i] &&
- !strncmp(g_stream_list.stream_types[i], stream_type, strlen(stream_type))) {
+ !strncmp(g_stream_list.stream_types[i], stream_type, strlen(stream_type) + 1)) {
*priority = g_stream_list.priorities[i];
break;
}
if (mask == DEVICE_TYPE_FLAGS || mask == 0)
return true;
- is_builtin = !strncmp(type, builtin_prefix, strlen(builtin_prefix));
+ is_builtin = !strncmp(type, builtin_prefix, strlen(builtin_prefix) + 1);
if ((mask & MM_SOUND_DEVICE_TYPE_INTERNAL_FLAG) && (is_builtin))
return true;
if (!s) {
debug_error("Open pulseaudio handle has failed - %s", pa_strerror(err));
- if (!strncmp(pa_strerror(err), "Access denied by security check", strlen(pa_strerror(err))))
- err = MM_ERROR_SOUND_PERMISSION_DENIED;
- else
- err = MM_ERROR_SOUND_INTERNAL;
+ err = (err == PA_ERR_ACCESS) ?
+ MM_ERROR_SOUND_PERMISSION_DENIED : MM_ERROR_SOUND_INTERNAL;
goto fail;
}
Name: libmm-sound
Summary: MMSound Package contains client lib and focus server binary
-Version: 0.14.1
+Version: 0.14.2
Release: 0
Group: System/Libraries
License: Apache-2.0