Mercurial > mplayer.hg
diff gui/dialog/playlist.c @ 36772:0da6c7ff95d2
Revise code of listMgr() command PLAYLIST_ITEM_GET_POS.
Use uintptr_t type return variable.
Additionally, include stdint.h.
author | ib |
---|---|
date | Mon, 17 Feb 2014 00:39:09 +0000 |
parents | e788bcd9d49b |
children | 5ea757ca6270 |
line wrap: on
line diff
--- a/gui/dialog/playlist.c Sun Feb 16 16:30:05 2014 +0000 +++ b/gui/dialog/playlist.c Mon Feb 17 00:39:09 2014 +0000 @@ -21,6 +21,7 @@ #include <string.h> #include <dirent.h> #include <unistd.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -158,7 +159,7 @@ if ( old ) { listMgr( PLAYLIST_ITEM_SET_CURR,old ); - guiInfo.Track = (intptr_t) listMgr( PLAYLIST_ITEM_GET_POS,old ); + guiInfo.Track = (uintptr_t) listMgr( PLAYLIST_ITEM_GET_POS,old ); item = NULL; } } @@ -171,7 +172,7 @@ } } else if (isPlaylistStreamtype && !guiInfo.Playing) uiUnsetFile(); - guiInfo.Tracks = (intptr_t) listMgr( PLAYLIST_ITEM_GET_POS,0 ); + guiInfo.Tracks = (uintptr_t) listMgr( PLAYLIST_ITEM_GET_POS,0 ); free(curr.path); free(curr.name); }