view loader/ldt_keeper.h @ 35348:3aba69339390

Add a file loaded by the GUI to its playlist. The GUI operates on its playlist, so the file may not be missing there. This fixes a blocking when trying to replay a file loaded by the GUI (evLoad/evLoadPlay) instead of having been given as a command line argument, as well as a segmentation fault when loading a file after a playlist has been created. Reported by Hans-Dieter Kosch, hdkosch kabelbw de.
author ib
date Thu, 22 Nov 2012 13:12:15 +0000
parents 6506ce7ba414
children
line wrap: on
line source

#ifndef MPLAYER_LDT_KEEPER_H
#define MPLAYER_LDT_KEEPER_H

extern void *fs_seg;

typedef struct {
  void* fs_seg;
  char* prev_struct;
} ldt_fs_t;

void Setup_FS_Segment(void);
ldt_fs_t* Setup_LDT_Keeper(void);
void Restore_LDT_Keeper(ldt_fs_t* ldt_fs);

#endif /* MPLAYER_LDT_KEEPER_H */