g_assert (cur_output_size < 1024);
/* create the buffer (TODO: use buffer pool?) */
- buf = gst_buffer_new_allocate (NULL, cur_output_size * DVD_VIDEO_LB_LEN, 0);
+ buf =
+ gst_buffer_new_allocate (NULL, cur_output_size * DVD_VIDEO_LB_LEN, NULL);
GST_LOG_OBJECT (src, "Going to read %u sectors @ pack %d", cur_output_size,
src->cur_pack);
/* allocate space for output */
mp3_buffer_size = 1.25 * num_samples + 7200;
- mp3_buf = gst_buffer_new_allocate (NULL, mp3_buffer_size, 0);
+ mp3_buf = gst_buffer_new_allocate (NULL, mp3_buffer_size, NULL);
gst_buffer_map (mp3_buf, &mp3_map, GST_MAP_WRITE);
/* lame seems to be too stupid to get mono interleaved going */
*/
#ifdef enable_user_data
if (info->user_data_len > 0) {
- GstBuffer *udbuf = gst_buffer_new_allocate (NULL, info->user_data_len, 0);
+ GstBuffer *udbuf =
+ gst_buffer_new_allocate (NULL, info->user_data_len, NULL);
gst_buffer_fill (udbuf, 0, info->user_data, info->user_data_len);
goto out;
}
- out_buf = gst_buffer_new_allocate (NULL, i_size, 0);
+ out_buf = gst_buffer_new_allocate (NULL, i_size, NULL);
gst_buffer_fill (out_buf, 0, data, i_size);
GST_LOG_OBJECT (encoder,
if (samples < 1)
goto drop;
- outbuf = gst_buffer_new_allocate (NULL, samples * 3, 0);
+ outbuf = gst_buffer_new_allocate (NULL, samples * 3, NULL);
gst_buffer_copy_into (outbuf, buf, GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
/* adjust samples so we can calc the new timestamp */
GstVideoFrame frame;
guint8 *data;
gint x, y;
+ static GstAllocationParams params = { 0, 0, 0, 3, };
g_assert (dec->have_title);
g_assert (dec->next_ts <= end_ts);
}
out_buf =
- gst_buffer_new_allocate (NULL, 4 * GST_VIDEO_INFO_SIZE (&dec->info), 3);
+ gst_buffer_new_allocate (NULL, 4 * GST_VIDEO_INFO_SIZE (&dec->info),
+ ¶ms);
gst_video_frame_map (&frame, &dec->info, out_buf, GST_MAP_READWRITE);
data = GST_VIDEO_FRAME_PLANE_DATA (&frame, 0);