[cheese/camerabin2: 10/24] camerabin2: import definitions of MODE_IMAGE/VIDEO from camerabin



commit 88d153cbcc986daaaf6bf5099733a2718c266675
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 f12acc2..58a9f00 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"
@@ -54,12 +55,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]