- out = gst_buffer_new_and_alloc (framesize);
-
- if (!gst_buffer_map (buf, &infobuf, GST_MAP_READWRITE))
- {
- gst_buffer_unref (out);
- return NULL;
- }
- if (!gst_buffer_map (out, &infoout, GST_MAP_READWRITE))
- {
- gst_buffer_unmap (buf, &infobuf);
- gst_buffer_unref (out);
- return NULL;
- }
- success = gst_audio_iec61937_payload (infobuf.data, infobuf.size,
- infoout.data, infoout.size, &sink->ringbuffer->spec);
- if (!success) {
- gst_buffer_unmap (out, &infoout);
- gst_buffer_unmap (buf, &infobuf);
- gst_buffer_unref (out);
- return NULL;
- }