diff options
author | Arnaud Vrac <avrac@freebox.fr> | 2015-09-18 19:15:45 +0200 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2015-09-26 23:16:37 +1000 |
commit | 344fe03f096b8fc9f6a38d9f844addc0da74ed3e (patch) | |
tree | 9543bd85e83dd8d164b00523677c630f6e9c7d29 /gst/dvdspu | |
parent | 7baa2736d9d5789aee76c86a819bc4e0994a881f (diff) |
dvdspu: skip unneeded reading of RLE data
The RLE data was being read for dumping the SPU image even when the
DUMP_FULL_IMAGE macro was not set.
https://bugzilla.gnome.org/show_bug.cgi?id=663750
Diffstat (limited to 'gst/dvdspu')
-rw-r--r-- | gst/dvdspu/gstspu-pgs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c index e485817eaf..590f20d41c 100644 --- a/gst/dvdspu/gstspu-pgs.c +++ b/gst/dvdspu/gstspu-pgs.c @@ -81,7 +81,8 @@ dump_bytes (guint8 * data, guint16 len) static void dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len) { - guint16 obj_h G_GNUC_UNUSED; +#if DUMP_FULL_IMAGE + guint16 obj_h; guint16 obj_w; guint8 *end = data + len; guint x = 0; @@ -141,7 +142,6 @@ dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len) } } -#if DUMP_FULL_IMAGE { gint i; #if 1 @@ -159,7 +159,6 @@ dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len) PGS_DUMP ("Run x: %d pix: %d col: %d\n", x, run_len, pal_id); #endif } -#endif x += run_len; if (!run_len || x > obj_w) @@ -167,6 +166,7 @@ dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len) }; PGS_DUMP ("\n"); +#endif } static void |