Commit ef8f045f authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey

test: Set PTS on proper variable

This would previously set the PTS on a random address causing various
memory corruption
parent 57cefb59
......@@ -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 (buffer) =
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) =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment