diff options
author | McCabe Maxsted | 2011-03-19 17:48:29 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-03-19 17:48:29 -0700 |
commit | 881a3666a97233f123df79580f8e04d5c1bd8442 (patch) | |
tree | 99322da82a22506a5ef7eec829f24af17e42c666 /linden/indra | |
parent | Merge remote-tracking branch 'jacek/exp' into exp (diff) | |
download | meta-impy-881a3666a97233f123df79580f8e04d5c1bd8442.zip meta-impy-881a3666a97233f123df79580f8e04d5c1bd8442.tar.gz meta-impy-881a3666a97233f123df79580f8e04d5c1bd8442.tar.bz2 meta-impy-881a3666a97233f123df79580f8e04d5c1bd8442.tar.xz |
Added log info for when GStreamer fails to load because the plugin wasn't compiled correctly
Diffstat (limited to 'linden/indra')
-rwxr-xr-x | linden/indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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) | |||
1409 | // We're building without GStreamer enabled. Just refuse to initialize. | 1409 | // We're building without GStreamer enabled. Just refuse to initialize. |
1410 | int init_media_plugin(LLPluginInstance::sendMessageFunction host_send_func, void *host_user_data, LLPluginInstance::sendMessageFunction *plugin_send_func, void **plugin_user_data) | 1410 | int init_media_plugin(LLPluginInstance::sendMessageFunction host_send_func, void *host_user_data, LLPluginInstance::sendMessageFunction *plugin_send_func, void **plugin_user_data) |
1411 | { | 1411 | { |
1412 | // init log file so we know what happened | ||
1413 | LLFILE* fp = LLFile::fopen("media_plugin_gstreamer010.log", "w"); | ||
1414 | if (fp) | ||
1415 | { | ||
1416 | time_t timeptr = time(NULL); | ||
1417 | fprintf(fp, "%s", asctime(localtime(&timeptr))); | ||
1418 | fprintf(fp, "media_plugin_gstreamer010 installed but not built with GStreamer support! It must be recompiled to work!\n"); | ||
1419 | fclose(fp); | ||
1420 | } | ||
1421 | |||
1412 | return -1; | 1422 | return -1; |
1413 | } | 1423 | } |
1414 | 1424 | ||