[mistelix] Fixes issue #582386 & typo
- From: Jordi Mas <jmas src gnome org>
- To: svn-commits-list gnome org
- Subject: [mistelix] Fixes issue #582386 & typo
- Date: Wed, 13 May 2009 09:24:12 -0400 (EDT)
commit 66f403c823f5ed19f826fc97f343c3a535a5b1ee
Author: Jordi Mas <jmas softcatala org>
Date: Wed May 13 15:24:24 2009 +0200
Fixes issue #582386 & typo
---
libmistelix/mistelix.c | 14 ++++++++++----
src/widgets/AuthoringPaneView.cs | 2 +-
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/libmistelix/mistelix.c b/libmistelix/mistelix.c
index 6af17e8..a5aeab6 100644
--- a/libmistelix/mistelix.c
+++ b/libmistelix/mistelix.c
@@ -66,7 +66,7 @@ ThreadParams params;
char audio[1024];
int started;
GThread* thread;
-int gstreamer_init = 0;
+gboolean gstreamer_init = 0;
// It is assumed that there is only one client using the library at the time
// There are no handles for session, just the active session
@@ -167,8 +167,14 @@ mistelix_get_codecs_count ()
GstPluginFeature *feature;
GstPlugin *plugin;
unsigned int count = 0;
+ gboolean was_init;
+ was_init = gstreamer_init;
mistelix_check_init ();
+
+ if (was_init)
+ gst_update_registry (); /* Detect new plugins added since we started GStreamer */
+
plugins_org = plugins = gst_default_registry_get_plugin_list ();
while (plugins) {
@@ -497,11 +503,11 @@ mistelix_detect_media (const char* file, char* media)
void
mistelix_check_init ()
{
- if (gstreamer_init == 1)
+ if (gstreamer_init == TRUE)
return;
-
+
gst_init (NULL, NULL);
- gstreamer_init = 1;
+ gstreamer_init = TRUE;
}
static void
diff --git a/src/widgets/AuthoringPaneView.cs b/src/widgets/AuthoringPaneView.cs
index f28f6a6..1d3c601 100644
--- a/src/widgets/AuthoringPaneView.cs
+++ b/src/widgets/AuthoringPaneView.cs
@@ -184,7 +184,7 @@ namespace Mistelix.Widgets
DrawText (args.Window, cr, Catalog.GetString ("Drag elements here to add them to the main DVD menu"));
}
} else {
- DrawText (args.Window, cr, Catalog.GetString ("Start a new project or load an existing one"));
+ DrawText (args.Window, cr, Catalog.GetString ("Start a new project or open an existing one"));
}
if (project != null && safearea)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]