Commit 60411529 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Privatize input_Preparse

parent c9c8a74b
...@@ -439,9 +439,6 @@ VLC_EXPORT( input_thread_t *, __input_CreateThread, ( vlc_object_t *, input_item ...@@ -439,9 +439,6 @@ VLC_EXPORT( input_thread_t *, __input_CreateThread, ( vlc_object_t *, input_item
VLC_EXPORT( void, input_StopThread, ( input_thread_t * ) ); VLC_EXPORT( void, input_StopThread, ( input_thread_t * ) );
#define input_Preparse(a,b) __input_Preparse(VLC_OBJECT(a),b)
VLC_EXPORT( int, __input_Preparse, ( vlc_object_t *, input_item_t * ) );
#define input_Read(a,b,c) __input_Read(VLC_OBJECT(a),b, c) #define input_Read(a,b,c) __input_Read(VLC_OBJECT(a),b, c)
VLC_EXPORT( int, __input_Read, ( vlc_object_t *, input_item_t *, bool ) ); VLC_EXPORT( int, __input_Read, ( vlc_object_t *, input_item_t *, bool ) );
......
...@@ -412,13 +412,13 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item, ...@@ -412,13 +412,13 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
/** /**
* Initialize an input and initialize it to preparse the item * Initialize an input and initialize it to preparse the item
* This function is blocking. It will only accept to parse files * This function is blocking. It will only accept parsing regular files.
* *
* \param p_parent a vlc_object_t * \param p_parent a vlc_object_t
* \param p_item an input item * \param p_item an input item
* \return VLC_SUCCESS or an error * \return VLC_SUCCESS or an error
*/ */
int __input_Preparse( vlc_object_t *p_parent, input_item_t *p_item ) int input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
{ {
input_thread_t *p_input; input_thread_t *p_input;
......
...@@ -38,6 +38,8 @@ void input_item_SetPreparsed( input_item_t *p_i, bool b_preparsed ); ...@@ -38,6 +38,8 @@ void input_item_SetPreparsed( input_item_t *p_i, bool b_preparsed );
void input_item_SetArtNotFound( input_item_t *p_i, bool b_not_found ); void input_item_SetArtNotFound( input_item_t *p_i, bool b_not_found );
void input_item_SetArtFetched( input_item_t *p_i, bool b_art_fetched ); void input_item_SetArtFetched( input_item_t *p_i, bool b_art_fetched );
int input_Preparse( vlc_object_t *, input_item_t * );
/* misc/stats.c /* misc/stats.c
* FIXME it should NOT be defined here or not coded in misc/stats.c */ * FIXME it should NOT be defined here or not coded in misc/stats.c */
input_stats_t *stats_NewInputStats( input_thread_t *p_input ); input_stats_t *stats_NewInputStats( input_thread_t *p_input );
......
...@@ -182,7 +182,6 @@ input_item_SetMeta ...@@ -182,7 +182,6 @@ input_item_SetMeta
input_item_SetName input_item_SetName
input_item_SetURI input_item_SetURI
input_MetaTypeToLocalizedString input_MetaTypeToLocalizedString
__input_Preparse
__input_Read __input_Read
input_SplitMRL input_SplitMRL
input_StopThread input_StopThread
......
...@@ -127,7 +127,7 @@ static void Preparse( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -127,7 +127,7 @@ static void Preparse( playlist_t *p_playlist, input_item_t *p_item )
/* Do not preparse if it is already done (like by playing it) */ /* Do not preparse if it is already done (like by playing it) */
if( !input_item_IsPreparsed( p_item ) ) if( !input_item_IsPreparsed( p_item ) )
{ {
input_Preparse( p_playlist, p_item ); input_Preparse( VLC_OBJECT(p_playlist), p_item );
input_item_SetPreparsed( p_item, true ); input_item_SetPreparsed( p_item, true );
var_SetInteger( p_playlist, "item-change", p_item->i_id ); var_SetInteger( p_playlist, "item-change", p_item->i_id );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment