From 0adc5cf1dc0b46de122d3dab0309b2adaeb8b697 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 13 May 2008 15:38:17 +0000 Subject: [PATCH] Prepared Xorriso_get_profile() for potential call without flag bit1 --- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- libisoburn/trunk/xorriso/xorrisoburn.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index 01bf3fca..07a81b2b 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2008.05.13.135251" +#define Xorriso_timestamP "2008.05.13.153837" diff --git a/libisoburn/trunk/xorriso/xorrisoburn.c b/libisoburn/trunk/xorriso/xorrisoburn.c index 13ff23e6..9ee8152a 100644 --- a/libisoburn/trunk/xorriso/xorrisoburn.c +++ b/libisoburn/trunk/xorriso/xorrisoburn.c @@ -5058,7 +5058,8 @@ int Xorriso_get_profile(struct XorrisO *xorriso, int *profile_number, *profile_number= 0; profile_name[0]= 0; - if(xorriso->out_drive_handle==NULL) + if(((flag&2) && xorriso->out_drive_handle==NULL) || + ((!(flag&2)) && xorriso->in_drive_handle==NULL)) return(0); ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive, "on attempt to determine media type", flag&2);