implement simple gstreamer_plackback

Origin commit data
------------------
Branch: master
Commit: 410b707f76
Author: TangoCash <eric@loxat.de>
Date: 2015-01-03 (Sat, 03 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2015-01-03 19:24:37 +01:00
parent 48008d4ffa
commit d01583ed28
6 changed files with 938 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
#include <unistd.h>
#include <linux/input.h>
#include "glfb.h"
#include <GL/glx.h>
#include "video_lib.h"
#include "audio_lib.h"
@@ -121,10 +122,16 @@ void GLFramebuffer::initKeys()
mSpecialMap[GLUT_KEY_F3] = KEY_YELLOW;
mSpecialMap[GLUT_KEY_F4] = KEY_BLUE;
mSpecialMap[GLUT_KEY_F5] = KEY_WWW;
mSpecialMap[GLUT_KEY_F6] = KEY_SUBTITLE;
mSpecialMap[GLUT_KEY_F7] = KEY_MOVE;
mSpecialMap[GLUT_KEY_F8] = KEY_SLEEP;
mSpecialMap[GLUT_KEY_F5] = KEY_PLAY;
mSpecialMap[GLUT_KEY_F6] = KEY_STOP;
mSpecialMap[GLUT_KEY_F7] = KEY_FORWARD;
mSpecialMap[GLUT_KEY_F8] = KEY_REWIND;
mSpecialMap[GLUT_KEY_F9] = KEY_RECORD;
mSpecialMap[GLUT_KEY_F10] = KEY_PAUSE;
mSpecialMap[GLUT_KEY_F11] = KEY_NEXT;
mSpecialMap[GLUT_KEY_F12] = KEY_PREVIOUS;
mSpecialMap[GLUT_KEY_PAGE_UP] = KEY_PAGEUP;
mSpecialMap[GLUT_KEY_PAGE_DOWN] = KEY_PAGEDOWN;
@@ -205,6 +212,7 @@ void GLFramebuffer::setupCtx()
glutInitWindowSize(mX[0], mY[0]);
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("Neutrino");
GLWinID = glXGetCurrentDrawable(); // this was the holy grail to get the right window handle for gstreamer :D
}
void GLFramebuffer::setupOSDBuffer()