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
cc6941a5
Commit
cc6941a5
authored
Jun 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak and error handling
parent
8cb6c0e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
modules/codec/realvideo.c
modules/codec/realvideo.c
+13
-8
No files found.
modules/codec/realvideo.c
View file @
cc6941a5
...
@@ -274,26 +274,31 @@ static int InitVideo(decoder_t *p_dec)
...
@@ -274,26 +274,31 @@ static int InitVideo(decoder_t *p_dec)
"
\0
"
"
\0
"
};
};
for
(
size_t
i
=
0
;
psz_paths
[
i
];
i
+=
strlen
(
psz_paths
[
i
]
)
+
1
)
for
(
size_t
i
=
0
;
psz_paths
[
i
];
i
+=
strlen
(
psz_paths
+
i
)
+
1
)
{
{
asprintf
(
&
g_decode_path
,
"%s/drv4.so.6.0"
,
psz_paths
+
i
);
if
(
asprintf
(
&
g_decode_path
,
"%s/drv4.so.6.0"
,
psz_paths
+
i
)
!=
-
1
)
if
(
(
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
))
)
{
{
b_so_opened
=
true
;
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
)
;
free
(
g_decode_path
);
free
(
g_decode_path
);
}
if
(
p_sys
->
rv_handle
)
{
b_so_opened
=
true
;
break
;
break
;
}
}
asprintf
(
&
g_decode_path
,
"%s/drv3.so.6.0"
,
psz_paths
+
i
);
if
(
asprintf
(
&
g_decode_path
,
"%s/drv3.so.6.0"
,
psz_paths
+
i
)
!=
-
1
)
if
(
(
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
))
)
{
{
b_so_opened
=
true
;
p_sys
->
rv_handle
=
load_syms_linux
(
p_dec
,
g_decode_path
)
;
free
(
g_decode_path
);
free
(
g_decode_path
);
}
if
(
p_sys
->
rv_handle
)
{
b_so_opened
=
true
;
break
;
break
;
}
}
msg_Dbg
(
p_dec
,
"Cannot load real decoder library: %s"
,
g_decode_path
);
msg_Dbg
(
p_dec
,
"Cannot load real decoder library: %s"
,
g_decode_path
);
free
(
g_decode_path
);
}
}
#endif
#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