• R/O
  • HTTP
  • SSH
  • HTTPS

rec10-git: Commit

rec10 git


Commit MetaInfo

Revisiona9612f286df7d9a29ad101d3e59a89908a360008 (tree)
Zeit2013-12-14 14:32:01
Autorgn64_jp <gn64@rec1...>
Commitergn64_jp

Log Message

tunerec: make buf malloc-ed instead of fixed array

Ändern Zusammenfassung

Diff

--- a/tunerec/tunerec.c
+++ b/tunerec/tunerec.c
@@ -235,7 +235,7 @@ void record(int adapter_nr, char* output, int rectime) {
235235 void * record_read(void * priv) {
236236 ssize_t rt;
237237 time_t start_time, current_time;
238- char buf[DVB_READ_BUFFER_SIZE];
238+ char* buf = malloc(DVB_READ_BUFFER_SIZE);
239239 my_thread_arg* p = (my_thread_arg*)priv;
240240
241241 start_time = time(NULL);
@@ -272,7 +272,7 @@ void * record_read(void * priv) {
272272
273273 void * record_write(void * priv) {
274274 ssize_t rt = 0, wt, shift;
275- char buf[DVB_WRITE_BUFFER_SIZE];
275+ char* buf = malloc(DVB_WRITE_BUFFER_SIZE);
276276 my_thread_arg* p = (my_thread_arg*)priv;
277277
278278 while ( 1 ) {
Show on old repository browser