gst/dvdspu/gstdvdspu.c: Set n_line_ctrl_i to 0 whenever we free line_ctrl_i. Patch...
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 14 Feb 2008 14:33:27 +0000 (14:33 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 14 Feb 2008 14:33:27 +0000 (14:33 +0000)
Original commit message from CVS:
* 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.

ChangeLog
gst/dvdspu/gstdvdspu.c

index bf01807..36cf420 100644 (file)
--- 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:
index ce799db..45b24d4 100644 (file)
@@ -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;