[libbluray-devel] commit: Added missing pg_free_palette() body and pg_free_window() prototype . (hpi1 )

git at videolan.org git at videolan.org
Tue Aug 24 12:52:49 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Aug 24 13:51:44 2010 +0300| [092d45782aaf26e2cc64fa3be115762ad3f8a14a] | committer: hpi1 

Added missing pg_free_palette() body and pg_free_window() prototype.
Thanks to iamlindoro

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=092d45782aaf26e2cc64fa3be115762ad3f8a14a
---

 src/libbluray/decoders/pg_decode.c |    7 +++++++
 src/libbluray/decoders/pg_decode.h |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/decoders/pg_decode.c b/src/libbluray/decoders/pg_decode.c
index 4a14e39..23cf704 100644
--- a/src/libbluray/decoders/pg_decode.c
+++ b/src/libbluray/decoders/pg_decode.c
@@ -217,6 +217,13 @@ void pg_free_window(BD_PG_WINDOW **p)
     }
 }
 
+void pg_free_palette(BD_PG_PALETTE **p)
+{
+    if (p && *p) {
+        X_FREE(*p);
+    }
+}
+
 void pg_free_object(BD_PG_OBJECT **p)
 {
     if (p && *p) {
diff --git a/src/libbluray/decoders/pg_decode.h b/src/libbluray/decoders/pg_decode.h
index dd44cfa..169efe7 100644
--- a/src/libbluray/decoders/pg_decode.h
+++ b/src/libbluray/decoders/pg_decode.h
@@ -49,6 +49,7 @@ BD_PRIVATE int pg_decode_object(BITBUFFER *bb, BD_PG_OBJECT *p);
 
 BD_PRIVATE void pg_clean_object(BD_PG_OBJECT *p);
 
+BD_PRIVATE void pg_free_window(BD_PG_WINDOW **p);
 BD_PRIVATE void pg_free_palette(BD_PG_PALETTE **p);
 BD_PRIVATE void pg_free_object(BD_PG_OBJECT **p);
 



More information about the libbluray-devel mailing list