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
0183572d
Commit
0183572d
authored
Mar 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/vlm.c: couple of fixes pointed out by johnluo.
parent
bae9b579
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/misc/vlm.c
src/misc/vlm.c
+12
-4
No files found.
src/misc/vlm.c
View file @
0183572d
...
...
@@ -38,6 +38,7 @@
#ifdef HAVE_TIME_H
# include <time.h>
/* ctime() */
# include <sys/timeb.h>
/* ftime() */
#endif
#include "vlc_vlm.h"
...
...
@@ -1130,7 +1131,7 @@ int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, char *psz_id,
p_instance
=
vlm_MediaInstanceSearch
(
vlm
,
media
,
psz_id
);
if
(
!
strcmp
(
psz_command
,
"play"
)
&&
!
p_instance
)
if
(
!
strcmp
(
psz_command
,
"play"
)
)
{
if
(
!
media
->
b_enabled
||
media
->
i_input
==
0
)
return
0
;
...
...
@@ -1248,6 +1249,13 @@ int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, char *psz_id,
/*****************************************************************************
* Schedule handling
*****************************************************************************/
static
int64_t
vlm_Date
()
{
struct
timeb
tm
;
ftime
(
&
tm
);
return
((
int64_t
)
tm
.
time
)
*
1000000
+
((
int64_t
)
tm
.
millitm
)
*
1000
;
}
vlm_schedule_t
*
vlm_ScheduleNew
(
vlm_t
*
vlm
,
char
*
psz_name
)
{
vlm_schedule_t
*
p_sched
=
malloc
(
sizeof
(
vlm_schedule_t
)
);
...
...
@@ -1801,7 +1809,7 @@ static vlm_message_t *vlm_Show( vlm_t *vlm, vlm_media_t *media,
vlm_MessageNew
(
"enabled"
,
"yes"
)
);
/* calculate next date */
i_time
=
md
ate
();
i_time
=
vlm_D
ate
();
i_next_date
=
s
->
i_date
;
if
(
s
->
i_period
!=
0
)
...
...
@@ -2255,7 +2263,7 @@ static int Manage( vlc_object_t* p_object )
mtime_t
i_lastcheck
;
mtime_t
i_time
;
i_lastcheck
=
md
ate
();
i_lastcheck
=
vlm_D
ate
();
msleep
(
100000
);
...
...
@@ -2302,7 +2310,7 @@ static int Manage( vlc_object_t* p_object )
}
/* scheduling */
i_time
=
md
ate
();
i_time
=
vlm_D
ate
();
for
(
i
=
0
;
i
<
vlm
->
i_schedule
;
i
++
)
{
...
...
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