*
* 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.
*/
typedef struct _GstMultiQueue GstMultiQueue;
typedef struct _GstMultiQueueClass GstMultiQueueClass;
+typedef struct _GstMultiQueuePad GstMultiQueuePad;
+typedef struct _GstMultiQueuePadClass GstMultiQueuePadClass;
+
/**
* GstMultiQueue:
*
struct _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;
- guint32 counter; /* incoming object counter, use atomic accesses */
+ guint counter; /* incoming object counter, use atomic accesses */
guint32 highid; /* contains highest id of last outputted object */
+ GstClockTimeDiff high_time; /* highest start running time */
- GMutex * qlock; /* Global queue lock (vs object lock or individual */
+ 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 {
void (*overrun) (GstMultiQueue *queue);
};
-GType gst_multi_queue_get_type (void);
+G_GNUC_INTERNAL GType gst_multi_queue_get_type (void);
G_END_DECLS