diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-08-12 03:43:54 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-08-12 03:43:54 +0200 |
commit | 0fe98e7e4001f41b2e6d9520dcb5cde1c3e631e6 (patch) | |
tree | 1083a9bef5adc7052e4a780cbce9d461ce51896f /src/ui/new_contact.h | |
parent | 3271562e33a8f19416bff2ca122c75b98e85ed7d (diff) | |
download | messenger-gtk-0fe98e7e4001f41b2e6d9520dcb5cde1c3e631e6.tar.gz messenger-gtk-0fe98e7e4001f41b2e6d9520dcb5cde1c3e631e6.zip |
Replaced zbar dependency with gstreamer pipeline
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/new_contact.h')
-rw-r--r-- | src/ui/new_contact.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ui/new_contact.h b/src/ui/new_contact.h index 7a7ff96..dd04cce 100644 --- a/src/ui/new_contact.h +++ b/src/ui/new_contact.h | |||
@@ -29,14 +29,19 @@ | |||
29 | 29 | ||
30 | #include <cairo/cairo.h> | 30 | #include <cairo/cairo.h> |
31 | #include <gdk/gdkpixbuf.h> | 31 | #include <gdk/gdkpixbuf.h> |
32 | #include <gstreamer-1.0/gst/gst.h> | ||
32 | #include <pthread.h> | 33 | #include <pthread.h> |
33 | #include <zbar.h> | ||
34 | 34 | ||
35 | typedef struct UI_NEW_CONTACT_Handle | 35 | typedef struct UI_NEW_CONTACT_Handle |
36 | { | 36 | { |
37 | zbar_video_t *video; | 37 | GstElement *pipeline; |
38 | zbar_image_t *image; | 38 | GstElement *source; |
39 | zbar_image_scanner_t *scanner; | 39 | GstElement *scanner; |
40 | GstElement *sink; | ||
41 | |||
42 | guint bus_watch; | ||
43 | |||
44 | GdkPixbuf *image; | ||
40 | 45 | ||
41 | GtkBuilder *builder; | 46 | GtkBuilder *builder; |
42 | GtkDialog *dialog; | 47 | GtkDialog *dialog; |