<!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>>>>>>>>Okay, even this is not
working !! knowing that video-title is defined as :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>add_string("video-title",NULL,NULL,VIDEO_TITLE_TEXT,
VIDEO_TITLE_LONGTEXT,VLC_TRUE);<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>>>>>>the video_title never
equal to NULL when I don't call the command --video-title
<string></FONT></DIV>
<DIV><FONT face=Arial size=2>>>>>>>>How could I make the
"if" work ??</FONT></DIV>
<DIV><FONT face=Arial size=2>> >>>>>>with this code,
if I give a "--video-title bbb", it changes the tilte, but the default doesn't
work, it just erase the title >>>>>>>without printing
anything else.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </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>
var_Get( p_event->p_vout, "video-title", &val );<BR>
char* video_title =
val.psz_string;<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<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>
}<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></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<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>