|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifdef HAVE_CONFIG_H |
|
20 #include "config.h" |
|
21 #endif |
|
22 |
|
23 |
|
24 #include "gsterrorconcealmentinterface.h" |
|
25 |
|
26 #ifdef __SYMBIAN32__ |
|
27 #include <glib_global.h> |
|
28 #include <gobject_global.h> |
|
29 |
|
30 #endif |
|
31 |
|
32 static void gst_error_concealment_base_init (gpointer g_class); |
|
33 |
|
34 EXPORT_C GType gst_error_concealment_get_type (void) |
|
35 { |
|
36 static GType error_concealment_type = 0; |
|
37 |
|
38 if (G_UNLIKELY (error_concealment_type == 0)) { |
|
39 static const GTypeInfo error_concealment_info = { |
|
40 sizeof (GstErrorConcealmentIntfc), /* class_size */ |
|
41 gst_error_concealment_base_init, /* base_init */ |
|
42 NULL, /* base_finalize */ |
|
43 NULL, |
|
44 NULL, /* class_finalize */ |
|
45 NULL, /* class_data */ |
|
46 0, |
|
47 0, |
|
48 NULL |
|
49 }; |
|
50 |
|
51 |
|
52 error_concealment_type = g_type_register_static (G_TYPE_INTERFACE, "GstErrorConcealment", |
|
53 &error_concealment_info, 0); |
|
54 |
|
55 } |
|
56 |
|
57 return error_concealment_type; |
|
58 } |
|
59 |
|
60 static void gst_error_concealment_base_init (gpointer g_class) |
|
61 { |
|
62 static gboolean initialized = FALSE; |
|
63 |
|
64 if (G_UNLIKELY (!initialized)) |
|
65 { |
|
66 initialized = TRUE; |
|
67 } |
|
68 } |