v4l2_buffer_proxy: fix data type of get_v4l2_mem_type
diff --git a/xcore/v4l2_buffer_proxy.h b/xcore/v4l2_buffer_proxy.h
index 7031b6f..e5495ef 100644
--- a/xcore/v4l2_buffer_proxy.h
+++ b/xcore/v4l2_buffer_proxy.h
@@ -86,8 +86,8 @@
         return get_v4l2_buf().index;
     }
 
-    int get_v4l2_mem_type () {
-        return get_v4l2_buf().memory;
+    enum v4l2_memory get_v4l2_mem_type () {
+        return (enum v4l2_memory)(get_v4l2_buf().memory);
     }
 
     int get_v4l2_buf_length () {