mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-06-06 19:06:48 +02:00
Enable gstreamer pixel aspect ratio correction.
This commit is contained in:
@@ -209,7 +209,7 @@ bool GStreamerVideo::play(std::string file)
|
|||||||
videoBin_ = gst_bin_new("SinkBin");
|
videoBin_ = gst_bin_new("SinkBin");
|
||||||
videoSink_ = gst_element_factory_make("fakesink", "video_sink");
|
videoSink_ = gst_element_factory_make("fakesink", "video_sink");
|
||||||
videoConvert_ = gst_element_factory_make("capsfilter", "video_convert");
|
videoConvert_ = gst_element_factory_make("capsfilter", "video_convert");
|
||||||
videoConvertCaps_ = gst_caps_from_string("video/x-raw,format=(string)I420");
|
videoConvertCaps_ = gst_caps_from_string("video/x-raw,format=(string)I420,pixel-aspect-ratio=(fraction)1/1");
|
||||||
height_ = 0;
|
height_ = 0;
|
||||||
width_ = 0;
|
width_ = 0;
|
||||||
if(!playbin_)
|
if(!playbin_)
|
||||||
|
|||||||
Reference in New Issue
Block a user