Skip to content

Commit

Permalink
fixed: ticket xbmc#10148 - a m3u playlist can contain video files. ne…
Browse files Browse the repository at this point in the history
…ed to check before we set audio duration on items. thanks to Gwan

(cherry picked from commit 702c210bbd847c7c08a532ceeed95d86c35a6419)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@33725 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
mkortstiege committed Sep 13, 2010
1 parent 6058fcf commit f077f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/PlayListM3U.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool CPlayListM3U::Load(const CStdString& strFileName)
CUtil::GetQualifiedFilename(m_strBasePath, strFileName);
CFileItemPtr newItem(new CFileItem(strInfo));
newItem->m_strPath = strFileName;
if (lDuration)
if (lDuration && newItem->IsAudio())
newItem->GetMusicInfoTag()->SetDuration(lDuration);
Add(newItem);

Expand Down

0 comments on commit f077f30

Please sign in to comment.