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
c2e56e6b
Commit
c2e56e6b
authored
Apr 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item: fix undefined zero-size array
parent
2497622d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
src/input/item.c
src/input/item.c
+18
-13
No files found.
src/input/item.c
View file @
c2e56e6b
...
...
@@ -772,22 +772,27 @@ void input_item_SetEpgOffline( input_item_t *p_item )
#ifdef EPG_DEBUG
vlc_mutex_lock
(
&
p_item
->
lock
);
const
int
i_epg_info
=
p_item
->
i_epg
;
char
*
ppsz_epg_info
[
i_epg_info
];
for
(
int
i
=
0
;
i
<
p_item
->
i_epg
;
i
++
)
if
(
i_epg_info
>
0
)
{
const
vlc_epg_t
*
p_epg
=
p_item
->
pp_epg
[
i
];
if
(
asprintf
(
&
ppsz_epg_info
[
i
],
"EPG %s"
,
p_epg
->
psz_name
?
p_epg
->
psz_name
:
"unknown"
)
<
0
)
ppsz_epg_info
[
i
]
=
NULL
;
}
vlc_mutex_unlock
(
&
p_item
->
lock
);
char
*
ppsz_epg_info
[
i_epg_info
];
for
(
int
i
=
0
;
i
<
p_item
->
i_epg
;
i
++
)
{
const
vlc_epg_t
*
p_epg
=
p_item
->
pp_epg
[
i
];
if
(
asprintf
(
&
ppsz_epg_info
[
i
],
"EPG %s"
,
p_epg
->
psz_name
?
p_epg
->
psz_name
:
"unknown"
)
<
0
)
ppsz_epg_info
[
i
]
=
NULL
;
}
vlc_mutex_unlock
(
&
p_item
->
lock
);
for
(
int
i
=
0
;
i
<
i_epg_info
;
i
++
)
{
if
(
!
ppsz_epg_info
[
i
]
)
continue
;
input_item_DelInfo
(
p_item
,
ppsz_epg_info
[
i
],
NULL
);
free
(
ppsz_epg_info
[
i
]
);
for
(
int
i
=
0
;
i
<
i_epg_info
;
i
++
)
{
if
(
!
ppsz_epg_info
[
i
]
)
continue
;
input_item_DelInfo
(
p_item
,
ppsz_epg_info
[
i
],
NULL
);
free
(
ppsz_epg_info
[
i
]
);
}
}
else
vlc_mutex_unlock
(
&
p_item
->
lock
);
#endif
vlc_event_t
event
=
{
.
type
=
vlc_InputItemInfoChanged
,
};
...
...
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