Mesa (pipe-video): g3dvl/vdpau: some more indention fixes

Christian König deathsimple at kemper.freedesktop.org
Thu Apr 7 11:11:37 PDT 2011


Module: Mesa
Branch: pipe-video
Commit: ebd564587a46891cb2729c6a0ed84b7c27dc23ec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ebd564587a46891cb2729c6a0ed84b7c27dc23ec

Author: Christian König <deathsimple at vodafone.de>
Date:   Sun Apr  3 22:01:15 2011 +0200

g3dvl/vdpau: some more indention fixes

---

 src/gallium/state_trackers/vdpau/device.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c
index 0f9b7b6..d3314d0 100644
--- a/src/gallium/state_trackers/vdpau/device.c
+++ b/src/gallium/state_trackers/vdpau/device.c
@@ -32,7 +32,6 @@
 #include <util/u_debug.h>
 #include "vdpau_private.h"
 
-
 PUBLIC VdpStatus
 vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
                           VdpGetProcAddress **get_proc_address)
@@ -57,8 +56,7 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device,
    dev->display = display;
    dev->screen = screen;
    dev->vscreen = vl_screen_create(display, screen);
-   if (!dev->vscreen)
-	   {
+   if (!dev->vscreen) {
       ret = VDP_STATUS_RESOURCES;
       goto no_vscreen;
    }
@@ -107,14 +105,14 @@ vlVdpPresentationQueueTargetCreateX11(VdpDevice device, Drawable drawable,
    pqt->device = dev;
    pqt->drawable = drawable;
 
-	*target = vlAddDataHTAB(pqt);
+   *target = vlAddDataHTAB(pqt);
    if (*target == 0) {
       ret = VDP_STATUS_ERROR;
       goto no_handle;
    }
 
-
    return VDP_STATUS_OK;
+
 no_handle:
    FREE(dev);
    return ret;
@@ -191,5 +189,6 @@ vlVdpGetErrorString (VdpStatus status)
       all supplied surfaces must have been created within the context of the same VdpDevice object. \
       This error is raised if they were not.");
    _ERROR_TYPE(VDP_STATUS_ERROR,"A catch-all error, used when no other error code applies.");
+   default: return "Unknown Error";
    }
 }



More information about the mesa-commit mailing list