Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a6ef9bbb
Commit
a6ef9bbb
authored
Aug 13, 2002
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
./modules/control/rc/rc.c: fixed a segfault when pressing 'i' with no
input
parent
5a64fbd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
modules/control/rc/rc.c
modules/control/rc/rc.c
+25
-19
No files found.
modules/control/rc/rc.c
View file @
a6ef9bbb
...
...
@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.
1 2002/08/04 17:23:42 sam
Exp $
* $Id: rc.c,v 1.
2 2002/08/13 13:15:14 sigmunau
Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
...
...
@@ -288,27 +288,33 @@ static void Run( intf_thread_t *p_intf )
break
;
case
'i'
:
case
'I'
:
printf
(
"Dumping stream info
\n
"
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_category
=
p_input
->
stream
.
p_info
;
while
(
p_category
)
{
psz_dashes
[
72
-
strlen
(
p_category
->
psz_name
)
]
=
'\0'
;
printf
(
"+--| %s |%s+
\n
"
,
p_category
->
psz_name
,
psz_dashes
);
psz_dashes
[
72
-
strlen
(
p_category
->
psz_name
)
]
=
'-'
;
p_info
=
p_category
->
p_info
;
while
(
p_info
)
if
(
p_input
)
{
printf
(
"Dumping stream info
\n
"
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_category
=
p_input
->
stream
.
p_info
;
while
(
p_category
)
{
printf
(
"| %s: %s
\n
"
,
p_info
->
psz_name
,
p_info
->
psz_value
);
p_info
=
p_info
->
p_next
;
psz_dashes
[
72
-
strlen
(
p_category
->
psz_name
)
]
=
'\0'
;
printf
(
"+--| %s |%s+
\n
"
,
p_category
->
psz_name
,
psz_dashes
);
psz_dashes
[
72
-
strlen
(
p_category
->
psz_name
)
]
=
'-'
;
p_info
=
p_category
->
p_info
;
while
(
p_info
)
{
printf
(
"| %s: %s
\n
"
,
p_info
->
psz_name
,
p_info
->
psz_value
);
p_info
=
p_info
->
p_next
;
}
printf
(
"|
\n
"
);
p_category
=
p_category
->
p_next
;
}
printf
(
"|
\n
"
);
p_category
=
p_category
->
p_next
;
psz_dashes
[
78
]
=
'\0'
;
printf
(
"+%s+
\n
"
,
psz_dashes
);
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
else
{
printf
(
"no input"
);
}
psz_dashes
[
78
]
=
'\0'
;
printf
(
"+%s+
\n
"
,
psz_dashes
);
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
break
;
case
'\0'
:
/* Ignore empty lines */
...
...
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