Commit cec9631e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28334: video: use vector::data()

parent 89c281cd
......@@ -183,7 +183,7 @@ void SHMSink::render(const std::vector<unsigned char> &data)
if (!resize_area(sizeof(SHMHeader) + data.size()))
return;
memcpy(shm_area_->data, &(*data.begin()), data.size());
memcpy(shm_area_->data, data.data(), data.size());
shm_area_->buffer_size = data.size();
shm_area_->buffer_gen++;
sem_post(&shm_area_->notification);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment