projects
/
platform
/
core
/
multimedia
/
libmm-player.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0.6.230] Use FIFO ticket lock when use command lock
[platform/core/multimedia/libmm-player.git]
/
src
/
include
/
mm_player_priv.h
diff --git
a/src/include/mm_player_priv.h
b/src/include/mm_player_priv.h
index
73264c6
..
dc3bd70
100644
(file)
--- a/
src/include/mm_player_priv.h
+++ b/
src/include/mm_player_priv.h
@@
-504,6
+504,13
@@
typedef struct {
} mmplayer_adaptive_variant_info_t;
typedef struct {
} mmplayer_adaptive_variant_info_t;
typedef struct {
+ GCond ticket_cond;
+ GMutex ticket_mutex;
+ guint ticket_queue_head;
+ guint ticket_queue_tail;
+} mmplayer_ticket_lock_t;
+
+typedef struct {
int is_spherical;
int is_stitched;
char *stitching_software;
int is_spherical;
int is_stitched;
char *stitching_software;
@@
-540,7
+547,7
@@
typedef struct {
int cmd;
/* command lock */
int cmd;
/* command lock */
-
GMutex
cmd_lock;
+
mmplayer_ticket_lock_t *
cmd_lock;
GMutex reconfigure_lock;
GCond reconfigure_cond;
GMutex reconfigure_lock;
GCond reconfigure_cond;
@@
-619,6
+626,7
@@
typedef struct {
/* type string */
gchar *type;
/* type string */
gchar *type;
+ GstCaps *type_caps;
/* video stream caps parsed by demuxer */
GstCaps *v_stream_caps;
/* video stream caps parsed by demuxer */
GstCaps *v_stream_caps;