Fix stream restart

Make sure we always send a clock update before sending a start command.
Fix memory size.
Follow the state of the node to do allocation
Use the pinos node to control the state
When doing STREAMOFF, all buffers will be dequeued. requeue them buffers
for when we go to playing again.
This commit is contained in:
Wim Taymans 2016-09-13 10:34:32 +02:00
parent e34ef88dac
commit 021eccb8ad
7 changed files with 107 additions and 63 deletions

View file

@ -407,7 +407,7 @@ on_add_buffer (GObject *gobject,
if (mem->fd) {
gmem = gst_fd_allocator_alloc (pinossrc->fd_allocator, dup (mem->fd),
d->mem.offset + d->mem.size, GST_FD_MEMORY_FLAG_NONE);
mem->size, GST_FD_MEMORY_FLAG_NONE);
gst_memory_resize (gmem, d->mem.offset, d->mem.size);
} else {
gmem = gst_memory_new_wrapped (0, mem->ptr, mem->size, d->mem.offset,