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
30c93dea
Commit
30c93dea
authored
Jan 21, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264.c: use pf_log to get x264 log messages
parent
860a7e5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
modules/codec/x264.c
modules/codec/x264.c
+27
-0
No files found.
modules/codec/x264.c
View file @
30c93dea
...
...
@@ -51,6 +51,7 @@
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
x264_log
(
void
*
,
int
i_level
,
const
char
*
psz
,
va_list
);
/* Frame-type options */
...
...
@@ -1235,6 +1236,8 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
rc
.
b_stat_read
=
i_val
&
2
;
}
p_sys
->
param
.
pf_log
=
x264_log
;
p_sys
->
param
.
p_log_private
=
p_enc
;
/* We need to initialize pthreadw32 before we open the encoder,
but only once for the whole application. Since pthreadw32
doesn't keep a refcount, do it ourselves. */
...
...
@@ -1315,6 +1318,30 @@ static int Open ( vlc_object_t *p_this )
return
VLC_SUCCESS
;
}
/****************************************************************************
* Logging
****************************************************************************/
static
void
x264_log
(
void
*
data
,
int
i_level
,
const
char
*
psz
,
va_list
args
)
{
encoder_t
*
p_enc
=
(
encoder_t
*
)
data
;
switch
(
i_level
)
{
case
X264_LOG_ERROR
:
i_level
=
VLC_MSG_ERR
;
break
;
case
X264_LOG_WARNING
:
i_level
=
VLC_MSG_WARN
;
case
X264_LOG_INFO
:
case
X264_LOG_DEBUG
:
i_level
=
VLC_MSG_DBG
;
default:
i_level
=
VLC_MSG_DBG
;
}
msg_GenericVa
(
p_enc
,
i_level
,
MODULE_STRING
,
psz
,
args
);
};
/****************************************************************************
* Encode:
****************************************************************************/
...
...
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