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
3266cd72
Commit
3266cd72
authored
Jul 02, 2002
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* darwin_specific.[ch]: added strndup needed by video_output.c.
* configure.in: added -lintl to plugins_LDFLAGS.
parent
7682a00c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
5 deletions
+34
-5
configure
configure
+1
-0
configure.in
configure.in
+4
-1
include/darwin_specific.h
include/darwin_specific.h
+2
-1
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+22
-2
src/video_output/video_output.c
src/video_output/video_output.c
+5
-1
No files found.
configure
View file @
3266cd72
...
...
@@ -4023,6 +4023,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
vlc_LDFLAGS
=
"
${
vlc_LDFLAGS
}
-lintl"
plugins_LDFLAGS
=
"
${
plugins_LDFLAGS
}
-lintl"
else
echo
"
$ac_t
""no"
1>&6
fi
...
...
configure.in
View file @
3266cd72
...
...
@@ -154,7 +154,10 @@ AC_CHECK_FUNC(inet_aton,,[
AC_CHECK_LIB(resolv,inet_aton,ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv")
])
AC_CHECK_FUNC(textdomain,,[
AC_CHECK_LIB(intl,textdomain,vlc_LDFLAGS="${vlc_LDFLAGS} -lintl")
AC_CHECK_LIB(intl,textdomain,
vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
)
])
dnl Check for getopt
...
...
include/darwin_specific.h
View file @
3266cd72
...
...
@@ -2,7 +2,7 @@
* darwin_specific.h: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: darwin_specific.h,v 1.
3 2002/04/02 23:43:57 gbazin
Exp $
* $Id: darwin_specific.h,v 1.
4 2002/07/02 22:07:02 jlj
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -25,3 +25,4 @@
* Prototypes
*****************************************************************************/
char
*
system_GetProgramPath
(
void
);
extern
char
*
strndup
(
const
char
*
string
,
size_t
n
);
src/misc/darwin_specific.c
View file @
3266cd72
...
...
@@ -2,7 +2,7 @@
* darwin_specific.c: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: darwin_specific.c,v 1.1
2 2002/06/02 14:26:16 gbazin
Exp $
* $Id: darwin_specific.c,v 1.1
3 2002/07/02 22:07:02 jlj
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -60,7 +60,7 @@ void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
param
.
sched_priority
=
10
;
if
(
pthread_setschedparam
(
pthread_self
(),
SCHED_RR
,
&
param
))
{
intf_ErrMsg
(
"pthread_setschedparam failed"
);
msg_Err
(
p_this
,
"pthread_setschedparam failed"
);
}
}
}
...
...
@@ -89,3 +89,23 @@ char * system_GetProgramPath( void )
return
(
psz_program_path
);
}
/*****************************************************************************
* strndup: returns a malloc'd copy of at most n bytes of string
* Does anyone know whether or not it will be present in Jaguar?
*****************************************************************************/
char
*
strndup
(
const
char
*
string
,
size_t
n
)
{
char
*
psz
;
size_t
len
;
len
=
__MIN
(
strlen
(
string
),
n
);
psz
=
(
char
*
)
malloc
(
len
+
1
);
if
(
psz
!=
NULL
)
{
memcpy
(
(
void
*
)
psz
,
(
const
void
*
)
string
,
len
);
psz
[
len
]
=
0
;
}
return
(
psz
);
}
src/video_output/video_output.c
View file @
3266cd72
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.18
5 2002/06/11 09:44:22 gbazin
Exp $
* $Id: video_output.c,v 1.18
6 2002/07/02 22:07:02 jlj
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -41,6 +41,10 @@
#include "video.h"
#include "video_output.h"
#if defined( SYS_DARWIN )
#include "darwin_specific.h"
#endif
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
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