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
cf5951e9
Commit
cf5951e9
authored
Oct 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: do not clobber master frame rate
parent
37c38fd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/input/input.c
src/input/input.c
+3
-4
src/input/input_internal.h
src/input/input_internal.h
+1
-1
No files found.
src/input/input.c
View file @
cf5951e9
...
...
@@ -912,7 +912,7 @@ static void LoadSubtitles( input_thread_t *p_input )
{
/* Load subtitles */
/* Get fps and set it if not already set */
const
float
f_fps
=
p_input
->
p
->
f_fps
;
const
float
f_fps
=
p_input
->
p
->
master
->
f_fps
;
if
(
f_fps
>
1
.
f
)
{
var_Create
(
p_input
,
"sub-original-fps"
,
VLC_VAR_FLOAT
);
...
...
@@ -2095,7 +2095,6 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,
return
NULL
;
const
char
*
psz_access
,
*
psz_demux
,
*
psz_path
,
*
psz_anchor
=
NULL
;
double
f_fps
;
assert
(
psz_mrl
);
char
*
psz_dup
=
strdup
(
psz_mrl
);
...
...
@@ -2272,8 +2271,8 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,
in
->
i_pts_delay
=
0
;
}
if
(
!
demux_Control
(
in
->
p_demux
,
DEMUX_GET_FPS
,
&
f_fps
)
&&
f_fps
>
0
.
0
)
p_input
->
p
->
f_fps
=
f_fps
;
if
(
demux_Control
(
in
->
p_demux
,
DEMUX_GET_FPS
,
&
in
->
f_fps
)
)
in
->
f_fps
=
0
.
f
;
if
(
var_GetInteger
(
p_input
,
"clock-synchro"
)
!=
-
1
)
in
->
b_can_pace_control
=
!
var_GetInteger
(
p_input
,
"clock-synchro"
);
...
...
src/input/input_internal.h
View file @
cf5951e9
...
...
@@ -63,6 +63,7 @@ typedef struct
bool
b_can_rate_control
;
bool
b_can_stream_record
;
bool
b_rescale_ts
;
double
f_fps
;
/* */
int64_t
i_pts_delay
;
...
...
@@ -81,7 +82,6 @@ typedef struct
struct
input_thread_private_t
{
/* Global properties */
double
f_fps
;
bool
b_can_pause
;
bool
b_can_rate_control
;
bool
b_can_pace_control
;
...
...
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