* Preamble
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <vlc_demux.h>
#include <vlc_stream.h>
#include <vlc_meta.h>
-#include <vlc_input.h>
/* ffmpeg header */
#ifdef HAVE_FFMPEG_AVFORMAT_H
( p_sys->ic->duration != (int64_t)AV_NOPTS_VALUE ) ?
p_sys->ic->duration * 1000000 / AV_TIME_BASE : -1 );
- input_thread_t *p_input = (input_thread_t *)vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT );
- if( p_input )
- {
- module_t *p_meta = module_Need( p_demux, "meta reader", NULL, 0 );
- if( p_meta )
- {
- vlc_meta_Merge( input_GetItem(p_input)->p_meta, (vlc_meta_t*)(p_demux->p_private ) );
- module_Unneed( p_demux, p_meta );
- }
- vlc_object_release( p_input );
- }
-
return VLC_SUCCESS;
}
return stream_Tell( p_demux->s );
}
-#else /* HAVE_FFMPEG_AVFORMAT_H */
-
-int E_(OpenDemux)( vlc_object_t *p_this )
-{
- return VLC_EGENERIC;
-}
-
-void E_(CloseDemux)( vlc_object_t *p_this )
-{
-}
-
#endif /* HAVE_FFMPEG_AVFORMAT_H */