diff options
author | Armin Weatherwax | 2010-08-09 19:03:58 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-09-23 15:42:40 +0200 |
commit | 106b42c9fc893c3172dc843a70b6e79a22eed985 (patch) | |
tree | 8d686ef54bc21e1b815629e8b77425f1e4a5c401 /linden/indra/llinventory | |
parent | fix "about land" (actually llpanellandmedia) crashes (diff) | |
download | meta-impy-106b42c9fc893c3172dc843a70b6e79a22eed985.zip meta-impy-106b42c9fc893c3172dc843a70b6e79a22eed985.tar.gz meta-impy-106b42c9fc893c3172dc843a70b6e79a22eed985.tar.bz2 meta-impy-106b42c9fc893c3172dc843a70b6e79a22eed985.tar.xz |
fix some mime type issues
Diffstat (limited to 'linden/indra/llinventory')
-rw-r--r-- | linden/indra/llinventory/llparcel.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/llinventory/llparcel.cpp b/linden/indra/llinventory/llparcel.cpp index 547862f..39605eb 100644 --- a/linden/indra/llinventory/llparcel.cpp +++ b/linden/indra/llinventory/llparcel.cpp | |||
@@ -306,11 +306,11 @@ void LLParcel::setMediaType(const std::string& type) | |||
306 | mMediaType = type; | 306 | mMediaType = type; |
307 | mMediaType = rawstr_to_utf8(mMediaType); | 307 | mMediaType = rawstr_to_utf8(mMediaType); |
308 | 308 | ||
309 | // This code attempts to preserve legacy movie functioning | 309 | // // This legacy code prevents any media different from video from working on OpenSim |
310 | if(mMediaType.empty() && ! mMediaURL.empty()) | 310 | // if(mMediaType.empty() && ! mMediaURL.empty()) |
311 | { | 311 | // { |
312 | setMediaType(std::string("video/vnd.secondlife.qt.legacy")); | 312 | // setMediaType(std::string("video/vnd.secondlife.qt.legacy")); |
313 | } | 313 | // } |
314 | } | 314 | } |
315 | void LLParcel::setMediaWidth(S32 width) | 315 | void LLParcel::setMediaWidth(S32 width) |
316 | { | 316 | { |
@@ -762,7 +762,8 @@ void LLParcel::unpackMessage(LLMessageSystem* msg) | |||
762 | } | 762 | } |
763 | else | 763 | else |
764 | { | 764 | { |
765 | setMediaType(std::string("video/vnd.secondlife.qt.legacy")); | 765 | setMediaType(std::string("")); //having mMediaType empty causes autodetect, |
766 | // thats what we want -- AW | ||
766 | setMediaDesc(std::string("No Description available without Server Upgrade")); | 767 | setMediaDesc(std::string("No Description available without Server Upgrade")); |
767 | mMediaLoop = true; | 768 | mMediaLoop = true; |
768 | mObscureMedia = true; | 769 | mObscureMedia = true; |