changeset 253:acd4225262fc src

Stop seg fault when using ifo_dump.
author jcdutton
date Fri, 22 Oct 2004 11:36:19 +0000
parents aee8af592d66
children f78669338b49
files dvdread/ifo_print.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/ifo_print.c	Thu Sep 30 19:16:36 2004 +0000
+++ b/dvdread/ifo_print.c	Fri Oct 22 11:36:19 2004 +0000
@@ -704,6 +704,10 @@
 void ifo_print_PGC(pgc_t *pgc) {
   int i;
   
+  if (!pgc) {
+    printf("None\n");
+    return;
+  }
   printf("Number of Programs: %i\n", pgc->nr_of_programs);
   printf("Number of Cells: %i\n", pgc->nr_of_cells);
   /* Check that time is 0:0:0:0 also if nr_of_programs==0 */
@@ -1168,6 +1172,9 @@
 
 /*
  * $Log$
+ * Revision 1.3  2004/10/22 11:36:19  jcdutton
+ * Stop seg fault when using ifo_dump.
+ *
  * Revision 1.2  2004/09/27 12:24:01  jcdutton
  * Add extra info to printout when using ifo_dump.
  *