equal
deleted
inserted
replaced
25 #include <gst/gst.h> |
25 #include <gst/gst.h> |
26 |
26 |
27 #include <gst/gst-i18n-plugin.h> |
27 #include <gst/gst-i18n-plugin.h> |
28 #include <gst/pbutils/pbutils.h> |
28 #include <gst/pbutils/pbutils.h> |
29 |
29 |
|
30 #include "gststreamselector.h" |
|
31 #include "gststreaminfo.h" |
|
32 |
|
33 #ifdef __SYMBIAN32__ |
|
34 IMPORT_C |
|
35 #endif |
30 gboolean gst_play_bin_plugin_init (GstPlugin * plugin); |
36 gboolean gst_play_bin_plugin_init (GstPlugin * plugin); |
|
37 |
|
38 #ifdef __SYMBIAN32__ |
|
39 IMPORT_C |
|
40 #endif |
31 gboolean gst_play_bin2_plugin_init (GstPlugin * plugin); |
41 gboolean gst_play_bin2_plugin_init (GstPlugin * plugin); |
32 |
42 |
33 static gboolean |
43 static gboolean |
34 plugin_init (GstPlugin * plugin) |
44 plugin_init (GstPlugin * plugin) |
35 { |
45 { |
39 |
49 |
40 #ifdef ENABLE_NLS |
50 #ifdef ENABLE_NLS |
41 GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE, |
51 GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE, |
42 LOCALEDIR); |
52 LOCALEDIR); |
43 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
53 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
|
54 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |
44 #endif /* ENABLE_NLS */ |
55 #endif /* ENABLE_NLS */ |
|
56 |
|
57 /* ref class from a thread-safe context to work around missing bit of |
|
58 * thread-safety in GObject */ |
|
59 g_type_class_ref (GST_TYPE_STREAM_INFO); |
|
60 g_type_class_ref (GST_TYPE_STREAM_SELECTOR); |
45 |
61 |
46 res = gst_play_bin_plugin_init (plugin); |
62 res = gst_play_bin_plugin_init (plugin); |
47 res &= gst_play_bin2_plugin_init (plugin); |
63 res &= gst_play_bin2_plugin_init (plugin); |
48 |
64 |
49 return res; |
65 return res; |