mpegtsmux: MpetTsPadData: add prog_id and ref to its program

This commit is contained in:
Lin YANG 2009-07-11 19:13:23 +08:00 committed by Sebastian Dröge
parent ee31988c7a
commit 451275714c
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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