gephex--main--0.4--patch-1865
[email protected] Tue, 22 Mar 2005 16:44:23 +0100 (CET)
| Newsgroups | gmane.comp.video.gephex.devel |
|---|---|
| Message-ID | <[email protected]> |
Archive: [email protected] New revision: gephex--main--0.4--patch-1865 -- Revision: gephex--main--0.4--patch-1865 Archive: [email protected] Creator: The Gephex Source Archive <[email protected]> Date: Tue Mar 22 16:41:01 CET 2005 Standard-date: 2005-03-22 15:41:01 GMT Modified-files: types/src/miditype/miditype.h New-patches: [email protected]/gephex--main--0.4--patch-1865 [email protected]/gephex--martin--0.4--patch-64 Summary: [MERGE-REQUEST] bugfix for broken midi assign #112) Keywords: Patches applied: * [email protected]/gephex--martin--0.4--patch-64 bugfix for midi assign (#112) * added files {arch}/gephex/gephex--main/gephex--main--0.4/[email protected]/patch-log/patch-1865 {arch}/gephex/gephex--martin/gephex--martin--0.4/[email protected]/patch-log/patch-64 * modified files --- orig/types/src/miditype/miditype.h +++ mod/types/src/miditype/miditype.h @@ -73,11 +73,7 @@ static __inline void midi_set_buffer(MidiType* dst, unsigned char* buf, int len) { - if (len == 0) - return; - - if (dst->capacity < len) - midi_resize(dst, len); + midi_resize(dst, len); assert(dst->capacity >= len); assert(dst->data != 0); @@ -88,11 +84,7 @@ static __inline void midi_assign(MidiType* dst, const MidiType* src) { - if (src->len == 0) - return; - - if (dst->capacity < src->len) - midi_resize(dst, src->len); + midi_resize(dst, src->len); assert(dst->capacity >= src->len); assert(dst->data != 0);