Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
luzpaz
gstreamer
Commits
8163e51b
Commit
8163e51b
authored
Jan 11, 2011
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: API: Add function to re-init periodic GstClockIDs
parent
6b84f457
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
docs/gst/gstreamer-sections.txt
docs/gst/gstreamer-sections.txt
+1
-0
gst/gstclock.c
gst/gstclock.c
+25
-1
gst/gstclock.h
gst/gstclock.h
+4
-0
win32/common/libgstreamer.def
win32/common/libgstreamer.def
+1
-0
No files found.
docs/gst/gstreamer-sections.txt
View file @
8163e51b
...
...
@@ -405,6 +405,7 @@ gst_clock_get_time
gst_clock_new_single_shot_id
gst_clock_new_periodic_id
gst_clock_single_shot_id_reinit
gst_clock_periodic_id_reinit
gst_clock_get_internal_time
gst_clock_adjust_unlocked
gst_clock_unadjust_unlocked
...
...
gst/gstclock.c
View file @
8163e51b
...
...
@@ -209,7 +209,7 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time,
return
(
GstClockID
)
entry
;
}
/* WARNING : Does not modify the ref
ouc
nt
/* WARNING : Does not modify the ref
cou
nt
* WARNING : Do not use if a pending clock operation is happening on that entry */
static
gboolean
gst_clock_entry_reinit
(
GstClock
*
clock
,
GstClockEntry
*
entry
,
...
...
@@ -250,6 +250,30 @@ gst_clock_single_shot_id_reinit (GstClock * clock, GstClockID id,
GST_CLOCK_TIME_NONE
,
GST_CLOCK_ENTRY_SINGLE
);
}
/**
* gst_clock_periodic_id_reinit:
* @clock: a #GstClock
* @id: a #GstClockID
* @start_time: the requested start time
* @interval: the requested interval
*
* Reinitializes the provided periodic @id to the provided start time and
* interval. Does not modify the reference count.
*
* Returns: %TRUE if the GstClockID could be reinitialized to the provided
* @time, else %FALSE.
*
* Since: 0.10.33
*
*/
gboolean
gst_clock_periodic_id_reinit
(
GstClock
*
clock
,
GstClockID
id
,
GstClockTime
start_time
,
GstClockTime
interval
)
{
return
gst_clock_entry_reinit
(
clock
,
(
GstClockEntry
*
)
id
,
start_time
,
interval
,
GST_CLOCK_ENTRY_PERIODIC
);
}
/**
* gst_clock_id_ref:
* @id: The #GstClockID to ref
...
...
gst/gstclock.h
View file @
8163e51b
...
...
@@ -560,6 +560,10 @@ void gst_clock_id_unschedule (GstClockID id);
gboolean
gst_clock_single_shot_id_reinit
(
GstClock
*
clock
,
GstClockID
id
,
GstClockTime
time
);
gboolean
gst_clock_periodic_id_reinit
(
GstClock
*
clock
,
GstClockID
id
,
GstClockTime
start_time
,
GstClockTime
interval
);
G_END_DECLS
...
...
win32/common/libgstreamer.def
View file @
8163e51b
...
...
@@ -220,6 +220,7 @@ EXPORTS
gst_clock_id_wait_async_full
gst_clock_new_periodic_id
gst_clock_new_single_shot_id
gst_clock_periodic_id_reinit
gst_clock_return_get_type
gst_clock_set_calibration
gst_clock_set_master
...
...
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