sys/dvb/camutils.c: Remove the G_VALUE_HOLDS_BOXED checks. They were only added to help debug the data corruption.

Original commit message from CVS:
* sys/dvb/camutils.c:
Remove the G_VALUE_HOLDS_BOXED checks. They were
only added to help debug the data corruption.
This commit is contained in:
Zaheer Abbas Merali 2008-02-27 23:29:44 +00:00
parent 1507ada865
commit 3bba6b5f94
2 changed files with 18 additions and 17 deletions

View File

@ -1,3 +1,9 @@
2008-02-27 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/dvb/camutils.c:
Remove the G_VALUE_HOLDS_BOXED checks. They were
only added to help debug the data corruption.
2008-02-27 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/dvb/camutils.c:

View File

@ -232,7 +232,6 @@ cam_build_ca_pmt (GstStructure * pmt, guint8 list_management, guint8 cmd_id,
streams = gst_structure_get_value (pmt, "streams");
value = gst_structure_get_value (pmt, "descriptors");
if (value != NULL) {
if (G_VALUE_HOLDS_BOXED (value)) {
program_descriptors = g_value_get_boxed (value);
/* get the length of program level CA_descriptor()s */
len = get_ca_descriptors_length (program_descriptors);
@ -240,7 +239,6 @@ cam_build_ca_pmt (GstStructure * pmt, guint8 list_management, guint8 cmd_id,
/* add one byte for the program level cmd_id */
len += 1;
}
}
lengths = g_list_append (lengths, GINT_TO_POINTER (len));
body_size += 6 + len;
@ -252,7 +250,6 @@ cam_build_ca_pmt (GstStructure * pmt, guint8 list_management, guint8 cmd_id,
value = gst_structure_get_value (stream, "descriptors");
if (value != NULL) {
if (G_VALUE_HOLDS_BOXED (value)) {
stream_descriptors = g_value_get_boxed (value);
len = get_ca_descriptors_length (stream_descriptors);
@ -260,14 +257,12 @@ cam_build_ca_pmt (GstStructure * pmt, guint8 list_management, guint8 cmd_id,
/* one byte for the stream level cmd_id */
len += 1;
}
}
lengths = g_list_append (lengths, GINT_TO_POINTER (len));
body_size += 5 + len;
}
}
buffer = g_malloc0 (body_size);
body = buffer;