Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6e4e3d65
Commit
6e4e3d65
authored
Apr 15, 2004
by
Stephan Assmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile fix, do not declare variables in the middle of a function, this is plain C...
parent
cdb1e120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
modules/demux/sgimb.c
modules/demux/sgimb.c
+3
-2
src/playlist/playlist.c
src/playlist/playlist.c
+2
-1
No files found.
modules/demux/sgimb.c
View file @
6e4e3d65
...
...
@@ -101,6 +101,8 @@ static int Activate( vlc_object_t * p_this )
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
byte_t
*
p_peek
;
int
i_size
;
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
...
...
@@ -116,8 +118,7 @@ static int Activate( vlc_object_t * p_this )
/* Lets check the content to see if this is a sgi mediabase file */
byte_t
*
p_peek
;
int
i_size
=
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
MAX_LINE
);
i_size
=
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
MAX_LINE
);
i_size
-=
sizeof
(
"sgiNameServerHost="
)
-
1
;
if
(
i_size
>
0
)
{
while
(
i_size
...
...
src/playlist/playlist.c
View file @
6e4e3d65
...
...
@@ -491,6 +491,7 @@ static void SkipItem( playlist_t *p_playlist, int i_arg )
int
i_oldindex
=
p_playlist
->
i_index
;
vlc_bool_t
b_random
,
b_repeat
,
b_loop
;
vlc_value_t
val
;
int
i_count
;
/* If the playlist is empty, there is no current item */
if
(
p_playlist
->
i_size
==
0
)
...
...
@@ -510,7 +511,7 @@ static void SkipItem( playlist_t *p_playlist, int i_arg )
if
(
b_random
)
{
srand
(
(
unsigned
int
)
mdate
()
);
i
nt
i
_count
=
0
;
i_count
=
0
;
while
(
i_count
<
p_playlist
->
i_size
)
{
p_playlist
->
i_index
=
...
...
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