mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-21 23:30:00 +01:00
remove old stuff, fix ssize_t, align multiple of 32 bytes, fix Map B to A by threshold, fix some leaks at exit, pre-allocate memory for fx-chain to eliminate dynamic memory allocation when switching samples or manipulating the fx chain, add docs/README.memory, add commandline option to disable static fx chain, take size of static chain in account when combined with -m option, update man page, clear font worker after samples are deleted, fix possible oob write in srt get list, lock static chain to RAM (non fatal), dont clear job and task argument in multithreader (no effect)
This commit is contained in:
@@ -8313,16 +8313,6 @@ static void update_sample_slot_data(int page_num, int slot_num, int sample_id, g
|
||||
sample_slot_t *slot = info->sample_banks[page_num]->slot[slot_num];
|
||||
sample_gui_slot_t *gui_slot = info->sample_banks[page_num]->gui_slot[slot_num];
|
||||
|
||||
#ifdef STRICT_CHECKING
|
||||
veejay_msg(VEEJAY_MSG_DEBUG, "update slot %d on page %d with (type=%d,id=%d)",
|
||||
slot_num, page_num, sample_type, sample_id );
|
||||
veejay_msg(VEEJAY_MSG_DEBUG, "(#%d,type=%d,%s,%s) change to (#%d,type=%d,%s,%s)",
|
||||
slot->sample_id,slot->sample_type,slot->timecode,slot->title,
|
||||
sample_id,sample_type,timecode,title );
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
if(slot->timecode) free(slot->timecode);
|
||||
if(slot->title) free(slot->title);
|
||||
|
||||
@@ -8350,9 +8340,7 @@ static void update_sample_slot_data(int page_num, int slot_num, int sample_id, g
|
||||
|
||||
if(sample_id > 0 )
|
||||
{
|
||||
gchar frame_title[8];
|
||||
snprintf(frame_title, sizeof(frame_title)-1, "%s", slot->title );
|
||||
gtk_frame_set_label( GTK_FRAME(gui_slot->frame),frame_title );
|
||||
gtk_frame_set_label( GTK_FRAME(gui_slot->frame),slot->title );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user