--- a/gst_plugins_base/gst/playback/gstplayback.c Wed Mar 24 17:58:42 2010 -0500
+++ b/gst_plugins_base/gst/playback/gstplayback.c Wed Mar 24 18:04:17 2010 -0500
@@ -27,6 +27,9 @@
#include <gst/gst-i18n-plugin.h>
#include <gst/pbutils/pbutils.h>
+#include "gststreamselector.h"
+#include "gststreaminfo.h"
+
gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
@@ -41,8 +44,14 @@
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
LOCALEDIR);
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
+ /* ref class from a thread-safe context to work around missing bit of
+ * thread-safety in GObject */
+ g_type_class_ref (GST_TYPE_STREAM_INFO);
+ g_type_class_ref (GST_TYPE_STREAM_SELECTOR);
+
res = gst_play_bin_plugin_init (plugin);
res &= gst_play_bin2_plugin_init (plugin);