[vlc-devel] Re: [patch] Video Title

Hornsby Adrian adrian_hornsby at yahoo.co.uk
Tue Mar 30 13:21:23 CEST 2004


Is that Ok for you :

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 ( strcmp(video_title ,"") == 0 ) /*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;
            }




>
>
>
> > The --video-x --video-y parts are allready applyed.
> cool.....
>
> >The string comparison of yours work purly by accident.
> Nice accident
>
> >I did not yet read the border code.
> Don't read it .........
>
> >Please send patches against current SVN trunk.
> Where can I get them
>
> >And I kindly suggest you review the string-handling chapter of your C
book.
> Done, thx
>
> Kindly adrian
> ....... sorry not to be a C guru........a VLC guru........and to try
.......
>
>
>
> >
> > Sigmund
> >
> > On Tue, Mar 30, 2004 at 09:42:59AM +0200, Hornsby Adrian wrote:
> > > Okay, Here is a final patch for several modification in the directx
> directory:
> > >
> > > Window Positionning (command line) : --video-x <int> --video-y <int>
> > > Video Title (default as before ) (command line) : --video-title
<string>
> > > Video Border (command line) : --video-border ; --no-video-border    (
> boolean)
> > >
> > > regards
> > >
> > > adrian
> > >
> > > ps: ask for any question or modification needed to apply the patchs
> > >
> >
> >
> >
> >
> >
> >
> >
> > -- 
> > This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> > To unsubscribe, please read http://developers.videolan.org/lists.html
> > If you are in trouble, please contact <postmaster at videolan.org>
>
> -- 
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list