[vlc-devel] video title now working

Hornsby Adrian adrian_hornsby at yahoo.co.uk
Mon Mar 29 16:09:25 CEST 2004


Okay,
Now it is working with this code (so obvious :( as char* video_title is a pointer !!!!!!)
I'll send the patch tomorrow.
adrian


case WM_VLC_CHANGE_TEXT:
            var_Create( p_event->p_vout, "video-title", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
            var_Get( p_event->p_vout, "video-title", &val );
       char* video_title = val.psz_string;
       
    
     if (*video_title == NULL ) /*default video Title*/
     {     
            if( p_event->p_vout->p_sys->b_using_overlay )
                SetWindowText( p_event->p_vout->p_sys->hwnd,
                    VOUT_TITLE " (hardware YUV overlay DirectX output)" );
            else if( p_event->p_vout->p_sys->b_hw_yuv )
                SetWindowText( p_event->p_vout->p_sys->hwnd,
                    VOUT_TITLE " (hardware YUV DirectX output)" );
            else SetWindowText( p_event->p_vout->p_sys->hwnd,
                    VOUT_TITLE " (software RGB DirectX output)" );
            break;
            }
            
            else
            {
            SetWindowText( p_event->p_vout->p_sys->hwnd,
                    video_title );  
            break;      
            }


************************************************************
HORNSBY Adrian
Teräskatu 7 D 67 
33720 Tampere
FINLAND
#Tel :+358 (0)456376712
http://www.students.tut.fi/~hornsby/
************************************************************
Tampere University of Technology -TTY
Information Technology - Tietotalo
Department of Signal Processing 
TF 314
33720 Tampere
FINLAND
************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20040329/2b49b8b9/attachment.html>


More information about the vlc-devel mailing list