return ( int )this->prop_position;
else if ( this->types & mlt_prop_int64 )
return ( int )this->prop_int64;
- else if ( this->types & mlt_prop_string )
+ else if ( ( this->types & mlt_prop_string ) && this->prop_string )
return mlt_property_atoi( this->prop_string );
return 0;
}
return ( double )this->prop_position;
else if ( this->types & mlt_prop_int64 )
return ( double )this->prop_int64;
- else if ( this->types & mlt_prop_string )
+ else if ( ( this->types & mlt_prop_string ) && this->prop_string )
return atof( this->prop_string );
return 0;
}
return ( mlt_position )this->prop_double;
else if ( this->types & mlt_prop_int64 )
return ( mlt_position )this->prop_int64;
- else if ( this->types & mlt_prop_string )
+ else if ( ( this->types & mlt_prop_string ) && this->prop_string )
return ( mlt_position )atol( this->prop_string );
return 0;
}
return ( int64_t )this->prop_double;
else if ( this->types & mlt_prop_position )
return ( int64_t )this->prop_position;
- else if ( this->types & mlt_prop_string )
+ else if ( ( this->types & mlt_prop_string ) && this->prop_string )
return mlt_property_atoll( this->prop_string );
return 0;
}