Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11708 closed Bug Report - General (fixed)

Ejecting the CD/DVD drive causes playback of MP3s to stop

Reported by: stuartm Owned by: paulh
Priority: major Milestone: 0.27
Component: Plugin - MythMusic Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Seems like we're mishandling the media event somewhere, it causes playback to stop and the cursor jumps to the first track in the playlist. It doesn't matter what is in the drive, whether it's empty or contains a disc - when it should only stop playback when it contains a CD and we're playing that CD.

Change History (4)

comment:1 Changed 11 years ago by Paul Harrison <pharrison@…>

In ceb3182f54482da72bb5ba28030a44ebd70e846e/mythtv:

MythMusic: re-acquire the pointer to the current MusicMetadata? when used

Don't store a pointer to the current MusicMetadata? which can become a
stale pointer if for example a playing CD is ejected which removes the
CD tracks from the active playlist. It's much safer to update it each time
it's needed and NULL check the returned pointer.

Refs #11708.

comment:2 Changed 11 years ago by Paul Harrison <pharrison@…>

In 3823b0ea2af226bc774e1de3f756e619d9b4e089/mythtv:

MythMusic: Stop playing if a CD is ejected and we were playing a track from it

Refs #11708.

comment:3 Changed 11 years ago by Paul Harrison <pharrison@…>

Owner: set to Paul Harrison <pharrison@…>
Resolution: fixed
Status: newclosed

In 68256e384a60644dd985cc5e340978d7c060b8c1/mythtv:

MythMusic: Don't stop playback when ejecting a CD/DVD drive

Don't assume that all the tracks on the active playlist was removed when we
receive a media changed event for an ejected CD/DVD.

Fixes #11708.

comment:4 Changed 11 years ago by paulh

Owner: changed from Paul Harrison <pharrison@…> to paulh
Note: See TracTickets for help on using tickets.