-good: update for buffer API change

This commit is contained in:
Wim Taymans 2011-06-13 16:33:57 +02:00
parent 9a54175e9f
commit eed80e2dd3
4 changed files with 4 additions and 4 deletions

View file

@ -1573,7 +1573,7 @@ gst_avi_mux_write_index (GstAviMux * avimux)
buffdata = (guint8 *) avimux->idx;
avimux->idx = NULL; /* will be free()'ed by gst_buffer_unref() */
gst_buffer_take_memory (buffer,
gst_buffer_take_memory (buffer, -1,
gst_memory_new_wrapped (0, buffdata, g_free, buffsize, 0, buffsize));
avimux->total_data += buffsize + 8;

View file

@ -152,7 +152,7 @@ gst_avi_subtitle_extract_file (GstAviSubtitle * sub, GstBuffer * buffer,
ret = gst_buffer_new ();
slen = strlen (utf8);
gst_buffer_take_memory (ret,
gst_buffer_take_memory (ret, -1,
gst_memory_new_wrapped (0, utf8, g_free, slen, 0, slen));
GST_BUFFER_OFFSET (ret) = 0;

View file

@ -3589,7 +3589,7 @@ gst_rtspsrc_loop_interleaved (GstRTSPSrc * src)
size -= 1;
buf = gst_buffer_new ();
gst_buffer_take_memory (buf,
gst_buffer_take_memory (buf, -1,
gst_memory_new_wrapped (0, data, g_free, size, 0, size));
/* don't need message anymore */

View file

@ -525,7 +525,7 @@ no_select:
}
outbuf = gst_buffer_new ();
gst_buffer_take_memory (outbuf,
gst_buffer_take_memory (outbuf, -1,
gst_memory_new_wrapped (0, pktdata, g_free, pktsize, offset, ret));
/* use buffer metadata so receivers can also track the address */