}
static CamReturn
-send_ca_pmt (CamConditionalAccess * cas, GstMpegTSPMT * pmt,
+send_ca_pmt (CamConditionalAccess * cas, GstMpegTsPMT * pmt,
guint8 list_management, guint8 cmd_id)
{
CamReturn ret;
CamReturn
cam_conditional_access_set_pmt (CamConditionalAccess * cas,
- GstMpegTSPMT * pmt, CamConditionalAccessPmtFlag flag)
+ GstMpegTsPMT * pmt, CamConditionalAccessPmtFlag flag)
{
return send_ca_pmt (cas, pmt, flag, 0x01 /* ok_descrambling */ );
}
void cam_conditional_access_destroy (CamConditionalAccess *cas);
CamReturn cam_conditional_access_set_pmt (CamConditionalAccess *cas,
- GstMpegTSPMT *pmt, CamConditionalAccessPmtFlag flag);
+ GstMpegTsPMT *pmt, CamConditionalAccessPmtFlag flag);
#endif /* CAM_CONDITIONAL_ACCESS_H */
void
cam_device_set_pmt (CamDevice * device,
- GstMpegTSPMT * pmt, CamConditionalAccessPmtFlag flag)
+ GstMpegTsPMT * pmt, CamConditionalAccessPmtFlag flag)
{
g_return_if_fail (device != NULL);
g_return_if_fail (device->state == CAM_DEVICE_STATE_OPEN);
gboolean cam_device_ready (CamDevice *device);
void cam_device_poll (CamDevice *device);
void cam_device_set_pmt (CamDevice *device,
- GstMpegTSPMT *pmt, CamConditionalAccessPmtFlag flag);
+ GstMpegTsPMT *pmt, CamConditionalAccessPmtFlag flag);
#endif /* CAM_DEVICE_H */
}
static void
-send_ca_pmt (CamSwClient * client, GstMpegTSPMT * pmt,
+send_ca_pmt (CamSwClient * client, GstMpegTsPMT * pmt,
guint8 list_management, guint8 cmd_id)
{
guint8 *buffer;
}
void
-cam_sw_client_set_pmt (CamSwClient * client, GstMpegTSPMT * pmt)
+cam_sw_client_set_pmt (CamSwClient * client, GstMpegTsPMT * pmt)
{
g_return_if_fail (client != NULL);
g_return_if_fail (pmt != NULL);
}
void
-cam_sw_client_update_pmt (CamSwClient * client, GstMpegTSPMT * pmt)
+cam_sw_client_update_pmt (CamSwClient * client, GstMpegTsPMT * pmt)
{
g_return_if_fail (client != NULL);
g_return_if_fail (pmt != NULL);
gboolean cam_sw_client_open (CamSwClient *sw_client, const char *sock_path);
void cam_sw_client_close (CamSwClient *sw_client);
-void cam_sw_client_set_pmt (CamSwClient *sw_client, GstMpegTSPMT *pmt);
-void cam_sw_client_update_pmt (CamSwClient *sw_client, GstMpegTSPMT *pmt);
+void cam_sw_client_set_pmt (CamSwClient *sw_client, GstMpegTsPMT *pmt);
+void cam_sw_client_update_pmt (CamSwClient *sw_client, GstMpegTsPMT *pmt);
#endif /* CAM_SW_CLIENT_H */
guint len = 0;
for (i = 0; i < nb_desc; i++) {
- GstMpegTSDescriptor *desc =
- &g_array_index (descriptors, GstMpegTSDescriptor, i);
+ GstMpegTsDescriptor *desc =
+ &g_array_index (descriptors, GstMpegTsDescriptor, i);
if (desc->descriptor_tag == 0x09)
len += desc->descriptor_length;
}
nb_desc = descriptors->len;
for (i = 0; i < nb_desc; i++) {
- GstMpegTSDescriptor *desc =
- &g_array_index (descriptors, GstMpegTSDescriptor, i);
+ GstMpegTsDescriptor *desc =
+ &g_array_index (descriptors, GstMpegTsDescriptor, i);
if (desc->descriptor_tag == 0x09) {
memcpy (body, desc->descriptor_data, desc->descriptor_length);
body += desc->descriptor_length;
}
guint8 *
-cam_build_ca_pmt (GstMpegTSPMT * pmt, guint8 list_management, guint8 cmd_id,
+cam_build_ca_pmt (GstMpegTsPMT * pmt, guint8 list_management, guint8 cmd_id,
guint * size)
{
- GstMpegTSSection *section = (GstMpegTSSection *) pmt;
+ GstMpegTsSection *section = (GstMpegTsSection *) pmt;
guint body_size = 0;
guint8 *buffer;
guint8 *body;
body_size += 6 + len;
for (i = 0; i < pmt->streams->len; i++) {
- GstMpegTSPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
+ GstMpegTsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
len = get_ca_descriptors_length (pmtstream->descriptors);
if (len > 0)
}
for (i = 0; i < pmt->streams->len; i++) {
- GstMpegTSPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
+ GstMpegTsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
*body++ = pmtstream->stream_type;
GST_WRITE_UINT16_BE (body, pmtstream->pid);
guint8 cam_calc_length_field_size (guint length);
guint8 cam_write_length_field (guint8 *buff, guint length);
guint8 cam_read_length_field (guint8 *buff, guint *length);
-guint8 *cam_build_ca_pmt (GstMpegTSPMT *pmt, guint8 list_management, guint8 cmd_id, guint *size);
+guint8 *cam_build_ca_pmt (GstMpegTsPMT *pmt, guint8 list_management, guint8 cmd_id, guint *size);
#endif /* CAM_UTILS_H */
gint program_number;
guint16 pmt_pid;
guint16 pcr_pid;
- GstMpegTSPMT *pmt;
- GstMpegTSPMT *old_pmt;
+ GstMpegTsPMT *pmt;
+ GstMpegTsPMT *old_pmt;
gboolean selected;
gboolean pmt_active;
gboolean active;
GstStateChange transition);
static void dvb_base_bin_handle_message (GstBin * bin, GstMessage * message);
static void dvb_base_bin_pat_info_cb (DvbBaseBin * dvbbasebin,
- GstMpegTSSection * pat);
+ GstMpegTsSection * pat);
static void dvb_base_bin_pmt_info_cb (DvbBaseBin * dvbbasebin,
- GstMpegTSSection * pmt);
+ GstMpegTsSection * pmt);
static GstPad *dvb_base_bin_request_new_pad (GstElement * element,
GstPadTemplate * templ, const gchar * name, const GstCaps * caps);
static void dvb_base_bin_release_pad (GstElement * element, GstPad * pad);
{
CamConditionalAccessPmtFlag flag;
GList *walk;
- GstMpegTSPMT *pmt;
+ GstMpegTsPMT *pmt;
walk = dvbbasebin->pmtlist;
while (walk) {
flag = CAM_CONDITIONAL_ACCESS_PMT_FLAG_MORE;
}
- pmt = (GstMpegTSPMT *) walk->data;
+ pmt = (GstMpegTsPMT *) walk->data;
cam_device_set_pmt (dvbbasebin->hwcam, pmt, flag);
walk = walk->next;
}
static void
-dvb_base_bin_remove_pmt_streams (DvbBaseBin * dvbbasebin, GstMpegTSPMT * pmt)
+dvb_base_bin_remove_pmt_streams (DvbBaseBin * dvbbasebin, GstMpegTsPMT * pmt)
{
gint i;
DvbBaseBinStream *stream;
for (i = 0; i < pmt->streams->len; i++) {
- GstMpegTSPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
+ GstMpegTsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
stream = dvb_base_bin_get_stream (dvbbasebin, pmtstream->pid);
if (stream == NULL) {
}
static void
-dvb_base_bin_add_pmt_streams (DvbBaseBin * dvbbasebin, GstMpegTSPMT * pmt)
+dvb_base_bin_add_pmt_streams (DvbBaseBin * dvbbasebin, GstMpegTsPMT * pmt)
{
DvbBaseBinStream *stream;
gint i;
for (i = 0; i < pmt->streams->len; i++) {
- GstMpegTSPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
+ GstMpegTsPMTStream *pmtstream = g_ptr_array_index (pmt->streams, i);
GST_DEBUG ("filtering stream %d stream_type %d", pmtstream->pid,
pmtstream->stream_type);
dvbbasebin = GST_DVB_BASE_BIN (bin);
if (GST_ELEMENT (message->src) == GST_ELEMENT (dvbbasebin->tsparse)) {
- GstMpegTSSection *section = gst_message_parse_mpegts_section (message);
+ GstMpegTsSection *section = gst_message_parse_mpegts_section (message);
if (section) {
switch (GST_MPEGTS_SECTION_TYPE (section)) {
static void
-dvb_base_bin_pat_info_cb (DvbBaseBin * dvbbasebin, GstMpegTSSection * section)
+dvb_base_bin_pat_info_cb (DvbBaseBin * dvbbasebin, GstMpegTsSection * section)
{
GArray *pat;
DvbBaseBinProgram *program;
}
for (i = 0; i < pat->len; i++) {
- GstMpegTSPatProgram *patp = &g_array_index (pat, GstMpegTSPatProgram, i);
+ GstMpegTsPatProgram *patp = &g_array_index (pat, GstMpegTsPatProgram, i);
program = dvb_base_bin_get_program (dvbbasebin, patp->program_number);
if (program == NULL)
}
static void
-dvb_base_bin_pmt_info_cb (DvbBaseBin * dvbbasebin, GstMpegTSSection * section)
+dvb_base_bin_pmt_info_cb (DvbBaseBin * dvbbasebin, GstMpegTsSection * section)
{
- GstMpegTSPMT *pmt = (GstMpegTSPMT *) section;
+ GstMpegTsPMT *pmt = (GstMpegTsPMT *) section;
DvbBaseBinProgram *program;
guint program_number;
}
program->old_pmt = program->pmt;
- program->pmt = (GstMpegTSPMT *) gst_mpegts_section_ref (pmt);
+ program->pmt = (GstMpegTsPMT *) gst_mpegts_section_ref (pmt);
/* activate the program if it's selected and either it's not active or its pmt
* changed */