Commit db5e28c5 authored by Simon Morlat's avatar Simon Morlat

mirror in-call preview on glx and macosx display filters

parent 5596daf0
......@@ -215,6 +215,7 @@ static void glxvideo_process(MSFilter *f){
}
if (f->inputs[1]!=NULL && (inm=ms_queue_peek_last(f->inputs[1]))!=0) {
if (ms_yuv_buf_init_from_mblk(&src,inm)==0){
if (!mblk_get_precious_flag(inm)) ms_yuv_buf_mirror(&src);
ogl_display_set_preview_yuv_to_display(obj->glhelper, inm);
}
}
......
......@@ -365,6 +365,7 @@ static void osx_gl_process(MSFilter* f) {
if ((m=ms_queue_peek_last(f->inputs[1])) != NULL) {
if (ms_yuv_buf_init_from_mblk (&pic,m) == 0) {
if (thiz != nil) {
if (!mblk_get_precious_flag(m)) ms_yuv_buf_mirror(&pic);
ogl_display_set_preview_yuv_to_display(thiz.glLayer->display_helper, m);
// Force redraw
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment