lp:~albaguirre/media-hub/fix-using-dead-objects
- Get this branch:
- bzr branch lp:~albaguirre/media-hub/fix-using-dead-objects
Branch merges
- Thomas Voß (community): Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Jim Hodapp: Pending requested
-
Diff: 93 lines (+45/-2)3 files modifiedsrc/core/media/gstreamer/engine.cpp (+5/-1)
src/core/media/player_implementation.cpp (+26/-0)
src/core/media/player_skeleton.cpp (+14/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 75. By Alberto Aguirre
-
Remove previous workaround - gstreamer sometimes hangs when resetting the pipeline.
- 74. By Alberto Aguirre
-
avoid state changes after client has been disconnected.
There is a potential race between getting a notification, resetting the pipeline and another instance starting, which will attempt to pause the other player instance for which its client has died.
- 69. By Alberto Aguirre
-
Fix self deadlock when clients disconnect from media::Player
When receiving a media::
PlayerImplement ation on_client_ disconnected signal, avoid calling
remove_player_ for_key within the same context as the player object may be deleted (which owns
the signal object whose destructor waits until all slots are dispatched). Fixes: 1371454
Approved by: Jim Hodapp, Thomas Voß - 68. By Alberto Aguirre
-
Prevent dead object access by asynchronous calls to clear_wakelock in media::
PlayerImplement ation:: Private On an player engine state change - detached threads are launched to clear system/display wakelocks in the future.
Before those threads get a chance to execute, media::PlayerImplement ation can be destroyed. By holding a weak_ptr to
media::PlayerImplemen tation: :Private in the launched threads, access to dead Private objects is prevented. Fixes: 1373722
Approved by: Jim Hodapp, PS Jenkins bot - 66. By Alberto Aguirre
-
Fix wake lock state machine and subtle race conditions on wake lock refcounts. Fixes: 1368786
Approved by: Jim Hodapp, PS Jenkins bot
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:media-hub