successful and VLC_SUCCESS on success, instead of returning void.
* osd.h : Constants for use with osd modules
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* osd.h : Constants for use with osd modules
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: osd.h,v 1.7 2004/02/15 18:22:26 sigmunau Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
static const text_style_t default_text_style = { 22, 0xffffff, VLC_FALSE, VLC_FALSE, VLC_FALSE };
VLC_EXPORT( subpicture_t *, vout_ShowTextRelative, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t ) );
static const text_style_t default_text_style = { 22, 0xffffff, VLC_FALSE, VLC_FALSE, VLC_FALSE };
VLC_EXPORT( subpicture_t *, vout_ShowTextRelative, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t ) );
-VLC_EXPORT( void, vout_ShowTextAbsolute, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t, mtime_t ) );
+VLC_EXPORT( int, vout_ShowTextAbsolute, ( vout_thread_t *, char *, text_style_t *, int, int, int, mtime_t, mtime_t ) );
VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, char *, ... ) );
/**
* Same as __vlc_OSDMessage() but with automatic casting
VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, char *, ... ) );
/**
* Same as __vlc_OSDMessage() but with automatic casting
* video_text.c : text manipulation functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
* video_text.c : text manipulation functions
*****************************************************************************
* Copyright (C) 1999-2004 VideoLAN
- * $Id: video_text.c,v 1.52 2004/02/17 03:12:00 hartman Exp $
*
* Author: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
* Author: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
* if this is 0 the string will be shown untill the next string
* is about to be shown
*/
* if this is 0 the string will be shown untill the next string
* is about to be shown
*/
-void vout_ShowTextAbsolute( vout_thread_t *p_vout, char *psz_string,
- text_style_t *p_style, int i_flags,
- int i_hmargin, int i_vmargin, mtime_t i_start,
- mtime_t i_stop )
+int vout_ShowTextAbsolute( vout_thread_t *p_vout, char *psz_string,
+ text_style_t *p_style, int i_flags,
+ int i_hmargin, int i_vmargin, mtime_t i_start,
+ mtime_t i_stop )
{
if ( p_vout->pf_add_string )
{
{
if ( p_vout->pf_add_string )
{
- p_vout->pf_add_string( p_vout, psz_string, p_style, i_flags, i_hmargin,
- i_vmargin, i_start, i_stop );
+ p_vout->pf_add_string( p_vout, psz_string, p_style, i_flags,
+ i_hmargin, i_vmargin, i_start, i_stop );
+ return VLC_SUCCESS;
}
else
{
msg_Warn( p_vout, "No text renderer found" );
}
else
{
msg_Warn( p_vout, "No text renderer found" );