Changeset 4ff5e969b5892a9f56ee1b5d77d86bdc7202250f
- Timestamp:
- 11/14/07 16:17:57
(10 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1195053477 +0000
- git-parent:
[6f7b6bf6fd00917d97fb297db4c9f53bd44fe2bb]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1195053477 +0000
- Message:
Fix merge conflicts for src/osd/osd.c
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re6a14c1 |
r4ff5e96 |
|
| 124 | 124 | #define SUBCAT_PLAYLIST_EXPORT 703 |
|---|
| 125 | 125 | |
|---|
| | 126 | #define CAT_OSD 8 |
|---|
| | 127 | #define SUBCAT_OSD_IMPORT 801 |
|---|
| | 128 | |
|---|
| 126 | 129 | struct config_category_t |
|---|
| 127 | 130 | { |
|---|
| rf464bb3 |
r4ff5e96 |
|
| 396 | 396 | /* quick link in the linked list. */ |
|---|
| 397 | 397 | osd_button_t *p_last_button; /*< pointer to last button in the list */ |
|---|
| | 398 | |
|---|
| | 399 | /* misc parser */ |
|---|
| | 400 | module_t *p_module; /*< pointer to parser module */ |
|---|
| | 401 | char *psz_file; /*< Config file name */ |
|---|
| | 402 | image_handler_t *p_image; /*< handler to image loading and conversion libraries */ |
|---|
| 398 | 403 | }; |
|---|
| 399 | 404 | |
|---|
| r736981a |
r4ff5e96 |
|
| 30 | 30 | #include <vlc_osd.h> |
|---|
| 31 | 31 | #include "libvlc.h" |
|---|
| | 32 | #include <vlc_image.h> |
|---|
| 32 | 33 | |
|---|
| 33 | 34 | #undef OSD_MENU_DEBUG |
|---|
| … | … | |
| 77 | 78 | return NULL; |
|---|
| 78 | 79 | } |
|---|
| | 80 | |
|---|
| | 81 | /* Stuff needed for Parser */ |
|---|
| | 82 | p_osd->p_image = image_HandlerCreate( p_this ); |
|---|
| | 83 | if( !p_osd->p_image ) |
|---|
| | 84 | msg_Err( p_this, "unable to load images" ); |
|---|
| | 85 | p_osd->psz_file = strdup( psz_file ); |
|---|
| 79 | 86 | |
|---|
| 80 | 87 | /* Parse configuration file */ |
|---|
| … | … | |
| 117 | 124 | error: |
|---|
| 118 | 125 | msg_Err( p_this, "creating OSD menu object failed" ); |
|---|
| | 126 | |
|---|
| | 127 | if( p_osd->p_image ) |
|---|
| | 128 | image_HandlerDelete( p_osd->p_image ); |
|---|
| | 129 | if( p_osd->psz_file ) |
|---|
| | 130 | free( p_osd->psz_file ); |
|---|
| | 131 | |
|---|
| | 132 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| 119 | 133 | vlc_object_destroy( p_osd ); |
|---|
| 120 | 134 | vlc_mutex_unlock( lockval.p_address ); |
|---|
| … | … | |
| 142 | 156 | |
|---|
| 143 | 157 | osd_ConfigUnload( p_this, &p_osd ); |
|---|
| | 158 | |
|---|
| | 159 | if( p_osd->p_image ) |
|---|
| | 160 | image_HandlerDelete( p_osd->p_image ); |
|---|
| | 161 | if( p_osd->psz_file ) |
|---|
| | 162 | free( p_osd->psz_file ); |
|---|
| | 163 | |
|---|
| 144 | 164 | vlc_object_detach( p_osd ); |
|---|
| 145 | 165 | vlc_object_destroy( p_osd ); |
|---|