"red_mask", G_TYPE_INT, ximagesink->xcontext->visual->red_mask,
"green_mask", G_TYPE_INT, ximagesink->xcontext->visual->green_mask,
"blue_mask", G_TYPE_INT, ximagesink->xcontext->visual->blue_mask,
- "width", G_TYPE_INT, e.xconfigure.width & ~3,
- "height", G_TYPE_INT, e.xconfigure.height & ~3,
+ "width", G_TYPE_INT, e.xconfigure.width,
+ "height", G_TYPE_INT, e.xconfigure.height,
"framerate", G_TYPE_DOUBLE, ximagesink->framerate,
NULL));
if ( (r == GST_PAD_LINK_OK) || (r == GST_PAD_LINK_DONE) )
{
- GST_VIDEOSINK_WIDTH (ximagesink) = e.xconfigure.width & ~3;
- GST_VIDEOSINK_HEIGHT (ximagesink) = e.xconfigure.height & ~3;
+ GST_VIDEOSINK_WIDTH (ximagesink) = e.xconfigure.width;
+ GST_VIDEOSINK_HEIGHT (ximagesink) = e.xconfigure.height;
if ( (ximagesink->ximage) &&
( (GST_VIDEOSINK_WIDTH (ximagesink) != ximagesink->ximage->width) ||
"blue_mask", G_TYPE_INT, xcontext->visual->blue_mask,
"width", GST_TYPE_INT_RANGE, 0, G_MAXINT,
"height", GST_TYPE_INT_RANGE, 0, G_MAXINT,
- "framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE,
+ "framerate", GST_TYPE_DOUBLE_RANGE, 1.0, 100.0,
NULL);
g_mutex_unlock (ximagesink->x_lock);
return gst_caps_copy (ximagesink->xcontext->caps);
return gst_caps_from_string ("video/x-raw-rgb, "
- "framerate = (double) [ 0, MAX ], "
+ "framerate = (double) [ 1, 100 ], "
"width = (int) [ 0, MAX ], "
"height = (int) [ 0, MAX ]");
}
"red_mask", G_TYPE_INT, ximagesink->xcontext->visual->red_mask,
"green_mask", G_TYPE_INT, ximagesink->xcontext->visual->green_mask,
"blue_mask", G_TYPE_INT, ximagesink->xcontext->visual->blue_mask,
- "width", G_TYPE_INT, xwindow->width & ~3,
- "height", G_TYPE_INT, xwindow->height & ~3,
+ "width", G_TYPE_INT, xwindow->width,
+ "height", G_TYPE_INT, xwindow->height,
"framerate", G_TYPE_DOUBLE, ximagesink->framerate,
NULL));
/* If caps nego succeded updating our size */
if ( (r == GST_PAD_LINK_OK) || (r == GST_PAD_LINK_DONE) )
{
- GST_VIDEOSINK_WIDTH (ximagesink) = xwindow->width & ~3;
- GST_VIDEOSINK_HEIGHT (ximagesink) = xwindow->height & ~3;
+ GST_VIDEOSINK_WIDTH (ximagesink) = xwindow->width;
+ GST_VIDEOSINK_HEIGHT (ximagesink) = xwindow->height;
}
}
}
"red_mask", G_TYPE_INT, formats[i].blue_mask,
"width", GST_TYPE_INT_RANGE, 0, G_MAXINT,
"height", GST_TYPE_INT_RANGE, 0, G_MAXINT,
- "framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE,
+ "framerate", GST_TYPE_DOUBLE_RANGE, 1.0, 100.0,
NULL);
/* For RGB caps we store them and the image
"format", GST_TYPE_FOURCC,formats[i].id,
"width", GST_TYPE_INT_RANGE, 0, G_MAXINT,
"height", GST_TYPE_INT_RANGE, 0, G_MAXINT,
- "framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE,
+ "framerate", GST_TYPE_DOUBLE_RANGE, 1.0, 100.0,
NULL);
break;
default:
return gst_caps_from_string(
"video/x-raw-rgb, "
- "framerate = (double) [ 0, MAX ], "
+ "framerate = (double) [ 1.0, 100.0 ], "
"width = (int) [ 0, MAX ], "
"height = (int) [ 0, MAX ]; "
"video/x-raw-yuv, "