mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
This will allow playback of MP4 files which are under download and moov atom is located at the end of file. Signed-off-by: max_10 <max_10@gmx.de>
35 lines
687 B
C
35 lines
687 B
C
#ifndef COMMON_H_
|
|
#define COMMON_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "container.h"
|
|
#include "output.h"
|
|
#include "manager.h"
|
|
#include "playback.h"
|
|
#include <pthread.h>
|
|
|
|
typedef struct PlayFiles_t
|
|
{
|
|
char *szFirstFile;
|
|
char *szSecondFile;
|
|
char *szFirstMoovAtomFile;
|
|
char *szSecondMoovAtomFile;
|
|
uint64_t iFirstFileSize;
|
|
uint64_t iSecondFileSize;
|
|
uint64_t iFirstMoovAtomOffset;
|
|
uint64_t iSecondMoovAtomOffset;
|
|
} PlayFiles_t;
|
|
|
|
typedef struct Context_s
|
|
{
|
|
PlaybackHandler_t *playback;
|
|
ContainerHandler_t *container;
|
|
OutputHandler_t *output;
|
|
ManagerHandler_t *manager;
|
|
} Context_t;
|
|
|
|
int container_ffmpeg_update_tracks(Context_t *context, char *filename, int initial);
|
|
|
|
#endif
|