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
fdc31525
Commit
fdc31525
authored
Jul 06, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iconv: don't pretend it is present and do crap when it's not
parent
c5942976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
src/extras/libc.c
src/extras/libc.c
+3
-17
No files found.
src/extras/libc.c
View file @
fdc31525
...
...
@@ -417,7 +417,7 @@ vlc_iconv_t vlc_iconv_open( const char *tocode, const char *fromcode )
#if defined(HAVE_ICONV)
return
iconv_open
(
tocode
,
fromcode
);
#else
return
NULL
;
return
(
vlc_iconv_t
)(
-
1
)
;
#endif
}
...
...
@@ -428,21 +428,7 @@ size_t vlc_iconv( vlc_iconv_t cd, const char **inbuf, size_t *inbytesleft,
return
iconv
(
cd
,
(
ICONV_CONST
char
**
)
inbuf
,
inbytesleft
,
outbuf
,
outbytesleft
);
#else
int
i_bytes
;
if
(
inbytesleft
==
NULL
||
outbytesleft
==
NULL
)
{
return
0
;
}
i_bytes
=
__MIN
(
*
inbytesleft
,
*
outbytesleft
);
if
(
!
inbuf
||
!
outbuf
||
!
i_bytes
)
return
(
size_t
)(
-
1
);
memcpy
(
*
outbuf
,
*
inbuf
,
i_bytes
);
inbuf
+=
i_bytes
;
outbuf
+=
i_bytes
;
inbytesleft
-=
i_bytes
;
outbytesleft
-=
i_bytes
;
return
i_bytes
;
abort
();
#endif
}
...
...
@@ -451,7 +437,7 @@ int vlc_iconv_close( vlc_iconv_t cd )
#if defined(HAVE_ICONV)
return
iconv_close
(
cd
);
#else
return
0
;
abort
()
;
#endif
}
...
...
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