Removed QOS from video playback. Removed unused buffer.

This commit is contained in:
emb 2015-01-08 22:33:26 -06:00
parent be707fe444
commit 76032584ac
3 changed files with 2 additions and 11 deletions

View File

@ -21,8 +21,7 @@
#include "../../SDL.h"
VideoComponent::VideoComponent(IVideo *videoInst, std::string videoFile, float scaleX, float scaleY)
: VideoTexture(NULL)
, VideoFile(videoFile)
: VideoFile(videoFile)
, VideoInst(videoInst)
, ScaleX(scaleX)
, ScaleY(scaleY)
@ -67,13 +66,6 @@ void VideoComponent::FreeGraphicsMemory()
VideoInst->Stop();
IsPlaying = false;
if (VideoTexture != NULL)
{
SDL_LockMutex(SDL::GetMutex());
SDL_DestroyTexture(VideoTexture);
SDL_UnlockMutex(SDL::GetMutex());
}
Component::FreeGraphicsMemory();
}

View File

@ -28,7 +28,6 @@ public:
}
private:
SDL_Texture *VideoTexture;
std::string VideoFile;
std::string Name;
IVideo *VideoInst;

View File

@ -229,7 +229,7 @@ bool GStreamerVideo::Play(std::string file)
}
g_object_set(G_OBJECT(VideoSink), "sync", TRUE, "qos", TRUE, NULL);
g_object_set(G_OBJECT(VideoSink), "sync", TRUE, "qos", FALSE, NULL);
GstPad *videoSinkPad = gst_ghost_pad_new("sink", videoConvertSinkPad);
if(!videoSinkPad)