From e56c5f8e6939a1b79deb401b7e1fcd129e488d77 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 28 Mar 2009 18:42:42 -0500 Subject: Print out the plugins gstreamer finds, for debugging. --- ChangeLog.txt | 6 ++++++ linden/indra/llmedia/llmediaimplgstreamer.cpp | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 59c780c..dbfa5b6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,9 @@ +2009-03-28 Jacek Antonelli + + * linden/indra/llmedia/llmediaimplgstreamer.cpp: + Print out the plugins gstreamer finds, for debugging. + + 2009-03-26 Jacek Antonelli * linden/indra/llmedia/llmediaimplgstreamervidplug.cpp: diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 5d4d553..d661f74 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp @@ -178,6 +178,21 @@ bool LLMediaImplGStreamer::startup (LLMediaManagerData* init_data) // Init our custom plugins - only really need do this once. gst_slvideo_init_class(); + + // List the plugins GStreamer can find + LL_DEBUGS("MediaImpl") << "Found GStreamer plugins:" << LL_ENDL; + GList *list; + GstRegistry *registry = gst_registry_get_default(); + for (list = gst_registry_get_plugin_list(registry); + list != NULL; + list = g_list_next(list)) + { + GstPlugin *list_plugin = (GstPlugin *)list->data; + LL_DEBUGS("MediaImpl") << gst_plugin_get_name(list_plugin) << LL_ENDL; + } + gst_plugin_list_free(list); + + done_init = true; } return true; -- cgit v1.1