mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-05-02 02:49:38 +02:00
Removed QOS from video playback. Removed unused buffer.
This commit is contained in:
@@ -21,8 +21,7 @@
|
|||||||
#include "../../SDL.h"
|
#include "../../SDL.h"
|
||||||
|
|
||||||
VideoComponent::VideoComponent(IVideo *videoInst, std::string videoFile, float scaleX, float scaleY)
|
VideoComponent::VideoComponent(IVideo *videoInst, std::string videoFile, float scaleX, float scaleY)
|
||||||
: VideoTexture(NULL)
|
: VideoFile(videoFile)
|
||||||
, VideoFile(videoFile)
|
|
||||||
, VideoInst(videoInst)
|
, VideoInst(videoInst)
|
||||||
, ScaleX(scaleX)
|
, ScaleX(scaleX)
|
||||||
, ScaleY(scaleY)
|
, ScaleY(scaleY)
|
||||||
@@ -67,13 +66,6 @@ void VideoComponent::FreeGraphicsMemory()
|
|||||||
VideoInst->Stop();
|
VideoInst->Stop();
|
||||||
IsPlaying = false;
|
IsPlaying = false;
|
||||||
|
|
||||||
if (VideoTexture != NULL)
|
|
||||||
{
|
|
||||||
SDL_LockMutex(SDL::GetMutex());
|
|
||||||
SDL_DestroyTexture(VideoTexture);
|
|
||||||
SDL_UnlockMutex(SDL::GetMutex());
|
|
||||||
}
|
|
||||||
|
|
||||||
Component::FreeGraphicsMemory();
|
Component::FreeGraphicsMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SDL_Texture *VideoTexture;
|
|
||||||
std::string VideoFile;
|
std::string VideoFile;
|
||||||
std::string Name;
|
std::string Name;
|
||||||
IVideo *VideoInst;
|
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);
|
GstPad *videoSinkPad = gst_ghost_pad_new("sink", videoConvertSinkPad);
|
||||||
if(!videoSinkPad)
|
if(!videoSinkPad)
|
||||||
|
|||||||
Reference in New Issue
Block a user