[vlc-commits] demux: playlist: fix GetCurrentItem helper
Thomas Guillem
git at videolan.org
Tue Jul 24 09:35:40 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jul 24 09:34:01 2018 +0200| [bfb59fc493b4c64db92015f88db9f2b5972966e6] | committer: Thomas Guillem
demux: playlist: fix GetCurrentItem helper
This obviously lead to severe crashes.
Regression from 6b96ade7dd97acb49303a0a9da9b3d2056b808e0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bfb59fc493b4c64db92015f88db9f2b5972966e6
---
modules/demux/playlist/playlist.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/playlist.h b/modules/demux/playlist/playlist.h
index 883ca677df..6f7f99792c 100644
--- a/modules/demux/playlist/playlist.h
+++ b/modules/demux/playlist/playlist.h
@@ -60,7 +60,7 @@ int Import_iTML ( vlc_object_t * );
int Import_WPL ( vlc_object_t * );
void Close_WPL ( vlc_object_t * );
-#define GetCurrentItem(obj) input_GetItem((obj)->p_input_item)
+#define GetCurrentItem(obj) ((obj)->p_input_item)
#define GetSource(obj) ((obj)->s)
#define CHECK_FILE(obj) \
More information about the vlc-commits
mailing list