Commit 26beaad6 authored by François Cartegnie's avatar François Cartegnie 🤞

vlc_demux: add defines for pf_demux return values

parent de481b7b
......@@ -77,6 +77,11 @@ struct demux_t
input_thread_t *p_input;
};
/* pf_demux return values */
#define VLC_DEMUXER_EOF 0
#define VLC_DEMUXER_EGENERIC -1
#define VLC_DEMUXER_SUCCESS 1
/* demux_t.info.i_update field */
#define INPUT_UPDATE_TITLE 0x0010
#define INPUT_UPDATE_SEEKPOINT 0x0020
......
......@@ -307,7 +307,7 @@ static int Demux( demux_t * p_demux )
}
if( Ogg_BeginningOfStream( p_demux ) != VLC_SUCCESS )
return 0;
return VLC_DEMUXER_EOF;
msg_Dbg( p_demux, "beginning of a group of logical streams" );
......@@ -350,7 +350,7 @@ static int Demux( demux_t * p_demux )
* Demux an ogg page from the stream
*/
if( Ogg_ReadPage( p_demux, &p_sys->current_page ) != VLC_SUCCESS )
return 0; /* EOF */
return VLC_DEMUXER_EOF; /* EOF */
/* Test for End of Stream */
if( ogg_page_eos( &p_sys->current_page ) )
{
......@@ -671,7 +671,7 @@ static int Demux( demux_t * p_demux )
}
}
return 1;
return VLC_DEMUXER_SUCCESS;
}
static void Ogg_ResetStream( logical_stream_t *p_stream )
......
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