From 4219829c50fcc2cf885553df6ee69ce5aee5965b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 14 Feb 2008 14:33:27 +0000 Subject: gst/dvdspu/gstdvdspu.c: Set n_line_ctrl_i to 0 whenever we free line_ctrl_i. Patch based on an idea by Jan Schmidt, f... 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 | 6 ++++++ gst/dvdspu/gstdvdspu.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index bf01807a..36cf420d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-14 Sebastian Dröge + + * 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 * 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; -- cgit v1.2.1