projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57cefb5
)
test: Set PTS on proper variable
author
Edward Hervey
<edward@centricular.com>
Tue, 29 Jan 2019 11:01:59 +0000
(12:01 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Tue, 29 Jan 2019 11:01:59 +0000
(12:01 +0100)
This would previously set the PTS on a random address causing various
memory corruption
tests/check/libs/baseparse.c
patch
|
blob
|
history
diff --git
a/tests/check/libs/baseparse.c
b/tests/check/libs/baseparse.c
index
9db1412
..
576cae3
100644
(file)
--- a/
tests/check/libs/baseparse.c
+++ b/
tests/check/libs/baseparse.c
@@
-505,7
+505,7
@@
_src_getrange_pull_short_read (GstPad * pad, GstObject * parent,
memcpy (data, &raw_buffer[offset], buffer_size);
buf = gst_buffer_new_wrapped (data, buffer_size);
- GST_BUFFER_PTS (buf
fer
) =
+ GST_BUFFER_PTS (buf) =
gst_util_uint64_scale_round (buffer_pull_count,
GST_SECOND * TEST_VIDEO_FPS_D, TEST_VIDEO_FPS_N);
GST_BUFFER_DURATION (buf) =