mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3: more cleanups
This commit is contained in:
@@ -41,43 +41,4 @@ static inline char *getExtension(char *name)
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* the function returns the base name */
|
||||
static inline char *basename(char *name)
|
||||
{
|
||||
int i = 0;
|
||||
int pos = 0;
|
||||
|
||||
while (name[i] != 0) {
|
||||
if (name[i] == '/')
|
||||
pos = i;
|
||||
i++;
|
||||
}
|
||||
|
||||
if (name[pos] == '/')
|
||||
pos++;
|
||||
|
||||
return name + pos;
|
||||
}
|
||||
|
||||
/* the function returns the directry name */
|
||||
static inline char *dirname(char *name)
|
||||
{
|
||||
static char path[100];
|
||||
unsigned int i = 0;
|
||||
int pos = 0;
|
||||
|
||||
while ((name[i] != 0) && (i < sizeof(path))) {
|
||||
if (name[i] == '/')
|
||||
pos = i;
|
||||
path[i] = name[i];
|
||||
i++;
|
||||
}
|
||||
|
||||
path[i] = 0;
|
||||
path[pos] = 0;
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -16,13 +16,11 @@ typedef struct PlaybackHandler_s {
|
||||
|
||||
int fd;
|
||||
|
||||
unsigned char isFile;
|
||||
unsigned char isHttp;
|
||||
|
||||
unsigned char isPlaying;
|
||||
unsigned char isPaused;
|
||||
unsigned char isForwarding;
|
||||
unsigned char isSeeking;
|
||||
unsigned char isCreationPhase;
|
||||
|
||||
int BackWard;
|
||||
@@ -32,8 +30,6 @@ typedef struct PlaybackHandler_s {
|
||||
|
||||
unsigned char isVideo;
|
||||
unsigned char isAudio;
|
||||
unsigned char isSubtitle;
|
||||
unsigned char isDvbSubtitle;
|
||||
unsigned char abortRequested;
|
||||
unsigned char abortPlayback;
|
||||
|
||||
|
Reference in New Issue
Block a user