summaryrefslogtreecommitdiff
path: root/src/lib.h
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-09 16:08:32 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-09 16:08:34 (GMT)
commit3839e9836d2e4740efd9610a1aa50dd792e78a59 (patch)
treeaef21ba313cb63e83f84c3f869a3e58da35b5a0d /src/lib.h
parent6a59214ddcdd63f7576e379834237d1ec0b92430 (diff)
downloadsoup-transcoding-proxy-3839e9836d2e4740efd9610a1aa50dd792e78a59.zip
soup-transcoding-proxy-3839e9836d2e4740efd9610a1aa50dd792e78a59.tar.gz
appsink: Use a GMutex to control when we pull samples
We can only pull a new sample and write it out if the previous one has been written, otherwise we get a segfault in SoupMessage.
Diffstat (limited to 'src/lib.h')
-rw-r--r--src/lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.h b/src/lib.h
index 733212c..14ec096 100644
--- a/src/lib.h
+++ b/src/lib.h
@@ -34,6 +34,7 @@ struct _TranscodeClientCtx {
SoupMessage *msg;
GstElement *appsink;
GstPad *ghostsinkpad;
+ GMutex can_write_chunk;
gulong first_sample_handler_id;
/* The transcode server context */
TranscodeServerCtx *server_ctx;