~ubuntu-branches/ubuntu/lucid/ming/lucid

« back to all changes in this revision

Viewing changes to test/Video/test02-cxx.C

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-02-11 10:57:41 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100211105741-lzpmxc0703c4bo1w
Tags: 1:0.4.3-1ubuntu1
* Merge from Debian unstable (LP: #192664), remaining changes:
  - Python 2.6 transition:
    - debian/rules:
      + Include /usr/share/python/python.mk.
      + Add py_setup_install_args macro to setup.py install.
      + Installed modules differ between python versions and can't be shared,
        use DH_PYCENTRAL=nomove.
    - Remove unnecessary debian/python-ming.{dirs,files}, Python 2.3 is not
      supported anymore.
* debian/control: separate dependencies by commas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <mingpp.h>
 
2
#include <cstdlib>
 
3
 
 
4
int main ()
 
5
{
 
6
try {
 
7
  SWFMovie *movie;
 
8
  SWFVideoStream *video1;
 
9
  SWFVideoStream *video2;
 
10
 
 
11
  movie = new SWFMovie(7);
 
12
 
 
13
  video1 = new SWFVideoStream ();
 
14
  movie->add (video1);
 
15
 
 
16
  video2 = new SWFVideoStream ();
 
17
  movie->add ( video2);
 
18
 
 
19
  movie->save ("test02.swf");
 
20
}
 
21
catch(SWFException &e)
 
22
{
 
23
        std::cerr << "SWFException: " << e.what() << std::endl << std::endl;
 
24
        return EXIT_FAILURE;
 
25
}
 
26
return 0;
 
27
 
 
28
}