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
88388e21
Commit
88388e21
authored
Jan 21, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartztext: don't mangle const string
Untested
parent
5a1c1472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/misc/quartztext.c
modules/misc/quartztext.c
+6
-2
No files found.
modules/misc/quartztext.c
View file @
88388e21
...
...
@@ -741,7 +741,10 @@ static int ProcessNodes( filter_t *p_filter,
int
len
;
// Turn any multiple-whitespaces into single spaces
char
*
s
=
strpbrk
(
node
,
"
\t\r\n
"
);
char
*
dup
=
strdup
(
node
);
if
(
!
dup
)
break
;
char
*
s
=
strpbrk
(
dup
,
"
\t\r\n
"
);
while
(
s
)
{
int
i_whitespace
=
strspn
(
s
,
"
\t\r\n
"
);
...
...
@@ -757,7 +760,7 @@ static int ProcessNodes( filter_t *p_filter,
CFMutableAttributedStringRef
p_attrnode
=
CFAttributedStringCreateMutable
(
kCFAllocatorDefault
,
0
);
p_cfString
=
CFStringCreateWithCString
(
NULL
,
node
,
kCFStringEncodingUTF8
);
p_cfString
=
CFStringCreateWithCString
(
NULL
,
dup
,
kCFStringEncodingUTF8
);
CFAttributedStringReplaceString
(
p_attrnode
,
CFRangeMake
(
0
,
0
),
p_cfString
);
CFRelease
(
p_cfString
);
len
=
CFAttributedStringGetLength
(
p_attrnode
);
...
...
@@ -771,6 +774,7 @@ static int ProcessNodes( filter_t *p_filter,
p_attrnode
);
CFRelease
(
p_attrnode
);
free
(
dup
);
break
;
}
}
...
...
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