Revision 5580f73...

Go back to digest for 13th November 2011

Bug Fixes in Multimedia

Matěj Laitl committed changes in [amarok] /:

Do not crash in Hander::Capability constructor in Qt debug builds

Hander::Capability::Capability() used to have following code:
moveToThread( hander->thread() );
setParent( handler );

This unfortunately asserts with: ASSERT failure in QCoreApplication
::sendEvent: Cannot send events to objects owned by a different thread
in debugging Qt builds.

Put setParent() call into a slot, and emit a signal to trigger it so
that it is called in object's new thread.

This should fix bug 279798, but it cannot be tested in current master
until bug 285720 is resolved.


FIXED-IN: 2.5

File Changes

Modified 4 files
  •   ChangeLog
  •   src/core-impl/collections/mediadevicecollection/MediaDeviceMeta.cpp
  •   src/core-impl/collections/mediadevicecollection/handler/MediaDeviceHandlerCapability.cpp
  •   src/core-impl/collections/mediadevicecollection/handler/MediaDeviceHandlerCapability.h
4 files changed in total