Initialization

Initialization

Functions

Types and Values

Includes

#include <ges/ges.h>

Description

Functions

ges_init ()

gboolean
ges_init (void);

Initialize the GStreamer Editing Service. Call this before any usage of GES. You should take care of initilizing GStreamer before calling this function.

MT safety. GStreamer Editing Services do not guarantee MT safety. An application is required to use GES APIs (including ges_deinit()) in the thread where ges_init() was called.


ges_is_initialized ()

gboolean
ges_is_initialized (void);

Use this function to check if GES has been initialized with ges_init() or ges_init_check().

Returns

TRUE if initialization has been done, FALSE otherwise.


ges_init_check ()

gboolean
ges_init_check (int *argc,
                char **argv[],
                GError **err);

Initializes the GStreamer Editing Services library, setting up internal path lists, and loading evrything needed.

This function will return FALSE if GES could not be initialized for some reason.

Parameters

argc

pointer to application's argc.

[inout][allow-none]

argv

pointer to application's argv.

[inout][array length=argc][allow-none]

err

pointer to a GError to which a message will be posted on error

 

Returns

TRUE if GES could be initialized.


ges_deinit ()

void
ges_deinit (void);

Clean up any resources created by GES in ges_init().

It is normally not needed to call this function in a normal application as the resources will automatically be freed when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. This function should be called from the thread where ges_init() was called.

After this call GES should not be used until another ges_init() call.


ges_version ()

void
ges_version (guint *major,
             guint *minor,
             guint *micro,
             guint *nano);

Gets the version number of the GStreamer Editing Services library.

Parameters

major

pointer to a guint to store the major version number.

[out]

minor

pointer to a guint to store the minor version number.

[out]

micro

pointer to a guint to store the micro version number.

[out]

nano

pointer to a guint to store the nano version number.

[out]

Types and Values

GES_VERSION_MAJOR

#define GES_VERSION_MAJOR (1)

GES_VERSION_MICRO

#define GES_VERSION_MICRO (0)

GES_VERSION_MINOR

#define GES_VERSION_MINOR (16)

GES_VERSION_NANO

#define GES_VERSION_NANO  (0)