mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-31 03:55:46 +01:00
Removed QOS from video playback. Removed unused buffer.
This commit is contained in:
parent
be707fe444
commit
76032584ac
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
SDL_Texture *VideoTexture;
|
||||
std::string VideoFile;
|
||||
std::string Name;
|
||||
IVideo *VideoInst;
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user