+ Correction to ldflags for Darwin
src/modules/avformat/Makefile
src/modules/avformat/configure
+ Correction for avformat on Darwin
src/modules/sdl/consumer_sdl.c
src/modules/sdl/consumer_sdl_preview.c
src/modules/sdl/consumer_sdl_still.c
+ Forgot to create the surface on the start (doh)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@815
d19143bc-622f-0410-bfdd-
b5b2a6649095
Darwin)
echo "CFLAGS+=-D__DARWIN__ `sdl-config --cflags`"
echo "SHFLAGS=-dynamiclib"
- echo "LIBDL=`sdl-config --libs`"
+ echo "LDFLAGS+=`sdl-config --libs`"
;;
Linux)
echo "CFLAGS+=-pthread"
LDFLAGS+=-L../../framework
-LDFLAGS+=-lavformat$(AVFORMAT_SUFFIX) -lavcodec$(AVFORMAT_SUFFIX) $(EXTRA_LIBS) -lmlt
+LDFLAGS+=-lavformat$(AVFORMAT_SUFFIX) -lavcodec$(AVFORMAT_SUFFIX) -lavutil$(AVFORMAT_SUFFIX) $(EXTRA_LIBS) -lmlt
SRCS := $(OBJS:.o=.c)
echo > config.mak
export static_ffmpeg=
- export shared_ffmpeg=`whereis ffmpeg | cut -f 2 -d' '`
+ export shared_ffmpeg=`which ffmpeg`
export extra_libs=
export cvs_ffmpeg=
export avformat_suffix=
then
if [ -d "$static_ffmpeg" ]
then
- echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec" >> config.mak
- echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec" >> config.mak
+ echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec -I$static_ffmpeg/libavutil" >> config.mak
+ echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec -L$static_ffmpeg/libavutil" >> config.mak
[ $targetos = "Darwin" ] &&
echo "LDFLAGS+=-single_module" >> config.mak
else
echo 0
fi
else
- if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat.so" ]
+ if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat$LIBSUF" ]
then
echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
echo "LDFLAGS+=-L$shared_ffmpeg/lib" >> config.mak
if ( !mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( parent ), "audio_off" ) )
SDL_InitSubSystem( SDL_INIT_AUDIO );
+ this->sdl_screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags );
+
pthread_create( &this->thread, NULL, consumer_thread, this );
}
SDL_EnableKeyRepeat( SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL );
SDL_EnableUNICODE( 1 );
+ mlt_consumer_start( this->still );
+
pthread_create( &this->thread, NULL, consumer_thread, this );
}
}
}
+ this->sdl_screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags );
+
pthread_create( &this->thread, NULL, consumer_thread, this );
}