Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9d269c5b
Commit
9d269c5b
authored
Feb 20, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove msecstotimestr
parent
c58a5af7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
include/vlc_mtime.h
include/vlc_mtime.h
+0
-8
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+2
-2
modules/gui/ncurses.c
modules/gui/ncurses.c
+2
-2
No files found.
include/vlc_mtime.h
View file @
9d269c5b
...
...
@@ -51,14 +51,6 @@
*****************************************************************************/
#define MSTRTIME_MAX_SIZE 22
/* Well, Duh? But it does clue us in that we are converting from
millisecond quantity to a second quantity or vice versa.
*/
#define MILLISECONDS_PER_SEC 1000
#define msecstotimestr(psz_buffer, msecs) \
secstotimestr( psz_buffer, (msecs / (int) MILLISECONDS_PER_SEC) )
/*****************************************************************************
* Prototypes
*****************************************************************************/
...
...
modules/access/vcdx/access.c
View file @
9d269c5b
...
...
@@ -193,7 +193,7 @@ VCDReadBlock( access_t * p_access )
Until then...
*/
#if 1
msleep
(
MILLISECONDS_PER_SEC
*
*
p_buf
);
msleep
(
INT64_C
(
1000
)
*
*
p_buf
);
VCDSetOrigin
(
p_access
,
p_vcdplayer
->
origin_lsn
,
p_vcdplayer
->
i_track
,
&
(
p_vcdplayer
->
play_item
));
// p_vcd->in_still = false;
...
...
@@ -1050,7 +1050,7 @@ static int VCDControl( access_t *p_access, int i_query, va_list args )
/* */
case
ACCESS_GET_PTS_DELAY
:
*
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
)
=
MILLISECONDS_PER_SEC
*
*
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
)
=
INT64_C
(
1000
)
*
var_GetInteger
(
p_access
,
MODULE_STRING
"-caching"
);
dbg_print
(
INPUT_DBG_EVENT
,
"GET PTS DELAY"
);
return
VLC_SUCCESS
;
...
...
modules/gui/ncurses.c
View file @
9d269c5b
...
...
@@ -1520,10 +1520,10 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
/* Position */
var_Get
(
p_input
,
"time"
,
&
val
);
msecstotimestr
(
buf1
,
val
.
i_time
/
1000
);
secstotimestr
(
buf1
,
val
.
i_time
/
CLOCK_FREQ
);
var_Get
(
p_input
,
"length"
,
&
val
);
msecstotimestr
(
buf2
,
val
.
i_time
/
1000
);
secstotimestr
(
buf2
,
val
.
i_time
/
CLOCK_FREQ
);
mvnprintw
(
y
++
,
0
,
COLS
,
_
(
" Position : %s/%s (%.2f%%)"
),
buf1
,
buf2
,
p_sys
->
f_slider
);
...
...
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