Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Amarok
Commits
c4eb51e0
Commit
c4eb51e0
authored
Aug 08, 2012
by
Ralf Engels
Browse files
Fix another crash with playlists. MTP playlist this time.
BUG: 297816 FIXED-IN: 2.6
parent
352c20df
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c4eb51e0
...
...
@@ -7,7 +7,7 @@ VERSION 2.6
BUGFIXES:
* Fix problems when sql server is not reachable (BR 298425)
* Fix crash with exporting playlists with invalid tracks (BR 303056 and BR 302607)
* Fix crash with exporting playlists with invalid tracks (BR 303056 and BR 302607
and BR 297816
)
VERSION 2.6-RC
CHANGES:
...
...
src/core-impl/collections/mtpcollection/handler/MtpHandler.cpp
View file @
c4eb51e0
...
...
@@ -866,6 +866,8 @@ MtpHandler::libSavePlaylist( const Playlists::MediaDevicePlaylistPtr &playlist,
uint32_t
i
=
0
;
foreach
(
Meta
::
TrackPtr
trk
,
tracklist
)
{
if
(
!
trk
)
// playlists might contain invalid tracks. see BUG: 297816
continue
;
Meta
::
MediaDeviceTrackPtr
track
=
Meta
::
MediaDeviceTrackPtr
::
staticCast
(
trk
);
tracks
[
i
]
=
m_mtpTrackHash
.
value
(
track
)
->
item_id
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment