summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflacenc.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-09-26 13:19:17 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-09-26 13:19:17 +0000
commit56ff7ee1ae31ca1647ce44c6c3364e257b747e6f (patch)
tree34f1bf6ba5c4b3f511d494b52d2d843e92069b25 /ext/flac/gstflacenc.h
parentac934ae36b95372695c1fb6e81ce284172b2a6a9 (diff)
ext/flac/gstflacenc.*: Save the flow return from the last gst_pad_push() and make sure we pass the right flow return ...
Original commit message from CVS: * ext/flac/gstflacenc.c: * ext/flac/gstflacenc.h: Save the flow return from the last gst_pad_push() and make sure we pass the right flow return value upstream in the case of failure; minor clean-ups.
Diffstat (limited to 'ext/flac/gstflacenc.h')
-rw-r--r--ext/flac/gstflacenc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/flac/gstflacenc.h b/ext/flac/gstflacenc.h
index ca1933a2..a7bbd46a 100644
--- a/ext/flac/gstflacenc.h
+++ b/ext/flac/gstflacenc.h
@@ -48,6 +48,10 @@ struct _GstFlacEnc {
GstPad *sinkpad;
GstPad *srcpad;
+ GstFlowReturn last_flow; /* save flow from last push so we can pass the
+ * correct flow return upstream in case the push
+ * fails for some reason */
+
gboolean first;
GstBuffer *first_buf;
guint64 offset;