~ubuntu-branches/ubuntu/quantal/mlt++/quantal

« back to all changes in this revision

Viewing changes to src/MltFactory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-11-14 17:35:13 UTC
  • mfrom: (0.1.3 squeeze) (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081114173513-mjqzrkgssrm0t2f8
Tags: 0.3.2-1
* New upstream release.
* Refresh patches:
  - 01_remove_ldconfig
  - 02_custom_ldflags
* Remove 03_disable_test patch. deprecated.
* Add 04_add_valerie_ldflags patch to add mlt-valerie to LDFLAGS.
* Update debian/control:
  - Add versionned build dependency to libmlt-dev.
  - Add pkg-config build dependency.
  - Bump Standards-Version to 3.8.0. No changes needed.
  - Bump libmlt++ soname. libmlt++1 conflicts/replaces libmlt++0.2.
* Update debian/copyright: add Dan Dennedy copyrights.
* Update debian/rules: remove lintian override installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * MltFactory.cpp - MLT Wrapper
3
3
 * Copyright (C) 2004-2005 Charles Yates
 
4
 * Copyright (C) 2008 Dan Dennedy <dan@dennedy.org>
4
5
 * Author: Charles Yates <charles.yates@pandora.be>
5
6
 *
6
7
 * This program is free software; you can redistribute it and/or modify
23
24
#include "MltFilter.h"
24
25
#include "MltTransition.h"
25
26
#include "MltConsumer.h"
 
27
#include "MltRepository.h"
26
28
using namespace Mlt;
27
29
 
28
 
int Factory::init( char *arg )
 
30
Repository *Factory::init( const char *directory )
29
31
{
30
 
        return mlt_factory_init( arg );
 
32
        return new Repository( mlt_factory_init( directory ) );
31
33
}
32
34
 
33
35
Properties *Factory::event_object( )
35
37
        return new Properties( mlt_factory_event_object( ) );
36
38
}
37
39
 
38
 
Producer *Factory::producer( char *id, char *arg )
39
 
{
40
 
        return new Producer( id, arg );
41
 
}
42
 
 
43
 
Filter *Factory::filter( char *id, char *arg )
44
 
{
45
 
        return new Filter( id, arg );
46
 
}
47
 
 
48
 
Transition *Factory::transition( char *id, char *arg )
49
 
{
50
 
        return new Transition( id, arg );
51
 
}
52
 
 
53
 
Consumer *Factory::consumer( char *id, char *arg )
54
 
{
55
 
        return new Consumer( id, arg );
 
40
Producer *Factory::producer( Profile& profile, char *id, char *arg )
 
41
{
 
42
        return new Producer( profile, id, arg );
 
43
}
 
44
 
 
45
Filter *Factory::filter( Profile& profile, char *id, char *arg )
 
46
{
 
47
        return new Filter( profile, id, arg );
 
48
}
 
49
 
 
50
Transition *Factory::transition( Profile& profile, char *id, char *arg )
 
51
{
 
52
        return new Transition( profile, id, arg );
 
53
}
 
54
 
 
55
Consumer *Factory::consumer( Profile& profile, char *id, char *arg )
 
56
{
 
57
        return new Consumer( profile, id, arg );
56
58
}
57
59
 
58
60
#ifdef WIN32