From 881a3666a97233f123df79580f8e04d5c1bd8442 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 19 Mar 2011 17:48:29 -0700 Subject: Added log info for when GStreamer fails to load because the plugin wasn't compiled correctly --- .../media_plugins/gstreamer010/media_plugin_gstreamer010.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linden/indra') diff --git a/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp b/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp index 4316b5d..4f3e283 100755 --- a/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp +++ b/linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp @@ -1409,6 +1409,16 @@ void MediaPluginGStreamer010::receiveMessage(const char *message_string) // We're building without GStreamer enabled. Just refuse to initialize. int init_media_plugin(LLPluginInstance::sendMessageFunction host_send_func, void *host_user_data, LLPluginInstance::sendMessageFunction *plugin_send_func, void **plugin_user_data) { + // init log file so we know what happened + LLFILE* fp = LLFile::fopen("media_plugin_gstreamer010.log", "w"); + if (fp) + { + time_t timeptr = time(NULL); + fprintf(fp, "%s", asctime(localtime(&timeptr))); + fprintf(fp, "media_plugin_gstreamer010 installed but not built with GStreamer support! It must be recompiled to work!\n"); + fclose(fp); + } + return -1; } -- cgit v1.1