mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
interaudiosrc: Make sure we have a writable buffer before we start changing metadata
This commit is contained in:
parent
ce6222f8d4
commit
cf5cd85a3b
1 changed files with 2 additions and 1 deletions
|
@ -387,6 +387,8 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
|
|||
}
|
||||
}
|
||||
|
||||
buffer = gst_buffer_make_writable (buffer);
|
||||
|
||||
bpf = interaudiosrc->info.bpf;
|
||||
if (n < period_samples) {
|
||||
GstMapInfo map;
|
||||
|
@ -401,7 +403,6 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
|
|||
map.size);
|
||||
gst_memory_unmap (mem, &map);
|
||||
}
|
||||
buffer = gst_buffer_make_writable (buffer);
|
||||
gst_buffer_prepend_memory (buffer, mem);
|
||||
}
|
||||
n = period_samples;
|
||||
|
|
Loading…
Reference in a new issue