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
160ca371
Commit
160ca371
authored
Nov 29, 2016
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: Fix offsetting of times_temp relative to the times array
parent
469d53ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
gst/gstclock.c
gst/gstclock.c
+2
-4
No files found.
gst/gstclock.c
View file @
160ca371
...
...
@@ -739,8 +739,7 @@ gst_clock_init (GstClock * clock)
priv
->
time_index
=
0
;
priv
->
timeout
=
DEFAULT_TIMEOUT
;
priv
->
times
=
g_new0
(
GstClockTime
,
4
*
priv
->
window_size
);
priv
->
times_temp
=
priv
->
times
+
2
*
priv
->
window_size
*
sizeof
(
GstClockTime
);
priv
->
times_temp
=
priv
->
times
+
2
*
priv
->
window_size
;
/* clear floating flag */
gst_object_ref_sink
(
clock
);
...
...
@@ -1527,8 +1526,7 @@ gst_clock_set_property (GObject * object, guint prop_id,
priv
->
window_size
=
g_value_get_int
(
value
);
priv
->
window_threshold
=
MIN
(
priv
->
window_threshold
,
priv
->
window_size
);
priv
->
times
=
g_renew
(
GstClockTime
,
priv
->
times
,
4
*
priv
->
window_size
);
priv
->
times_temp
=
priv
->
times
+
2
*
priv
->
window_size
*
sizeof
(
GstClockTime
);
priv
->
times_temp
=
priv
->
times
+
2
*
priv
->
window_size
;
/* restart calibration */
priv
->
filling
=
TRUE
;
priv
->
time_index
=
0
;
...
...
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