#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+#include <assert.h>
#include <vlc_common.h>
#include <vlc_vout.h>
#include <vlc_filter.h>
#include <vlc_osd.h>
+/* TODO remove access to private vout data */
+#include "vout_internal.h"
+
/**
* \brief Show text on the video for some time
* \param p_vout pointer to the vout the text is to be showed on
if( !psz_string ) return VLC_EGENERIC;
- p_spu = subpicture_New();
+ p_spu = subpicture_New( NULL );
if( !p_spu )
return VLC_EGENERIC;
if( p_style )
p_spu->p_region->p_style = text_style_Duplicate( p_style );
- spu_DisplaySubpicture( p_vout->p_spu, p_spu );
+ spu_DisplaySubpicture( vout_GetSpu( p_vout ), p_spu );
return VLC_SUCCESS;
}
if( vasprintf( &psz_string, psz_format, args ) != -1 )
{
vout_ShowTextRelative( p_vout, i_channel, psz_string, NULL,
- OSD_ALIGN_TOP|OSD_ALIGN_RIGHT,
- 30 + p_vout->fmt_in.i_width
- - p_vout->fmt_in.i_visible_width
- - p_vout->fmt_in.i_x_offset,
- 20 + p_vout->fmt_in.i_y_offset, 1000000 );
+ SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT,
+ 30 + p_vout->p->fmt_in.i_width
+ - p_vout->p->fmt_in.i_visible_width
+ - p_vout->p->fmt_in.i_x_offset,
+ 20 + p_vout->p->fmt_in.i_y_offset, 1000000 );
free( psz_string );
}
vlc_object_release( p_vout );