Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
d2f6a023
Commit
d2f6a023
authored
Aug 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Remove some unused var in -sendCrashLog:
parent
63c2fc55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
35 deletions
+1
-35
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-35
No files found.
modules/gui/macosx/intf.m
View file @
d2f6a023
...
@@ -2098,43 +2098,13 @@ end:
...
@@ -2098,43 +2098,13 @@ end:
}
}
#pragma mark Crash Log
#pragma mark Crash Log
<<<<<<<
HEAD
:
modules
/
gui
/
macosx
/
intf
.
m
-
(
void
)
mailCrashLog
:(
NSString
*
)
crashLog
withUserComment
:(
NSString
*
)
userComment
{
static
char
mail
[]
=
"From: vlcuser <vlcuser@videolan.org>
\n
"
"To: VideoLAN Crash Report <apple-bugreport@videolan.org>
\n
"
"Subject: %@
\n
"
"Content-Type: text/plain; charset=UTF-8; format=flowed
\n
"
"Content-Transfer-Encoding: 8bit
\n
"
"
\n
"
"%@
\n\n
"
"User Comment:
\n
%@
\n
--------------
\n
"
"
\n
"
"Crash log:
\n
%@
\n
--------------
\n
"
"
\n
"
"
\n
"
;
NSString
*
mailPath
=
[
NSTemporaryDirectory
()
stringByAppendingPathComponent
:
@"vlc_crash_mail.eml"
];
NSString
*
mailContent
=
[
NSString
stringWithFormat
:[
NSString
stringWithUTF8String
:
mail
],
_NS
(
"Crash Report (Type Command-shift-D and hit send)"
),
_NS
(
"Type Command-shift-D (or in Menu
\"
Message
\"
>
\"
Send Again
\"
) and hit the
\"
Send Mail
\"
button."
),
userComment
,
crashLog
];
BOOL
ret
=
[
mailContent
writeToFile
:
mailPath
atomically
:
YES
encoding
:
NSUTF8StringEncoding
error
:
nil
];
if
(
!
ret
)
{
NSRunAlertPanel
(
_NS
(
"Error when generating crash report mail."
),
_NS
(
"Can't prepare crash log mail"
),
_NS
(
"OK"
),
nil
,
nil
,
nil
);
return
;
}
=======
-
(
void
)
sendCrashLog
:(
NSString
*
)
crashLog
withUserComment
:(
NSString
*
)
userComment
-
(
void
)
sendCrashLog
:(
NSString
*
)
crashLog
withUserComment
:(
NSString
*
)
userComment
{
{
NSString
*
urlStr
=
@"http://jones.videolan.org/crashlog/sendcrashreport.php"
;
NSString
*
urlStr
=
@"http://jones.videolan.org/crashlog/sendcrashreport.php"
;
NSURL
*
url
=
[
NSURL
URLWithString
:
urlStr
];
NSURL
*
url
=
[
NSURL
URLWithString
:
urlStr
];
NSString
*
requestMethod
=
@"POST"
;
NSMutableURLRequest
*
req
=
[
NSMutableURLRequest
requestWithURL
:
url
];
NSMutableURLRequest
*
req
=
[
NSMutableURLRequest
requestWithURL
:
url
];
[
req
setHTTPMethod
:
requestMethod
];
[
req
setHTTPMethod
:
@"POST"
];
ABPerson
*
contact
=
[[
ABAddressBook
sharedAddressBook
]
me
];
ABPerson
*
contact
=
[[
ABAddressBook
sharedAddressBook
]
me
];
...
@@ -2146,13 +2116,9 @@ end:
...
@@ -2146,13 +2116,9 @@ end:
postBody
=
[
NSString
stringWithFormat
:
@"CrashLog=%@&Comment=Nothing&Email=%@
\r\n
"
,
postBody
=
[
NSString
stringWithFormat
:
@"CrashLog=%@&Comment=Nothing&Email=%@
\r\n
"
,
[
crashLog
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
],
[
crashLog
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
],
[
email
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
]];
[
email
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
]];
>>>>>>>
macosx
:
Send
crashes
reports
without
going
though
Mail
.
app
but
through
Jones
.
:
modules
/
gui
/
macosx
/
intf
.
m
[
req
setHTTPBody
:[
postBody
dataUsingEncoding
:
NSUTF8StringEncoding
]];
[
req
setHTTPBody
:[
postBody
dataUsingEncoding
:
NSUTF8StringEncoding
]];
NSHTTPURLResponse
*
res
=
nil
;
NSError
*
err
=
nil
;
/* Released from delegate */
/* Released from delegate */
NSURLConnection
*
theConnection
=
[[
NSURLConnection
alloc
]
initWithRequest
:
req
delegate
:
self
];
NSURLConnection
*
theConnection
=
[[
NSURLConnection
alloc
]
initWithRequest
:
req
delegate
:
self
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment