diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c index 84efb6a1e9..1e595c073a 100644 --- a/gst/mpegtsmux/mpegtsmux.c +++ b/gst/mpegtsmux/mpegtsmux.c @@ -671,6 +671,8 @@ mpegtsmux_request_new_pad (GstElement * element, pad_data->last_ts = GST_CLOCK_TIME_NONE; pad_data->codec_data = NULL; pad_data->prepare_func = NULL; + pad_data->prog_id = -1; + pad_data->prog = NULL; if (G_UNLIKELY (!gst_element_add_pad (element, pad))) goto could_not_add; diff --git a/gst/mpegtsmux/mpegtsmux.h b/gst/mpegtsmux/mpegtsmux.h index 9f1a8087d0..a5193936b2 100644 --- a/gst/mpegtsmux/mpegtsmux.h +++ b/gst/mpegtsmux/mpegtsmux.h @@ -142,6 +142,9 @@ struct MpegTsPadData { MpegTsPadDataPrepareFunction prepare_func; /* Handler to prepare input data */ gboolean eos; + + gint prog_id; /* The program id to which it is attached to (not program pid) */ + TsMuxProgram *prog; /* The program to which this stream belongs to */ }; GType mpegtsmux_get_type (void); @@ -159,6 +162,10 @@ GType mpegtsmux_get_type (void); #define STANDARD_TIME_CLOCK 27000000 /*33 bits as 1 ie 0x1ffffffff*/ #define TWO_POW_33_MINUS1 ((0xffffffff * 2) - 1) + +#define MAX_PROG_NUMBER 32 +#define DEFAULT_PROG_ID 0 + G_END_DECLS #endif