diff options
author | phintuka <phintuka> | 2012-08-29 19:25:14 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2012-08-29 19:25:14 +0000 |
commit | 2952537c69ce6f58ffae760ed164d644d106974e (patch) | |
tree | 6369cc7f83dba182979336b991d498a5e5dfb9fe | |
parent | 541b4795ce5ea0d48bcabee0e341aa4143a2f85a (diff) | |
download | xineliboutput-2952537c69ce6f58ffae760ed164d644d106974e.tar.gz xineliboutput-2952537c69ce6f58ffae760ed164d644d106974e.tar.bz2 |
Do not update playlist item title with empty string
-rw-r--r-- | media_player.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media_player.c b/media_player.c index 1826803f..1ebda7fd 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.93 2012-08-29 19:23:15 phintuka Exp $ + * $Id: media_player.c,v 1.94 2012-08-29 19:25:14 phintuka Exp $ * */ @@ -207,7 +207,8 @@ bool cXinelibPlayer::UpdateMetaInfo(bool Force) *Playlist().Current()->Tracknumber ?: "-", tr ?: "-", *Playlist().Current()->Title ?: "-", ti ?: "-"); - m_Playlist.Current()->Title = ti; + if (ti && ti[0]) + m_Playlist.Current()->Title = ti; if (tr && tr[0]) m_Playlist.Current()->Tracknumber = tr; if (al && al[0]) |