mirror of
https://github.com/Relintai/rpi_player.git
synced 2024-11-23 15:27:42 +01:00
33 lines
430 B
C++
33 lines
430 B
C++
#ifndef VLC_SCENE_H
|
|
#define VLC_SCENE_H
|
|
|
|
#include "scene.h"
|
|
|
|
#include <SDL.h>
|
|
|
|
#include "vlc/vlc.h"
|
|
|
|
class VLCScene : public Scene {
|
|
public:
|
|
void event(const SDL_Event &ev);
|
|
void update(float delta);
|
|
void render();
|
|
|
|
VLCScene();
|
|
~VLCScene();
|
|
|
|
SDL_Texture *texture;
|
|
SDL_mutex *mutex;
|
|
int n;
|
|
|
|
libvlc_instance_t *libvlc;
|
|
libvlc_media_t *m;
|
|
libvlc_media_player_t *mp;
|
|
|
|
bool r;
|
|
int done;
|
|
int action;
|
|
int pause;
|
|
};
|
|
|
|
#endif |