"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/bluetooth/backend-ofono.c" between
pulseaudio-14.0.tar.xz and pulseaudio-14.2.tar.xz

About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.

backend-ofono.c  (pulseaudio-14.0.tar.xz):backend-ofono.c  (pulseaudio-14.2.tar.xz)
skipping to change at line 630 skipping to change at line 630
DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_UNIX_FD, &fd, DBUS_TYPE_UNIX_FD, &fd,
DBUS_TYPE_BYTE, &codec, DBUS_TYPE_BYTE, &codec,
DBUS_TYPE_INVALID) == FALSE) { DBUS_TYPE_INVALID) == FALSE) {
pa_assert_se(r = dbus_message_new_error(m, "org.ofono.Error.InvalidArgum ents", "Invalid arguments in method call")); pa_assert_se(r = dbus_message_new_error(m, "org.ofono.Error.InvalidArgum ents", "Invalid arguments in method call"));
return r; return r;
} }
card = pa_hashmap_get(backend->cards, path); card = pa_hashmap_get(backend->cards, path);
card->connecting = false;
if (!card || codec != HFP_AUDIO_CODEC_CVSD || card->fd >= 0) { if (!card || codec != HFP_AUDIO_CODEC_CVSD || card->fd >= 0) {
pa_log_warn("New audio connection invalid arguments (path=%s fd=%d, code c=%d)", path, fd, codec); pa_log_warn("New audio connection invalid arguments (path=%s fd=%d, code c=%d)", path, fd, codec);
pa_assert_se(r = dbus_message_new_error(m, "org.ofono.Error.InvalidArgum ents", "Invalid arguments in method call")); pa_assert_se(r = dbus_message_new_error(m, "org.ofono.Error.InvalidArgum ents", "Invalid arguments in method call"));
shutdown(fd, SHUT_RDWR); shutdown(fd, SHUT_RDWR);
close(fd); close(fd);
return r; return r;
} }
pa_log_debug("New audio connection on card %s (fd=%d, codec=%d)", path, fd, codec); pa_log_debug("New audio connection on card %s (fd=%d, codec=%d)", path, fd, codec);
card->connecting = false;
card->fd = fd; card->fd = fd;
card->transport->codec = codec; card->transport->codec = codec;
pa_bluetooth_transport_set_state(card->transport, PA_BLUETOOTH_TRANSPORT_STA TE_PLAYING); pa_bluetooth_transport_set_state(card->transport, PA_BLUETOOTH_TRANSPORT_STA TE_PLAYING);
pa_assert_se(r = dbus_message_new_method_return(m)); pa_assert_se(r = dbus_message_new_method_return(m));
return r; return r;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)