/
lapsi-backend.h
71 lines (51 loc) · 1.67 KB
/
lapsi-backend.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef LAPSI_BACKEND_H
#define LAPSI_BACKEND_H
#include <string.h>
#include <gtk/gtk.h>
#include <gst/gst.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gst/video/videooverlay.h>
typedef struct _CustomData {
GstElement *playbin; /* Our one and only pipeline */
GtkWidget *slider; /* Slider widget to keep track of current position */
GtkWidget *streams_list; /* Text widget to display info about the streams */
gulong slider_update_signal_id; /* Signal ID for the slider update signal */
GstState state; /* Current state of the pipeline */
gint64 duration; /* Duration of the clip, in nanoseconds */
} CustomData;
static void
realize_cb (GtkWidget *, CustomData *);
static void
play_cb (GtkButton *, CustomData *);
static void
pause_cb (GtkButton *, CustomData *);
static void
stop_cb (GtkButton *, CustomData *);
static void
delete_event_cb (GtkWidget *, GdkEvent *, CustomData *);
static gboolean
draw_cb (GtkWidget *, GdkEventExpose *, CustomData *);
static void
slider_cb (GtkRange *, CustomData *);
static void
create_ui (CustomData *);
static gboolean
refresh_ui (CustomData *);
static void
tags_cb (GstElement *, gint , CustomData *);
static void
error_cb (GstBus *, GstMessage *, CustomData *);
static void
eos_cb (GstBus *, GstMessage *, CustomData *);
static void
state_changed_cb (GstBus *, GstMessage *, CustomData *);
static void
analyze_streams(CustomData *);
static GstBusSyncReply
busSyncHandler (GstBus *, GstMessage *, gpointer);
extern int
play_file(CustomData *);
extern int
lapsi_backend_init(CustomData *,int * ,char***);
#endif /*lapsi-backend*/