Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4fac9bb2
Commit
4fac9bb2
authored
Jun 14, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support more path to look for RealVideo Dlls.
parent
8ad05151
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
9 deletions
+54
-9
modules/codec/realvideo.c
modules/codec/realvideo.c
+54
-9
No files found.
modules/codec/realvideo.c
View file @
4fac9bb2
...
...
@@ -107,11 +107,6 @@ struct decoder_sys_t
};
int
dll_type
=
1
;
#ifdef WIN32
const
char
*
g_decode_path
=
"plugins
\\
drv43260.dll"
;
#else
const
char
*
g_decode_path
=
"../lib/vlc/codec/drv4.so.6.0"
;
#endif
static
unsigned
long
(
*
rvyuv_custom_message
)(
cmsg_data_t
*
,
void
*
);
static
unsigned
long
(
*
rvyuv_free
)(
void
*
);
...
...
@@ -123,6 +118,7 @@ static unsigned long WINAPI (*wrvyuv_free)(void*);
static
unsigned
long
WINAPI
(
*
wrvyuv_init
)(
void
*
,
void
*
);
// initdata,context
static
unsigned
long
WINAPI
(
*
wrvyuv_transform
)(
char
*
,
char
*
,
transform_in_t
*
,
unsigned
int
*
,
void
*
);
#endif
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -213,6 +209,8 @@ static int InitVideo(decoder_t *p_dec)
struct
rv_init_t
init_data
;
char
fcc
[
4
];
vlc_mutex_t
*
lock
;
char
*
g_decode_path
;
int
i_vide
=
p_dec
->
fmt_in
.
i_extra
;
unsigned
int
*
p_vide
=
p_dec
->
fmt_in
.
p_extra
;
decoder_sys_t
*
p_sys
=
malloc
(
sizeof
(
decoder_sys_t
)
);
...
...
@@ -245,16 +243,63 @@ static int InitVideo(decoder_t *p_dec)
init_data
.
subformat
=
(
unsigned
int
*
)
p_vide
[
0
];
init_data
.
unk5
=
1
;
init_data
.
format
=
(
unsigned
int
*
)
p_vide
[
1
];
/* first try to load linux dlls, if failed and we're supporting win32 dlls,
then try to load the windows ones */
bool
b_so_opened
=
false
;
#ifdef WIN32
if
(
NULL
==
(
p_sys
->
rv_handle
=
load_syms
(
p_dec
,
g_decode_path
))
)
g_decode_path
=
"plugins
\\
drv43260.dll"
;
if
(
(
p_sys
->
rv_handle
=
load_syms
(
p_dec
,
g_decode_path
))
)
b_so_opened
=
true
;
#else
if
(
NULL
==
(
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
))
)
const
char
*
ppsz_path
[]
=
{
"/usr/lib/win32"
,
"/usr/lib/codecs"
,
"/usr/local/RealPlayer8/Codecs"
,
"/usr/RealPlayer8/Codecs"
,
"/usr/lib/RealPlayer8/Codecs"
,
"/opt/RealPlayer8/Codecs"
,
"/usr/lib/RealPlayer9/users/Real/Codecs"
,
"/usr/lib/RealPlayer10/codecs"
,
"/usr/lib/RealPlayer10GOLD/codecs"
,
"/usr/lib/helix/player/codecs"
,
"/usr/lib64/RealPlayer8/Codecs"
,
"/usr/lib64/RealPlayer9/users/Real/Codecs"
,
"/usr/lib64/RealPlayer10/codecs"
,
"/usr/lib64/RealPlayer10GOLD/codecs"
,
"/usr/local/lib/codecs"
,
NULL
};
for
(
int
i
=
0
;
ppsz_path
[
i
];
i
++
)
{
asprintf
(
&
g_decode_path
,
"%s/drv4.so.6.0"
,
ppsz_path
[
i
]
);
if
(
(
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
))
)
{
b_so_opened
=
true
;
free
(
g_decode_path
);
break
;
}
asprintf
(
&
g_decode_path
,
"%s/drv3.so.6.0"
,
ppsz_path
[
i
]
);
if
(
(
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
))
)
{
b_so_opened
=
true
;
free
(
g_decode_path
);
break
;
}
msg_Dbg
(
p_dec
,
"Cannot load real decoder library: %s"
,
g_decode_path
);
free
(
g_decode_path
);
}
#endif
if
(
!
b_so_opened
)
{
msg_Err
(
p_dec
,
"Cannot
load real decoder library: %s"
,
g_decode_path
);
msg_Err
(
p_dec
,
"Cannot
any real decoder library"
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
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