Add additional protection on the write size in QAudioOuput(pulseaudio)
Add additional protection on the write size in QAudioOuput(pulseaudio)

Check and cap the write size in pull mode to handle the case
where user returned an invalid write size through QIODevice

Change-Id: Ie0610a63f1d5400fba87f32a99bdc38479e0e7e8
Reviewed-by: Michael Goddard <3ec82c9d770214b86c58e0ffe200ac64c3ff8da3@nokia.com>
Reviewed-by: Jonas Rabbe <6e9178b26dba0cd114a9aed0874c56cbbaba6438@nokia.com>

mer-qt/qtmultimedia,nezticle/qtmultimedia,mer-qt/qtmultimedia,sergiusens/qtmultimedia,mer-qt/qtmultimedia,webOS-ports/qtmultimedia,webOS-ports/qtmultimedia,nezticle/qtmultimedia,mer-qt/qtmultimedia,jfaust/qtmultimedia,mer-qt/qtmultimedia,sergiusens/qtmultimedia,nezticle/qtmultimedia,jfaust/qtmultimedia,webOS-ports/qtmultimedia,nezticle/qtmultimedia,jfaust/qtmultimedia,webOS-ports/qtmultimedia,sergiusens/qtmultimedia,sergiusens/qtmultimedia,jfaust/qtmultimedia,jfaust/qtmultimedia,webOS-ports/qtmultimedia,sergiusens/qtmultimedia,nezticle/qtmultimedia