all clean depend:
list='$(SUBDIRS)'; \
for subdir in $$list; do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) -C $$subdir $@ || exit 1; \
done
dist-clean:
rm mlt-config packages.dat; \
list='$(SUBDIRS)'; \
for subdir in $$list; do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) -C $$subdir $@ || exit 1; \
done; \
rm config.mak;
-
install:
install -d "$(prefix)/bin"
install -d "$(prefix)/include"
install -m 644 packages.dat "$(prefix)/share/mlt/"
list='$(SUBDIRS)'; \
for subdir in $$list; do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) -C $$subdir $@ || exit 1; \
done; \
/sbin/ldconfig || true
{
int samples = 0;
- if ( fps > 29 && fps <= 30 )
+ if ( ( int )( fps * 100 ) == 2997 )
{
samples = frequency / 30;
list='$(SUBDIRS)'; \
for subdir in $$list; do \
if [ -f $$subdir/Makefile ] ; \
- then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+ then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@ || exit 1; \
fi \
done
list='$(SUBDIRS)'; \
for subdir in $$list; do \
if [ -f $$subdir/Makefile ] ; \
- then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+ then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@ || exit 1; \
fi \
done
list='$(SUBDIRS)'; \
for subdir in $$list; do \
if [ -f $$subdir/Makefile ] ; \
- then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@; \
+ then [ ! -f disable-$$subdir ] && $(MAKE) -C $$subdir $@ || exit 1; \
fi \
done
mlt_consumer consumer_avformat_init( char *arg )
{
// Allocate the consumer
- mlt_consumer this = calloc( 1, sizeof( struct mlt_consumer_s ) );
+ mlt_consumer this = mlt_consumer_new( );
// If memory allocated and initialises without error
- if ( this != NULL && mlt_consumer_init( this, NULL ) == 0 )
+ if ( this != NULL )
{
// Get properties from the consumer
mlt_properties properties = mlt_consumer_properties( this );
this->stop = consumer_stop;
this->is_stopped = consumer_is_stopped;
}
- else
- {
- // Clean up in case of init failure
- free( this );
- this = NULL;
- }
// Return this
return this;