update for memory api changes
This commit is contained in:
parent
751fcf035b
commit
ad0af26eed
@ -171,7 +171,7 @@ ensure_memory (GstJpegEnc * jpegenc)
|
|||||||
|
|
||||||
/* Our output memory wasn't big enough.
|
/* Our output memory wasn't big enough.
|
||||||
* Make a new memory that's twice the size, */
|
* Make a new memory that's twice the size, */
|
||||||
new_memory = gst_allocator_alloc (NULL, desired_size, 3);
|
new_memory = gst_allocator_alloc (NULL, 0, desired_size, 0, desired_size, 3);
|
||||||
gst_memory_map (new_memory, &map, GST_MAP_READWRITE);
|
gst_memory_map (new_memory, &map, GST_MAP_READWRITE);
|
||||||
new_data = map.data;
|
new_data = map.data;
|
||||||
new_size = map.size;
|
new_size = map.size;
|
||||||
@ -567,7 +567,8 @@ gst_jpegenc_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||||||
end[i] = base[i] + GST_VIDEO_FRAME_COMP_HEIGHT (&frame, i) * stride[i];
|
end[i] = base[i] + GST_VIDEO_FRAME_COMP_HEIGHT (&frame, i) * stride[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
jpegenc->output_mem = gst_allocator_alloc (NULL, jpegenc->bufsize, 3);
|
jpegenc->output_mem =
|
||||||
|
gst_allocator_alloc (NULL, 0, jpegenc->bufsize, 0, jpegenc->bufsize, 3);
|
||||||
gst_memory_map (jpegenc->output_mem, &jpegenc->output_map, GST_MAP_READWRITE);
|
gst_memory_map (jpegenc->output_mem, &jpegenc->output_map, GST_MAP_READWRITE);
|
||||||
|
|
||||||
jpegenc->jdest.next_output_byte = jpegenc->output_map.data;
|
jpegenc->jdest.next_output_byte = jpegenc->output_map.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user