Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8e998636
Commit
8e998636
authored
Jan 05, 2004
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins2/vars/playlist.cpp: Hack to prevent compilation errors.
parent
28df89f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/gui/skins2/vars/playlist.cpp
modules/gui/skins2/vars/playlist.cpp
+6
-5
No files found.
modules/gui/skins2/vars/playlist.cpp
View file @
8e998636
...
...
@@ -2,7 +2,7 @@
* playlist.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: playlist.cpp,v 1.
3 2004/01/05 17:42:36 gbazin
Exp $
* $Id: playlist.cpp,v 1.
4 2004/01/05 19:33:11 sam
Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
...
...
@@ -147,17 +147,18 @@ UString *Playlist::convertName( const char *pName )
return
new
UString
(
getIntf
(),
pName
);
}
char
*
pNewName
,
*
pBufferOut
;
const
char
*
pBufferIn
;
char
*
pNewName
,
*
pBufferOut
,
*
pBufferIn
;
size_t
ret
,
inbytesLeft
,
outbytesLeft
;
// Try to convert the playlist item into UTF8
pNewName
=
(
char
*
)
malloc
(
6
*
strlen
(
pName
)
);
pBufferOut
=
pNewName
;
pBufferIn
=
pName
;
// Cast to char* event if the chars do not get cast, because of
// differences in various iconv versions.
pBufferIn
=
(
char
*
)(
intptr_t
)
pName
;
inbytesLeft
=
strlen
(
pName
);
outbytesLeft
=
6
*
inbytesLeft
;
ret
=
iconv
(
iconvHandle
,
(
const
char
**
)
&
pBufferIn
,
&
inbytesLeft
,
ret
=
iconv
(
iconvHandle
,
&
pBufferIn
,
&
inbytesLeft
,
&
pBufferOut
,
&
outbytesLeft
);
*
pBufferOut
=
'\0'
;
...
...
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