Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
456
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
1f38cbdd
Commit
1f38cbdd
authored
4 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
duplicate: log error to VLC log, not stderr
parent
99d8222d
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/stream_out/duplicate.c
+7
-4
7 additions, 4 deletions
modules/stream_out/duplicate.c
with
7 additions
and
4 deletions
modules/stream_out/duplicate.c
+
7
−
4
View file @
1f38cbdd
...
...
@@ -78,7 +78,8 @@ typedef struct
void
**
pp_ids
;
}
sout_stream_id_sys_t
;
static
bool
ESSelected
(
const
es_format_t
*
fmt
,
char
*
psz_select
);
static
bool
ESSelected
(
struct
vlc_logger
*
,
const
es_format_t
*
fmt
,
char
*
psz_select
);
/*****************************************************************************
* Control
...
...
@@ -229,7 +230,8 @@ static void *Add( sout_stream_t *p_stream, const es_format_t *p_fmt )
{
void
*
id_new
=
NULL
;
if
(
ESSelected
(
p_fmt
,
p_sys
->
ppsz_select
[
i_stream
]
)
)
if
(
ESSelected
(
p_stream
->
obj
.
logger
,
p_fmt
,
p_sys
->
ppsz_select
[
i_stream
]
)
)
{
sout_stream_t
*
out
=
p_sys
->
pp_streams
[
i_stream
];
...
...
@@ -345,7 +347,8 @@ static bool NumInRange( const char *psz_range, int i_num )
||
(
beginRange
>
endRange
&&
(
i_num
<=
beginRange
&&
i_num
>=
endRange
));
}
static
bool
ESSelected
(
const
es_format_t
*
fmt
,
char
*
psz_select
)
static
bool
ESSelected
(
struct
vlc_logger
*
logger
,
const
es_format_t
*
fmt
,
char
*
psz_select
)
{
char
*
psz_dup
;
char
*
psz
;
...
...
@@ -476,7 +479,7 @@ static bool ESSelected( const es_format_t *fmt, char *psz_select )
}
else
{
fprintf
(
stder
r
,
"unknown args (%s)
\n
"
,
psz
);
vlc_error
(
logge
r
,
"unknown args (%s)"
,
psz
);
}
/* Next */
psz
=
p
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment