ext/wavpack/gstwavpackparse.*: Always report the duration if we know it in push mode...
[platform/upstream/gst-plugins-good.git] / ext / wavpack / gstwavpackparse.h
index c1d6fee..60504a7 100644 (file)
@@ -57,7 +57,7 @@ struct _GstWavpackParse
 
   guint samplerate;
   guint channels;
-  guint total_samples;
+  gint64 total_samples;
 
   gboolean need_newsegment;
   gboolean discont;
@@ -68,13 +68,17 @@ struct _GstWavpackParse
   GstSegment segment;           /* the currently configured segment, in
                                  * samples/audio frames (DEFAULT format) */
 
+  GstBuffer *pending_buffer;
+  gint32 pending_offset;
+  guint32 next_block_index;
+
   GstAdapter *adapter;          /* when operating chain-based, otherwise NULL */
 
-  /* Array of GstWavpackParseIndexEntry structs, mapping known
+  /* List of GstWavpackParseIndexEntry structs, mapping known
    * sample offsets to byte offsets. Is kept increasing without
    * gaps (ie. append only and consecutive entries must always
    * map to consecutive chunks in the file). */
-  GArray *entries;
+  GSList *entries;
 
   /* Queued events (e.g. tag events we receive before we create the src pad) */
   GList *queued_events;         /* STREAM_LOCK */