diff options
author | Jens Georg <jensg@openismus.org> | 2012-09-12 14:25:24 +0200 |
---|---|---|
committer | Jens Georg <jensg@openismus.com> | 2012-10-05 17:33:28 +0200 |
commit | 21af74d799944290f9faaef744f71a1450b40320 (patch) | |
tree | 5a6924525d55cff7831b98b99ca97331d291991c /examples/standalone-server.c | |
parent | 3c11305e5bed40b3e6edff7229bec471fe22a3ae (diff) | |
download | rygel-21af74d799944290f9faaef744f71a1450b40320.tar.gz |
server,engine: Move MediaEngine into .so
Diffstat (limited to 'examples/standalone-server.c')
-rw-r--r-- | examples/standalone-server.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/standalone-server.c b/examples/standalone-server.c index 5bcb5d2a..93d79620 100644 --- a/examples/standalone-server.c +++ b/examples/standalone-server.c @@ -1,5 +1,6 @@ /* * Copyright (C) 2012 Openismus GmbH. + * Copyright (C) 2012 Intel Corporation. * * Author: Jens Georg <jensg@openismus.com> * @@ -46,10 +47,19 @@ int main (int argc, char *argv[]) GFileInfo *info; int i; GMainLoop *loop; + GError *error = NULL; g_type_init (); - gst_init (&argc, &argv); + rygel_media_engine_init (&error); + + if (error != NULL) { + g_print ("Could not initialize media engine: %s\n", + error->message); + g_error_free (error); + + return EXIT_FAILURE; + } g_set_application_name ("Standalone-Server"); |