summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 16:27:42 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 16:27:42 +0000
commit4a5d4414c95632a17db583473ef215e2e7b74748 (patch)
tree9186048c1a921175af752ccc03843e43028cf810
parent989b59536269b405216779a89b7d9824703ae267 (diff)
INTEGRATION: CWS aquavcl05_DEV300 (1.3.6); FILE MERGED
2007/12/25 03:49:56 msicotte 1.3.6.1: #i84458# allow spaces in url
-rw-r--r--avmedia/source/quicktime/player.cxx41
1 files changed, 34 insertions, 7 deletions
diff --git a/avmedia/source/quicktime/player.cxx b/avmedia/source/quicktime/player.cxx
index 6c57d7f1c0dd..7a4e5c6b60dc 100644
--- a/avmedia/source/quicktime/player.cxx
+++ b/avmedia/source/quicktime/player.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: player.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: vg $ $Date: 2007-12-10 09:40:48 $
+ * last change: $Author: kz $ $Date: 2008-03-05 17:27:42 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -39,11 +39,36 @@
#include "framegrabber.hxx"
#include "window.hxx"
-// Quicktime 7+ in Mac OS X 10.4
-#define QT701 0x07010000
+// dbg_dump for development
+#if OSL_DEBUG_LEVEL > 1
+#include <rtl/strbuf.hxx>
+#include <rtl/ustring.hxx>
-// Quicktime 6.4+ in Mac OS X 10.3
-#define QT64 0x06400000
+const sal_Char *dbg_dump(const rtl::OString &rStr)
+{
+ static rtl::OStringBuffer aStr;
+
+ aStr = rtl::OStringBuffer(rStr);
+ aStr.append(static_cast<char>(0));
+ return aStr.getStr();
+}
+
+const sal_Char *dbg_dump(const rtl::OUString &rStr)
+{
+ return dbg_dump(rtl::OUStringToOString(rStr, RTL_TEXTENCODING_UTF8));
+}
+
+const sal_Char *dbg_dump(rtl_String *pStr)
+{
+ return dbg_dump(rtl::OString(pStr));
+}
+
+const sal_Char *dbg_dump(rtl_uString *pStr)
+{
+ return dbg_dump(rtl::OUString(pStr));
+}
+
+#endif
using namespace ::com::sun::star;
@@ -116,7 +141,9 @@ bool Player::create( const ::rtl::OUString& rURL )
{
bool bRet = false;
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
- NSURL* aURL = [NSURL URLWithString:[[NSString alloc] initWithCharacters: rURL.getStr() length: rURL.getLength()] ];
+ NSString* aNSStr = [[[NSString alloc] initWithCharacters: rURL.getStr() length: rURL.getLength()]stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] ;
+// NSString * aNSStringEscaped = [aNSStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+ NSURL* aURL = [NSURL URLWithString:aNSStr ];
// create the Movie