window. It's pretty much useless */
sink->use_glx = FALSE;
+ sink->foreign_window = TRUE;
gst_vaapisink_ensure_window_xid(sink, xid);
}
display_ratio = (gdouble)display_rect->width / display_rect->height;
GST_DEBUG("scaling to %ux%u", display_rect->width, display_rect->height);
- if (sink->fullscreen ||
+ if (sink->fullscreen || sink->foreign_window ||
display_rect->width > width || display_rect->height > height) {
if (sink->video_width > sink->video_height) {
display_rect->width = width;
sink->video_height = 0;
sink->video_par_n = 1;
sink->video_par_d = 1;
+ sink->foreign_window = FALSE;
sink->fullscreen = FALSE;
sink->synchronous = FALSE;
sink->use_glx = USE_VAAPISINK_GLX;