Initially code entirely taken and adopted from k3b upstream
https://github.com/KDE/k3b/commit/1e09c7d77f6f8af7d108519528e41a9093fdbd94
with subsequent fix of the read() function and reducing of the
compiler warnings.
Signed-off-by: Mashiro <[email protected]>
K3bDevice::CdText::textForPackType returns link to a destructed object
Additionally, same issue was fixed for AudioEncoder module
Signed-off-by: Mashiro <[email protected]>