Changeset 6f5ee98782b887d86e40e04b9b88ed0b38ba117e
- Timestamp:
- 27/06/08 13:49:59
(5 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1214567399 +0200
- git-parent:
[9ad990ac8df8a3a29ef20f9771d59633789c3146]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1214566150 +0200
- Message:
Don't segfault when looking for art with the lua scripts. Thanks to ILEoo for spoting the bug.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r95addd5 |
r6f5ee98 |
|
| 59 | 59 | * Init lua |
|---|
| 60 | 60 | *****************************************************************************/ |
|---|
| | 61 | static luaL_Reg p_reg[] = { { NULL, NULL } }; |
|---|
| | 62 | |
|---|
| 61 | 63 | static lua_State * vlclua_meta_init( vlc_object_t *p_this, input_item_t * p_item ) |
|---|
| 62 | 64 | { |
|---|
| … | … | |
| 72 | 74 | luaL_openlibs( L ); /* XXX: Don't open all the libs? */ |
|---|
| 73 | 75 | |
|---|
| 74 | | luaL_register( L, "vlc", NULL /* FIXME ? */ ); |
|---|
| | 76 | luaL_register( L, "vlc", p_reg ); |
|---|
| 75 | 77 | |
|---|
| 76 | 78 | luaopen_msg( L ); |
|---|