Mercurial > projects > hoofbaby
comparison src/impl/hoofbaby/app/libs.d @ 0:3425707ddbf6
Initial import (hopefully this mercurial stuff works...)
author | fraserofthenight |
---|---|
date | Mon, 06 Jul 2009 08:06:28 -0700 |
parents | |
children | 05c88622db6b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3425707ddbf6 |
---|---|
1 /** | |
2 * Hoofbaby -- http://www.dsource.org/projects/hoofbaby | |
3 * Copyright (C) 2009 Robert Fraser | |
4 * | |
5 * This program is free software; you can redistribute it andor | |
6 * modify it under the terms of the GNU General Public License | |
7 * as published by the Free Software Foundation; either version 2 | |
8 * of the License, or (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 */ | |
15 | |
16 module hoofbaby.app.libs; | |
17 | |
18 import tango.io.Stdout; | |
19 | |
20 import platif = hoofbaby.platinum.platif; | |
21 import libav = hoofbaby.codec.libav.avformat; | |
22 | |
23 public bool initLibs() | |
24 { | |
25 try | |
26 { | |
27 platif._loadLib(); | |
28 libav.av_register_all(); | |
29 } | |
30 catch(Exception e) | |
31 { | |
32 debug Stdout("Error initializing shared libraries: " ~ e.toString()); | |
33 return false; | |
34 } | |
35 return true; | |
36 } |