*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
#define __GST_MULTI_QUEUE_H__
#include <gst/gst.h>
-#include "gstdataqueue.h"
+#include <gst/base/gstdataqueue.h>
G_BEGIN_DECLS
typedef struct _GstMultiQueue GstMultiQueue;
typedef struct _GstMultiQueueClass GstMultiQueueClass;
+typedef struct _GstMultiQueuePad GstMultiQueuePad;
+typedef struct _GstMultiQueuePadClass GstMultiQueuePadClass;
+
/**
* GstMultiQueue:
*
GstElement element;
gboolean sync_by_running_time;
+ gboolean use_interleave;
+ GstClockTime min_interleave_time;
/* number of queues */
guint nbqueues;
GstDataQueueSize max_size, extra_size;
gboolean use_buffering;
- gint low_percent, high_percent;
+ gint low_watermark, high_watermark;
gboolean buffering;
- gint percent;
+ gint buffering_percent;
guint counter; /* incoming object counter, use atomic accesses */
guint32 highid; /* contains highest id of last outputted object */
- GstClockTime high_time; /* highest start running time */
+ GstClockTimeDiff high_time; /* highest start running time */
GMutex qlock; /* Global queue lock (vs object lock or individual */
/* queues lock). Protects nbqueues, queues, global */
/* GstMultiQueueSize, counter and highid */
gint numwaiting; /* number of not-linked pads waiting */
+
+ gboolean buffering_percent_changed;
+ GMutex buffering_post_lock; /* assures only one posted at a time */
+
+ GstClockTime interleave; /* Input interleave */
+ GstClockTimeDiff last_interleave_update;
+
+ GstClockTime unlinked_cache_time;
};
struct _GstMultiQueueClass {