Cosmetics (drop unused variables).

This commit is contained in:
gb 2010-03-09 12:00:32 +00:00
parent 95a4bca0ee
commit 1689ee112d
3 changed files with 6 additions and 15 deletions

View file

@ -56,8 +56,7 @@ gst_vaapi_display_set_display(GstVaapiDisplay *display, VADisplay va_display);
static void static void
gst_vaapi_display_finalize(GObject *object) gst_vaapi_display_finalize(GObject *object)
{ {
GstVaapiDisplay *display = GST_VAAPI_DISPLAY(object); GstVaapiDisplay * const display = GST_VAAPI_DISPLAY(object);
GstVaapiDisplayPrivate *priv = display->priv;
gst_vaapi_display_set_display(display, NULL); gst_vaapi_display_set_display(display, NULL);
@ -70,8 +69,7 @@ gst_vaapi_display_set_property(GObject *object,
const GValue *value, const GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GstVaapiDisplay *display = GST_VAAPI_DISPLAY(object); GstVaapiDisplay * const display = GST_VAAPI_DISPLAY(object);
GstVaapiDisplayPrivate *priv = display->priv;
switch (prop_id) { switch (prop_id) {
case PROP_DISPLAY: case PROP_DISPLAY:
@ -89,8 +87,7 @@ gst_vaapi_display_get_property(GObject *object,
GValue *value, GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GstVaapiDisplay *display = GST_VAAPI_DISPLAY(object); GstVaapiDisplay * const display = GST_VAAPI_DISPLAY(object);
GstVaapiDisplayPrivate *priv = display->priv;
switch (prop_id) { switch (prop_id) {
case PROP_DISPLAY: case PROP_DISPLAY:

View file

@ -51,9 +51,6 @@ gst_vaapi_display_x11_set_display(GstVaapiDisplayX11 *display,
static void static void
gst_vaapi_display_x11_finalize(GObject *object) gst_vaapi_display_x11_finalize(GObject *object)
{ {
GstVaapiDisplayX11 *display = GST_VAAPI_DISPLAY_X11(object);
GstVaapiDisplayX11Private *priv = display->priv;
G_OBJECT_CLASS(gst_vaapi_display_x11_parent_class)->finalize(object); G_OBJECT_CLASS(gst_vaapi_display_x11_parent_class)->finalize(object);
} }
@ -63,8 +60,7 @@ gst_vaapi_display_x11_set_property(GObject *object,
const GValue *value, const GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GstVaapiDisplayX11 *display = GST_VAAPI_DISPLAY_X11(object); GstVaapiDisplayX11 * const display = GST_VAAPI_DISPLAY_X11(object);
GstVaapiDisplayX11Private *priv = display->priv;
switch (prop_id) { switch (prop_id) {
case PROP_X11_DISPLAY: case PROP_X11_DISPLAY:
@ -82,8 +78,7 @@ gst_vaapi_display_x11_get_property(GObject *object,
GValue *value, GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GstVaapiDisplayX11 *display = GST_VAAPI_DISPLAY_X11(object); GstVaapiDisplayX11 * const display = GST_VAAPI_DISPLAY_X11(object);
GstVaapiDisplayX11Private *priv = display->priv;
switch (prop_id) { switch (prop_id) {
case PROP_X11_DISPLAY: case PROP_X11_DISPLAY:

View file

@ -135,7 +135,6 @@ gst_vaapi_surface_get_property(GObject *object,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GstVaapiSurface * const surface = GST_VAAPI_SURFACE(object); GstVaapiSurface * const surface = GST_VAAPI_SURFACE(object);
GstVaapiSurfacePrivate * const priv = surface->priv;
switch (prop_id) { switch (prop_id) {
case PROP_DISPLAY: case PROP_DISPLAY: