summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-demux.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-08-02 18:06:20 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-02 18:06:20 +0000
commitd43e67fa70d9eed64fd82a83589633e9afee4e90 (patch)
tree24ff1e85c909c21dacc6ba98cab57b712ad87ecb /gst/matroska/matroska-demux.h
parent4ed1d36b7d18597b0175f75485769df6c2da243e (diff)
gst/matroska/matroska-demux.*: Allow an infinite number of stream inside Matroska containers and use a GPtrArray for ...
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_finalize), (gst_matroska_demux_class_init), (gst_matroska_demux_init), (gst_matroska_demux_combine_flows), (gst_matroska_demux_reset), (gst_matroska_demux_stream_from_num), (gst_matroska_demux_tracknumber_unique), (gst_matroska_demux_add_stream), (gst_matroska_demux_send_event), (gst_matroska_demux_handle_seek_event), (gst_matroska_demux_sync_streams), (gst_matroska_demux_parse_blockgroup_or_simpleblock), (gst_matroska_demux_loop): * gst/matroska/matroska-demux.h: Allow an infinite number of stream inside Matroska containers and use a GPtrArray for storing them instead of allowing "only" 127 streams.
Diffstat (limited to 'gst/matroska/matroska-demux.h')
-rw-r--r--gst/matroska/matroska-demux.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gst/matroska/matroska-demux.h b/gst/matroska/matroska-demux.h
index 8b45f556..6ed07feb 100644
--- a/gst/matroska/matroska-demux.h
+++ b/gst/matroska/matroska-demux.h
@@ -40,10 +40,6 @@ G_BEGIN_DECLS
#define GST_IS_MATROSKA_DEMUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_MATROSKA_DEMUX))
-/* The spec says that more than 127 stream is discouraged so
- * take this as a limit for now */
-#define GST_MATROSKA_DEMUX_MAX_STREAMS 127
-
typedef enum {
GST_MATROSKA_DEMUX_STATE_START,
GST_MATROSKA_DEMUX_STATE_HEADER,
@@ -61,7 +57,7 @@ typedef struct _GstMatroskaDemux {
/* pads */
GstPad *sinkpad;
- GstMatroskaTrackContext *src[GST_MATROSKA_DEMUX_MAX_STREAMS];
+ GPtrArray *src;
GstClock *clock;
guint num_streams;
guint num_v_streams;