bluetooth-device: Add safe guard against BT streaming irregularities.
authorJyri Sarha <jyri.sarha@nokia.com>
Fri, 8 May 2009 10:25:21 +0000 (13:25 +0300)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 May 2009 20:49:42 +0000 (22:49 +0200)
commit44e566ade8a62163007780f7f81b514705e3233b
tree8e11fb5f491ceca0b9c48fe7775475955403816b
parent7f767e5fe660ced7e1cb0207ef0477818152d833
bluetooth-device: Add safe guard against BT streaming irregularities.

Some bad quality BT-headsets block bluez socket sometimes for hundreds
of milliseconds, especially when changing mode. When the module tries
catch up the lost time it may SBC encode up to half a second of audio
without yielding. On slow machine this may cause maximum RT time slice
to be exceeded. Cleaned out the minor fix that slipped into first version
of the patch.
src/modules/bluetooth/module-bluetooth-device.c