[libbluray-devel] Updated graphics_processor_decode_ts() return value

hpi1 git at videolan.org
Sun Jun 12 15:06:43 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Jun 11 16:32:09 2011 +0300| [635df20d4ab63b86a40d19c9835956ffa0dde55c] | committer: hpi1

Updated graphics_processor_decode_ts() return value

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

 src/libbluray/decoders/graphics_processor.c |    2 +-
 src/libbluray/decoders/graphics_processor.h |   12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/libbluray/decoders/graphics_processor.c b/src/libbluray/decoders/graphics_processor.c
index b5692da..5a76744 100644
--- a/src/libbluray/decoders/graphics_processor.c
+++ b/src/libbluray/decoders/graphics_processor.c
@@ -442,5 +442,5 @@ int graphics_processor_decode_ts(GRAPHICS_PROCESSOR *p,
         return graphics_processor_decode_pes(s, &p->queue, stc);
     }
 
-    return *s && (*s)->complete;
+    return 0;
 }
diff --git a/src/libbluray/decoders/graphics_processor.h b/src/libbluray/decoders/graphics_processor.h
index 19b8cf3..b7e90c4 100644
--- a/src/libbluray/decoders/graphics_processor.h
+++ b/src/libbluray/decoders/graphics_processor.h
@@ -78,6 +78,18 @@ graphics_processor_decode_pes(PG_DISPLAY_SET **s,
                               struct pes_buffer_s **buf,
                               int64_t stc);
 
+/**
+ *
+ *  Decode data from MPEG-TS input stream
+ *
+ * @param p  GRAPHICS_PROCESSOR object
+ * @param s  display set
+ * @param pid  mpeg-ts PID to decode (HDMV IG/PG stream)
+ * @param unit  mpeg-ts data
+ * @param num_units  number of aligned units in data
+ * @param stc  current playback time
+ * @return 1 if display set was completed, 0 otherwise
+ */
 BD_PRIVATE int
 graphics_processor_decode_ts(GRAPHICS_PROCESSOR *p,
                              PG_DISPLAY_SET **s,



More information about the libbluray-devel mailing list