OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c8a213
)
tunerec: make buf malloc-ed instead of fixed array
author
gn64_jp
<gn64@rec10.org>
Sat, 14 Dec 2013 05:32:01 +0000
(14:32 +0900)
committer
gn64_jp
<gn64@rec10.org>
Sat, 14 Dec 2013 05:32:01 +0000
(14:32 +0900)
tunerec/tunerec.c
patch
|
blob
|
history
diff --git
a/tunerec/tunerec.c
b/tunerec/tunerec.c
index
fad6b6d
..
822200a
100755
(executable)
--- a/
tunerec/tunerec.c
+++ b/
tunerec/tunerec.c
@@
-235,7
+235,7
@@
void record(int adapter_nr, char* output, int rectime) {
void * record_read(void * priv) {
ssize_t rt;
time_t start_time, current_time;
void * record_read(void * priv) {
ssize_t rt;
time_t start_time, current_time;
- char
buf[DVB_READ_BUFFER_SIZE]
;
+ char
* buf = malloc(DVB_READ_BUFFER_SIZE)
;
my_thread_arg* p = (my_thread_arg*)priv;
start_time = time(NULL);
my_thread_arg* p = (my_thread_arg*)priv;
start_time = time(NULL);
@@
-272,7
+272,7
@@
void * record_read(void * priv) {
void * record_write(void * priv) {
ssize_t rt = 0, wt, shift;
void * record_write(void * priv) {
ssize_t rt = 0, wt, shift;
- char
buf[DVB_WRITE_BUFFER_SIZE]
;
+ char
* buf = malloc(DVB_WRITE_BUFFER_SIZE)
;
my_thread_arg* p = (my_thread_arg*)priv;
while ( 1 ) {
my_thread_arg* p = (my_thread_arg*)priv;
while ( 1 ) {