[DVDnav-discuss] [PATCH] Make dvd_stat_t public

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Sun Dec 6 17:58:02 CET 2009


Hi all!

I have a bug report which shows that the DVDFileStat function we added
for libdvdread-0.9.7 compatiblity is not usable:
https://bugzilla.redhat.com/show_bug.cgi?id=540155
[...]
Steps to Reproduce:
1. Try compiling the following program:
#include <stdio.h>

#include <dvdread/dvd_reader.h>

int
main (void)
{
  dvd_reader_t *reader;

  reader = DVDOpen ("/dev/dvd");
  if (reader)
  {
    dvd_stat_t statbuf;

    if (DVDFileStat (reader, 0, DVD_READ_MENU_VOBS, &statbuf) == 0)
      printf ("Size of VIDEO_TS.VOB: %lu", statbuf.size);

    DVDClose (reader);
  }

  return 0;
}
2.
3.

Actual results:
foo.c: In function 'main':
foo.c:13: error: storage size of 'statbuf' isn't known
[...]

Is this the correct way of using this function? If so, then we need to make
the dvd_stat_t struct public, like in the attached patch.

Regards,
R.

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"


More information about the DVDnav-discuss mailing list