Commit b3ef727c authored by Olivier Rolland's avatar Olivier Rolland Committed by Christophe Massiot
Browse files

* src/libdvdcss.c: add dvdcss_is_scrambled() function,

   Olivier Rolland.
parent 1c1f814c
......@@ -88,6 +88,8 @@ LIBDVDCSS_EXPORT int dvdcss_readv ( dvdcss_t,
int i_flags );
LIBDVDCSS_EXPORT char * dvdcss_error ( dvdcss_t );
LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t );
/*
* Deprecated stuff.
......
......@@ -795,4 +795,16 @@ LIBDVDCSS_EXPORT int dvdcss_title ( dvdcss_t dvdcss, int i_block )
return _dvdcss_title( dvdcss, i_block );
}
/**
* \brief Return 1 if the DVD is scrambled, 0 otherwise.
*
* \param dvdcss a \e libdvdcss instance.
* \return 1 if the DVD is scrambled, 0 otherwise.
*
* This function returns whether the DVD is scrambled.
*/
LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t dvdcss )
{
return dvdcss->b_scrambled;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment