[cheese/camerabin2: 5/13] camerabin2: import definitions of MODE_IMAGE/VIDEO from camerabin



commit 31edda28ac16055a389d1945131f00c4daf2cb52
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date:   Wed Jul 13 16:23:53 2011 +0300

    camerabin2: import definitions of MODE_IMAGE/VIDEO from camerabin
    
       #ifndef GST_USE_UNSTABLE_API
       #warning "camerabin enums are unstable API and may change in future."
       #warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
       #endif

 libcheese/cheese-camera.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 0022d71..a36d9ae 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -31,6 +31,7 @@
 #include <clutter/clutter.h>
 #include <clutter-gst/clutter-gst.h>
 #include <gst/gst.h>
+#include <gst/basecamerabinsrc/gstcamerabin-enum.h>
 #include <X11/Xlib.h>
 
 #include "cheese-camera.h"
@@ -43,12 +44,6 @@ G_DEFINE_TYPE (CheeseCamera, cheese_camera, G_TYPE_OBJECT)
 
 #define CHEESE_CAMERA_ERROR cheese_camera_error_quark ()
 
-typedef enum
-{
-  MODE_IMAGE = 0,
-  MODE_VIDEO
-} GstCameraBinMode;
-
 typedef enum {
   GST_CAMERABIN_FLAG_SOURCE_RESIZE               = (1 << 0),
   GST_CAMERABIN_FLAG_SOURCE_COLOR_CONVERSION     = (1 << 1),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]