mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-27 20:26:31 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43800a5ed6 | ||
|
|
0318f33479 |
@@ -1,7 +1,7 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
current_version = 0.6
|
current_version = 0.7
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?)?
|
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?)?
|
||||||
serialize =
|
serialize =
|
||||||
{major}.{minor}
|
{major}.{minor}
|
||||||
|
|||||||
2
PKGBUILD
2
PKGBUILD
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
pkgname=ustreamer
|
pkgname=ustreamer
|
||||||
pkgver=0.6
|
pkgver=0.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Lightweight and fast MJPG-HTTP streamer"
|
pkgdesc="Lightweight and fast MJPG-HTTP streamer"
|
||||||
url="https://github.com/pi-kvm/ustreamer"
|
url="https://github.com/pi-kvm/ustreamer"
|
||||||
|
|||||||
@@ -21,4 +21,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION "0.6"
|
#define VERSION "0.7"
|
||||||
|
|||||||
@@ -409,9 +409,9 @@ static void _device_open_alloc_picbufs(struct device_t *dev) {
|
|||||||
LOG_DEBUG("Allocating picture buffers ...");
|
LOG_DEBUG("Allocating picture buffers ...");
|
||||||
A_CALLOC(dev->run->pictures, dev->run->n_buffers);
|
A_CALLOC(dev->run->pictures, dev->run->n_buffers);
|
||||||
|
|
||||||
dev->run->max_picture_size = (dev->run->width * dev->run->height) << 1;
|
dev->run->max_picture_size = ((dev->run->width * dev->run->height) << 1) * 2;
|
||||||
for (unsigned index = 0; index < dev->run->n_buffers; ++index) {
|
for (unsigned index = 0; index < dev->run->n_buffers; ++index) {
|
||||||
LOG_DEBUG("Allocating picture buffer %d ...", index);
|
LOG_DEBUG("Allocating picture buffer %d sized %lu bytes... ", index, dev->run->max_picture_size);
|
||||||
A_CALLOC(dev->run->pictures[index].data, dev->run->max_picture_size);
|
A_CALLOC(dev->run->pictures[index].data, dev->run->max_picture_size);
|
||||||
dev->run->pictures[index].allocated = dev->run->max_picture_size;
|
dev->run->pictures[index].allocated = dev->run->max_picture_size;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user