Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mythtv/libs/libmythtv/videoout_xv.cpp b/mythtv/libs/libmythtv/videoout_xv.cpp
- index f2f5827..1d80e0d 100644
- --- a/mythtv/libs/libmythtv/videoout_xv.cpp
- +++ b/mythtv/libs/libmythtv/videoout_xv.cpp
- @@ -147,6 +147,7 @@ VideoOutputXv::VideoOutputXv()
- xv_port(-1), xv_hue_base(0),
- xv_colorkey(0), xv_draw_colorkey(false),
- xv_chroma(0), xv_set_defaults(false),
- + xv_use_picture_controls(true),
- chroma_osd(NULL)
- {
- @@ -610,6 +611,8 @@ bool VideoOutputXv::InitXVideo()
- .arg(adaptor_name));
- xv_hue_base = VideoOutput::CalcHueBase(adaptor_name);
- + xv_use_picture_controls =
- + adaptor_name != "Intel(R) Textured Video";
- bool foundimageformat = false;
- int ids[] = { GUID_YV12_PLANAR, GUID_I420_PLANAR, GUID_IYUV_PLANAR, };
- @@ -854,7 +857,9 @@ bool VideoOutputXv::InitSetupBuffers(void)
- if (xv_port && (VideoOutputSubType() >= XVideo))
- save_port_attributes(xv_port);
- - InitPictureAttributes();
- + // Initialize the picture controls if we need to..
- + if (xv_use_picture_controls)
- + InitPictureAttributes();
- return true;
- }
- diff --git a/mythtv/libs/libmythtv/videoout_xv.h b/mythtv/libs/libmythtv/videoout_xv.h
- index 8ba0317..c8297f2 100644
- --- a/mythtv/libs/libmythtv/videoout_xv.h
- +++ b/mythtv/libs/libmythtv/videoout_xv.h
- @@ -153,6 +153,7 @@ class VideoOutputXv : public VideoOutput
- bool xv_set_defaults;
- buffer_map_t xv_buffers;
- bool xv_need_bobdeint_repaint;
- + bool xv_use_picture_controls;
- QMap<PictureAttribute,int> xv_attribute_min;
- QMap<PictureAttribute,int> xv_attribute_max;
- QMap<PictureAttribute,int> xv_attribute_def;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement