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
097ab852
Commit
097ab852
authored
May 25, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed one vlc_object_find(INPUT, PARENT) in subtitle_asa.
parent
5a66939e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
modules/demux/subtitle_asa.c
modules/demux/subtitle_asa.c
+4
-10
No files found.
modules/demux/subtitle_asa.c
View file @
097ab852
...
...
@@ -117,7 +117,6 @@ static int Open ( vlc_object_t *p_this )
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
;
es_format_t
fmt
;
input_thread_t
*
p_input
;
float
f_fps
;
char
*
psz_type
;
int64_t
i_ssize
;
...
...
@@ -142,16 +141,11 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
i_microsecperframe
=
40000
;
/* Get the FPS */
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_demux
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
p_input
)
{
f_fps
=
var_GetFloat
(
p_input
,
"sub-original-fps"
);
if
(
f_fps
>=
1
.
0
)
p_sys
->
i_microsecperframe
=
(
int64_t
)(
(
float
)
1000000
/
f_fps
);
f_fps
=
var_CreateGetFloat
(
p_demux
,
"sub-original-fps"
);
if
(
f_fps
>=
1
.
0
)
p_sys
->
i_microsecperframe
=
(
int64_t
)(
(
float
)
1000000
/
f_fps
);
msg_Dbg
(
p_demux
,
"Movie fps: %f"
,
f_fps
);
vlc_object_release
(
p_input
);
}
msg_Dbg
(
p_demux
,
"Movie fps: %f"
,
f_fps
);
/* Check for override of the fps */
f_fps
=
var_CreateGetFloat
(
p_demux
,
"sub-fps"
);
...
...
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