Changeset 4ff5e969b5892a9f56ee1b5d77d86bdc7202250f

Show
Ignore:
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
  • include/vlc_configuration.h

    re6a14c1 r4ff5e96  
    124124   #define SUBCAT_PLAYLIST_EXPORT 703 
    125125 
     126#define CAT_OSD 8 
     127   #define SUBCAT_OSD_IMPORT 801 
     128 
    126129struct config_category_t 
    127130{ 
  • include/vlc_osd.h

    rf464bb3 r4ff5e96  
    396396    /* quick link in the linked list. */ 
    397397    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 */ 
    398403}; 
    399404 
  • src/osd/osd.c

    r736981a r4ff5e96  
    3030#include <vlc_osd.h> 
    3131#include "libvlc.h" 
     32#include <vlc_image.h> 
    3233 
    3334#undef OSD_MENU_DEBUG 
     
    7778            return NULL; 
    7879        } 
     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 ); 
    7986 
    8087        /* Parse configuration file */ 
     
    117124error: 
    118125    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 ); 
    119133    vlc_object_destroy( p_osd ); 
    120134    vlc_mutex_unlock( lockval.p_address ); 
     
    142156 
    143157    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 
    144164    vlc_object_detach( p_osd ); 
    145165    vlc_object_destroy( p_osd );