summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--gst/dvdspu/gstdvdspu.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bf01807a..36cf420d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-14 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/dvdspu/gstdvdspu.c: (gst_dvd_spu_handle_new_spu_buf):
+ Set n_line_ctrl_i to 0 whenever we free line_ctrl_i. Patch based
+ on an idea by Jan Schmidt, fixes bug #516436.
+
2008-02-14 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* gst/mpegtsparse/gstmpegdesc.c:
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index ce799dbb..45b24d4f 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -900,6 +900,7 @@ gst_dvd_spu_handle_new_spu_buf (GstDVDSpu * dvdspu, SpuPacket * packet)
state->cur_cmd_blk = GST_READ_UINT16_BE (start + 2);
gst_dvd_spu_setup_cmd_blk (dvdspu, state->cur_cmd_blk, start, end);
/* Clear existing chg-colcon info */
+ state->n_line_ctrl_i = 0;
if (state->line_ctrl_i != NULL) {
g_free (state->line_ctrl_i);
state->line_ctrl_i = NULL;