00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "init.h"
00018 #include "../QGlib/init.h"
00019 #include "../QGlib/error.h"
00020 #include <gst/gst.h>
00021
00022 namespace QGst {
00023
00024 namespace Private {
00025 void registerValueVTables();
00026 void registerWrapperConstructors();
00027 }
00028
00029 void init()
00030 {
00031 init(NULL, NULL);
00032 }
00033
00034 void init(int *argc, char **argv[])
00035 {
00036 QGlib::init();
00037 GError *error;
00038 if (!gst_init_check(argc, argv, &error)) {
00039 throw QGlib::Error(error);
00040 }
00041 Private::registerValueVTables();
00042 Private::registerWrapperConstructors();
00043 }
00044
00045 void cleanup()
00046 {
00047 gst_deinit();
00048 }
00049
00050 }