mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Merge commit '2f806622e1'
* commit '2f806622e1':
bktr: Use memset(0) instead of zero initialization for struct sigaction
Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
761bbb06ff
1 changed files with 2 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ static av_cold int bktr_init(const char *video_device, int width, int height,
|
|||
long ioctl_frequency;
|
||||
char *arg;
|
||||
int c;
|
||||
struct sigaction act = { {0} }, old;
|
||||
struct sigaction act, old;
|
||||
int ret;
|
||||
char errbuf[128];
|
||||
|
||||
|
|
@ -134,6 +134,7 @@ static av_cold int bktr_init(const char *video_device, int width, int height,
|
|||
frequency = 0.0;
|
||||
}
|
||||
|
||||
memset(&act, 0, sizeof(act));
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_handler = catchsignal;
|
||||
sigaction(SIGUSR1, &act, &old);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue