xbmc/xbmc — pull request #1737 by Montellese (2012-11-05 22:08:02+00:00)
Title: media library: switch to the playlist view matching the currently active view

This fixes http://trac.xbmc.org/ticket/12891 (not being able to use the "Space" key to get back to the video playlist view after stopping playback of a video) but it contains a slight change in behaviour: Up until now when pressing "Space" in the video view while playing some music, we'd jump to the music playlist screen (independent of whether there are items in the video playlist). With this we always jump to the video playlist when being in a video view and if the video playlist contains at least one item. Likewise we always jump to the music playlist when being in a music view and if the music playlist contains at least one item.

The question is whether this change in behaviour makes sense and is acceptable or not?

The cause of this problem is that we set the current playlist to none before we start playing a file from a video view (because playback doesn't go through the playlist player). Therefore after stopping playback there's no active playlist anymore.