summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2008-02-27 19:41:13 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-02-27 19:41:13 +0000
commit1507ada865aa5533aaf41df6f91357709004be01 (patch)
treeb12fc85698829d22bc6766abcd4445a454e20c2b
parent4bf32cac7a2be3b16b1fa1945c7f3447510e2de9 (diff)
downloadgst-plugins-bad-1507ada865aa5533aaf41df6f91357709004be01.tar.gz
gst-plugins-bad-1507ada865aa5533aaf41df6f91357709004be01.tar.bz2
gst-plugins-bad-1507ada865aa5533aaf41df6f91357709004be01.zip
sys/dvb/camutils.c: Don't free the program descriptors, this structure containing them is stills tored after.
Original commit message from CVS: * sys/dvb/camutils.c: Don't free the program descriptors, this structure containing them is stills tored after. Fixes data corruption.
-rw-r--r--ChangeLog7
-rw-r--r--sys/dvb/camutils.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 59de23c2..e7ebe10b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
2008-02-27 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/dvb/camutils.c:
+ Don't free the program descriptors, this structure
+ containing them is stills tored after.
+ Fixes data corruption.
+
+2008-02-27 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+
+ * sys/dvb/camutils.c:
Extra checks to prevent data corruption/segfaults.
2008-02-26 Stefan Kost <ensonic@users.sf.net>
diff --git a/sys/dvb/camutils.c b/sys/dvb/camutils.c
index b58eca1a..7e70aa26 100644
--- a/sys/dvb/camutils.c
+++ b/sys/dvb/camutils.c
@@ -289,9 +289,6 @@ cam_build_ca_pmt (GstStructure * pmt, guint8 list_management, guint8 cmd_id,
body = write_ca_descriptors (body, program_descriptors);
}
- if (program_descriptors)
- g_value_array_free (program_descriptors);
-
for (i = 0; i < gst_value_list_get_size (streams); ++i) {
guint stream_type;
guint stream_pid;