<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok, can someone tell me what's wrong with this 
following code. It never changes the value of video_title !!!</FONT></DIV>
<DIV><FONT face=Arial size=2>if (var_Get( p_event->p_vout, "video-title", 
&val 
))<BR>            
{<BR>          video_title = 
val.psz_string;<BR>          
}<BR>seems not to work or to get the value given by the command line : 
"--video-title "bbc world" for exemple</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>all code event.c (directx):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>case 
WM_VLC_CHANGE_TEXT:<BR>            
var_Create( p_event->p_vout, "video-title", VLC_VAR_STRING | 
VLC_VAR_DOINHERIT 
);<BR>            char * 
video_title = 
NULL;<BR>            if 
(var_Get( p_event->p_vout, "video-title", &val 
))<BR>            
{<BR>          video_title = 
val.psz_string;<BR>          
}<BR>      <BR>     
<BR>     if (video_title == NULL) /*default video 
Title*/<BR>     {     
<BR>            if( 
p_event->p_vout->p_sys->b_using_overlay 
)<BR>                
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
VOUT_TITLE " (hardware YUV overlay DirectX output)" 
);<BR>            else 
if( p_event->p_vout->p_sys->b_hw_yuv 
)<BR>                
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
VOUT_TITLE " (hardware YUV DirectX output)" 
);<BR>            else 
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
VOUT_TITLE " (software RGB DirectX output)" 
);<BR>            
break;<BR>            
}<BR>            
<BR>            else if 
(video_title != 
NULL)<BR>            
{<BR>            if( 
p_event->p_vout->p_sys->b_using_overlay 
)<BR>                
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
video_title 
);<BR>            else 
if( p_event->p_vout->p_sys->b_hw_yuv 
)<BR>                
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
video_title 
);<BR>            else 
SetWindowText( 
p_event->p_vout->p_sys->hwnd,<BR>                    
video_title 
);<BR>                    
<BR>            
break;<BR>            
}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial 
size=2>************************************************************<BR>HORNSBY 
Adrian<BR>Teräskatu 7 D 67 <BR>33720 Tampere<BR>FINLAND<BR>#Tel :+358 
(0)456376712<BR><A 
href="http://www.students.tut.fi/~hornsby/">http://www.students.tut.fi/~hornsby/</A><BR>************************************************************<BR>Tampere 
University of Technology -TTY<BR>Information Technology - 
Tietotalo<BR>Department of Signal Processing <BR>TF 314<BR>33720 
Tampere<BR>FINLAND<BR>************************************************************</FONT></DIV></BODY></HTML>