summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux/mpegtspacketizer.h
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2014-07-03 21:39:19 +1000
committerJan Schmidt <jan@centricular.com>2014-07-03 21:46:28 +1000
commitc103f7134be9b0a1036a9451dc6acebab0f6b3e3 (patch)
tree73480fd41ab4a1d94a14bbfaba69da4e4d531cd6 /gst/mpegtsdemux/mpegtspacketizer.h
parent6e51790a11835490fa037bdaf996ffd316e74fb1 (diff)
tsdemux: Add locking around mpegtspacketiser groups.
Otherwise occasionally DURATION queries can crash, if they happen at the wrong moment.
Diffstat (limited to 'gst/mpegtsdemux/mpegtspacketizer.h')
-rw-r--r--gst/mpegtsdemux/mpegtspacketizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.h b/gst/mpegtsdemux/mpegtspacketizer.h
index 883e297b1..2c889b009 100644
--- a/gst/mpegtsdemux/mpegtspacketizer.h
+++ b/gst/mpegtsdemux/mpegtspacketizer.h
@@ -244,6 +244,8 @@ typedef struct _MpegTSPCR
struct _MpegTSPacketizer2 {
GObject parent;
+ GMutex group_lock;
+
GstAdapter *adapter;
/* streams hashed by pid */
/* FIXME : be more memory efficient (see how it's done in mpegtsbase) */