summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-02-19 03:12:17 +0000
committerphintuka <phintuka>2008-02-19 03:12:17 +0000
commit57bc04b1fba2a4d021595205f432b0932c87e090 (patch)
treee3d84f7627ceac03cd9d66f5b240e981fccf2fd3 /device.c
parent6c9d5e069d75e94230313e78e05418cc8497b1b6 (diff)
downloadxineliboutput-57bc04b1fba2a4d021595205f432b0932c87e090.tar.gz
xineliboutput-57bc04b1fba2a4d021595205f432b0932c87e090.tar.bz2
Eliminate compiler warning "suggest explicit braces to avoid ambiguous ‘else’"
Diffstat (limited to 'device.c')
-rw-r--r--device.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/device.c b/device.c
index e3ceaf22..b80a65cb 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c,v 1.51 2008-02-19 00:43:04 phelin Exp $
+ * $Id: device.c,v 1.52 2008-02-19 03:12:17 phintuka Exp $
*
*/
@@ -1654,16 +1654,15 @@ void cXinelibDevice::EnsureDvdSpuTrack(void)
const char *cXinelibDevice::GetMetaInfo(eMetainfoType Type)
{
- if(Type >= 0 && Type < mi_Count)
+ if(Type >= 0 && Type < mi_Count) {
if ( Type == 0 || Type > 3 ||
(Type == 1 && xc.playlist_tracknumber == 1) ||
(Type == 2 && xc.playlist_artist == 1) ||
(Type == 3 && xc.playlist_album == 1)) {
return m_MetaInfo[Type];
}
- else {
- return "";
- }
+ return "";
+ }
LOGMSG("cXinelibDevice::GetMetaInfo: unknown metainfo type");
return "";